1 |
commit: 2f3fcdeb75ebcdb6782062a7ff39ca4311508889 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 10 23:26:25 2015 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 10 23:47:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f3fcdeb |
7 |
|
8 |
app-doc/doxygen: Remove old version 1.8.5 and 1.8.9.1 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-doc/doxygen/Manifest | 2 - |
13 |
app-doc/doxygen/doxygen-1.8.5.ebuild | 234 -------------------------------- |
14 |
app-doc/doxygen/doxygen-1.8.9.1.ebuild | 241 --------------------------------- |
15 |
3 files changed, 477 deletions(-) |
16 |
|
17 |
diff --git a/app-doc/doxygen/Manifest b/app-doc/doxygen/Manifest |
18 |
index 9ec16b0..c193ff5 100644 |
19 |
--- a/app-doc/doxygen/Manifest |
20 |
+++ b/app-doc/doxygen/Manifest |
21 |
@@ -1,4 +1,2 @@ |
22 |
DIST doxygen-1.8.10.src.tar.gz 4818276 SHA256 cedf78f6d213226464784ecb999b54515c97eab8a2f9b82514292f837cf88b93 SHA512 a7f29b5f7b9f55b7e5382b7b7dc7212247a27869bc265433c0ee51480645b3f5f0732d1f5aefd54952204c8a1c98b96ec1ecc22c1ff7a072db5b2356b5981074 WHIRLPOOL 5607e1da5cf8e653ec895a7601a3a6585790a555207928bde6d154ab06173c68e088a61c1963da8d8cdc1a571b66eeaa102acc2a2e4291e0be87634d8e554962 |
23 |
-DIST doxygen-1.8.5.src.tar.gz 6511944 SHA256 243a8b67db12ad68d6ea5b51c6f60dc2cc3a34fa47abf1b5b4499196c3d7cc25 SHA512 56d2b262feae41fe9acf3c0c8ad3dd1d8868a52c17e2d9882a553570311482ec73548c0a70ae0ad7ccd7d1011a69968f284031beb93f915bab3a4c740b943f47 WHIRLPOOL 934cb01d7898cbdf04d2f293534ade1b8ce1c48a378fb141e063a83455ccf94c733aec525e6e6740e6b92fb473a6bc2b31dca09b0324de78801c7a2d19638182 |
24 |
-DIST doxygen-1.8.9.1.src.tar.gz 5007458 SHA256 d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec SHA512 b76d06fc6e22d5e8e2b73814bc99cc0cf75ddf4e5a6ad1bd79832f12ccce5ccc2681777862b9ad0dbfdf1791fd1ce1f0f5ce669a78c7d38f91b0e8d5ebda8ade WHIRLPOOL 3971ceb79619282dbf1409b71d457dbdf8cd67b7d57dc106215442237e16fed8530e637d2d712d1be2dc2d186b29e75a23522b06387913fe2584eebf8b52b44e |
25 |
DIST doxywizard.png 4231 SHA256 eb648ebd3a194a56d9ed6e47cc8dbf1af2e124d83c2c42af9bf86bd837984209 SHA512 5e2d26e7427b86866ebe75ec2c66c0f1100d230f3f3e4d66bac424a8dd0d42f0831d936ff03318dfa1bf73cbd9fb53717636d0c91ae3eea0f4e24641479d25d5 WHIRLPOOL bb0c13b382c4069ca310ff53a03b36499a2bf6e0e8c0647efc032530f429f483b5d6f2925b7e996d4f84c8f2b77eb883533f4b7abc88745a2cfa596d3dd4f3fb |
26 |
|
27 |
diff --git a/app-doc/doxygen/doxygen-1.8.5.ebuild b/app-doc/doxygen/doxygen-1.8.5.ebuild |
28 |
deleted file mode 100644 |
29 |
index 250ccc6..0000000 |
30 |
--- a/app-doc/doxygen/doxygen-1.8.5.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,234 +0,0 @@ |
33 |
-# Copyright 1999-2015 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI=4 |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
- |
40 |
-inherit eutils fdo-mime flag-o-matic python-any-r1 qt4-r2 toolchain-funcs |
41 |
- |
42 |
-DESCRIPTION="Documentation system for most programming languages" |
43 |
-HOMEPAGE="http://www.doxygen.org/" |
44 |
-SRC_URI="http://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz |
45 |
- https://dev.gentoo.org/~xarthisius/distfiles/doxywizard.png" |
46 |
- |
47 |
-LICENSE="GPL-2" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
50 |
-IUSE="debug doc dot qt4 latex sqlite elibc_FreeBSD userland_GNU" |
51 |
- |
52 |
-#missing SerbianCyrilic, JapaneseEn, KoreanEn, Chinesetraditional |
53 |
- |
54 |
-LANGS=(hy ar pt_BR ca zh cs de da eo es fa fi fr el hr hu id it ja ko lt mk |
55 |
-nl nb pl pt ro ru sl sk sr sv tr uk vi af) |
56 |
-for X in "${LANGS[@]}" ; do |
57 |
- IUSE="${IUSE} linguas_${X}" |
58 |
-done |
59 |
- |
60 |
-RDEPEND="qt4? ( dev-qt/qtgui:4 ) |
61 |
- latex? ( app-text/texlive[extra] ) |
62 |
- dev-lang/perl |
63 |
- virtual/libiconv |
64 |
- media-libs/libpng |
65 |
- app-text/ghostscript-gpl |
66 |
- sqlite? ( dev-db/sqlite:3 ) |
67 |
- dot? ( |
68 |
- media-gfx/graphviz |
69 |
- media-libs/freetype |
70 |
- )" |
71 |
- |
72 |
-DEPEND="sys-apps/sed |
73 |
- sys-devel/flex |
74 |
- sys-devel/bison |
75 |
- doc? ( ${PYTHON_DEPS} ) |
76 |
- ${RDEPEND}" |
77 |
- |
78 |
-# src_test() defaults to make -C testing but there is no such directory (bug #504448) |
79 |
-RESTRICT="mirror test" |
80 |
-EPATCH_SUFFIX="patch" |
81 |
- |
82 |
-get_langs() { |
83 |
- # using only user set linguas also fixes #263641 |
84 |
- my_linguas=() |
85 |
- for lingua in ${LINGUAS}; do |
86 |
- if has ${lingua} "${LANGS[@]}"; then |
87 |
- case ${lingua} in |
88 |
- hy) lingua=am ;; |
89 |
- pt_BR) lingua=br ;; |
90 |
- zh*) lingua=cn ;; |
91 |
- cs) lingua=cz ;; |
92 |
- da) lingua=dk ;; |
93 |
- el*) lingua=gr ;; |
94 |
- ja*) lingua=jp ;; |
95 |
- ko) lingua=kr ;; |
96 |
- nb) lingua=no ;; |
97 |
- sl) lingua=si ;; |
98 |
- tr*) lingua=tr ;; |
99 |
- uk) lingua=ua ;; |
100 |
- af) lingua=za ;; |
101 |
- esac |
102 |
- has ${lingua} "${my_linguas[@]}" || |
103 |
- my_linguas+=(${lingua}) |
104 |
- fi |
105 |
- done |
106 |
- f_langs="${my_linguas[@]}" |
107 |
- echo ${f_langs// /,} |
108 |
-} |
109 |
- |
110 |
-pkg_setup() { |
111 |
- tc-export CC CXX |
112 |
- use doc && python-any-r1_pkg_setup |
113 |
-} |
114 |
- |
115 |
-src_prepare() { |
116 |
- # use CFLAGS, CXXFLAGS, LDFLAGS |
117 |
- export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}" |
118 |
- |
119 |
- sed -i.orig -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \ |
120 |
- -e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \ |
121 |
- -e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \ |
122 |
- -e "s:^\(TMAKE_CXX\s*\)=.*$:\1= $(tc-getCXX):" \ |
123 |
- -e "s:^\(TMAKE_LINK\s*\)=.*$:\1= $(tc-getCXX):" \ |
124 |
- -e "s:^\(TMAKE_LINK_SHLIB\s*\)=.*$:\1= $(tc-getCXX):" \ |
125 |
- -e "s:^\(TMAKE_CC\s*\)=.*$:\1= $(tc-getCC):" \ |
126 |
- -e "s:^\(TMAKE_AR\s*\)=.*$:\1= $(tc-getAR) cqs:" \ |
127 |
- tmake/lib/{{linux,gnu,freebsd,netbsd,openbsd,solaris}-g++,macosx-c++,linux-64}/tmake.conf \ |
128 |
- || die |
129 |
- |
130 |
- # Ensure we link to -liconv |
131 |
- if use elibc_FreeBSD && has_version dev-libs/libiconv || use elibc_uclibc; then |
132 |
- for pro in */*.pro.in */*/*.pro.in; do |
133 |
- echo "unix:LIBS += -liconv" >> "${pro}" |
134 |
- done |
135 |
- fi |
136 |
- |
137 |
- # Call dot with -Teps instead of -Tps for EPS generation - bug #282150 |
138 |
- sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die |
139 |
- |
140 |
- # prefix search tools patch, plus OSX fixes |
141 |
- epatch "${FILESDIR}"/${PN}-1.8.1-prefix-misc-alt.patch |
142 |
- epatch "${FILESDIR}"/${PN}-1.8.3.1-empty-line-sigsegv.patch #454348 |
143 |
- |
144 |
- # fix pdf doc |
145 |
- sed -i.orig -e "s:g_kowal:g kowal:" \ |
146 |
- doc/maintainers.txt || die |
147 |
- |
148 |
- sed -e "s/\$(DATE)/$(LC_ALL="C" LANG="C" date)/g" \ |
149 |
- -i Makefile.in || die #428280 |
150 |
- |
151 |
- if is-flagq "-O3" ; then |
152 |
- echo |
153 |
- ewarn "Compiling with -O3 is known to produce incorrectly" |
154 |
- ewarn "optimized code which breaks doxygen." |
155 |
- echo |
156 |
- elog "Continuing with -O2 instead ..." |
157 |
- echo |
158 |
- replace-flags "-O3" "-O2" |
159 |
- fi |
160 |
-} |
161 |
- |
162 |
-src_configure() { |
163 |
- # set ./configure options (prefix, Qt based wizard, docdir) |
164 |
- |
165 |
- local my_conf="--shared --enable-langs $(get_langs)" |
166 |
- |
167 |
- if use debug ; then |
168 |
- my_conf="${my_conf} --debug" |
169 |
- else |
170 |
- my_conf="${my_conf} --release " |
171 |
- fi |
172 |
- |
173 |
- use qt4 && my_conf="${my_conf} --with-doxywizard" |
174 |
- |
175 |
- use sqlite && my_conf="${my_conf} --with-sqlite3" |
176 |
- |
177 |
- # On non GNU userland (e.g. BSD), configure script picks up make and bails |
178 |
- # out because it is not GNU make, so we force the right value. |
179 |
- use userland_GNU || my_conf="${my_conf} --make ${MAKE} --install install" |
180 |
- |
181 |
- export LINK="${QMAKE_LINK}" |
182 |
- export LINK_SHLIB="${QMAKE_CXX}" |
183 |
- |
184 |
- if use qt4 ; then |
185 |
- pushd addon/doxywizard &> /dev/null |
186 |
- eqmake4 doxywizard.pro -o Makefile.doxywizard |
187 |
- popd &> /dev/null |
188 |
- fi |
189 |
- |
190 |
- ./configure --prefix "${EPREFIX}/usr" ${my_conf} \ |
191 |
- || die |
192 |
-} |
193 |
- |
194 |
-src_compile() { |
195 |
- |
196 |
- emake CFLAGS+="${ECFLAGS}" CXXFLAGS+="${ECXXFLAGS}" \ |
197 |
- LFLAGS+="${ELDFLAGS}" all |
198 |
- |
199 |
- # generate html and pdf (if tetex in use) documents. |
200 |
- # errors here are not considered fatal, hence the ewarn message |
201 |
- # TeX's font caching in /var/cache/fonts causes sandbox warnings, |
202 |
- # so we allow it. |
203 |
- if use doc; then |
204 |
- if ! use dot; then |
205 |
- sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ |
206 |
- {Doxyfile,doc/Doxyfile} \ |
207 |
- || ewarn "disabling dot failed" |
208 |
- fi |
209 |
- if use latex; then |
210 |
- addwrite /var/cache/fonts |
211 |
- addwrite /var/cache/fontconfig |
212 |
- addwrite /usr/share/texmf/fonts/pk |
213 |
- addwrite /usr/share/texmf/ls-R |
214 |
- make pdf || ewarn '"make pdf docs" failed.' |
215 |
- else |
216 |
- cp doc/Doxyfile doc/Doxyfile.orig |
217 |
- cp doc/Makefile doc/Makefile.orig |
218 |
- sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
219 |
- doc/Doxyfile |
220 |
- sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
221 |
- -e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
222 |
- -e "s/@sed/# @sed/" doc/Makefile |
223 |
- make docs || ewarn '"make docs" failed.' |
224 |
- fi |
225 |
- fi |
226 |
-} |
227 |
- |
228 |
-src_install() { |
229 |
- emake DESTDIR="${D}" MAN1DIR=share/man/man1 install |
230 |
- |
231 |
- if use qt4; then |
232 |
- doicon "${DISTDIR}/doxywizard.png" |
233 |
- make_desktop_entry doxywizard "DoxyWizard ${PV}" \ |
234 |
- "/usr/share/pixmaps/doxywizard.png" \ |
235 |
- "Development" |
236 |
- fi |
237 |
- |
238 |
- dodoc LANGUAGE.HOWTO README.md |
239 |
- |
240 |
- # pdf and html manuals |
241 |
- if use doc; then |
242 |
- dohtml -r html/* |
243 |
- use latex && dodoc latex/doxygen_manual.pdf |
244 |
- fi |
245 |
-} |
246 |
- |
247 |
-pkg_postinst() { |
248 |
- fdo-mime_desktop_database_update |
249 |
- |
250 |
- elog |
251 |
- elog "The USE flags qt4, doc, and latex will enable doxywizard, or" |
252 |
- elog "the html and pdf documentation, respectively. For examples" |
253 |
- elog "and other goodies, see the source tarball. For some example" |
254 |
- elog "output, run doxygen on the doxygen source using the Doxyfile" |
255 |
- elog "provided in the top-level source dir." |
256 |
- elog |
257 |
- elog "Disabling the dot USE flag will remove the GraphViz dependency," |
258 |
- elog "along with Doxygen's ability to generate diagrams in the docs." |
259 |
- elog "See the Doxygen homepage for additional helper tools to parse" |
260 |
- elog "more languages." |
261 |
- elog |
262 |
-} |
263 |
- |
264 |
-pkg_postrm() { |
265 |
- fdo-mime_desktop_database_update |
266 |
-} |
267 |
|
268 |
diff --git a/app-doc/doxygen/doxygen-1.8.9.1.ebuild b/app-doc/doxygen/doxygen-1.8.9.1.ebuild |
269 |
deleted file mode 100644 |
270 |
index 30e709c..0000000 |
271 |
--- a/app-doc/doxygen/doxygen-1.8.9.1.ebuild |
272 |
+++ /dev/null |
273 |
@@ -1,241 +0,0 @@ |
274 |
-# Copyright 1999-2015 Gentoo Foundation |
275 |
-# Distributed under the terms of the GNU General Public License v2 |
276 |
-# $Id$ |
277 |
- |
278 |
-EAPI=4 |
279 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
280 |
- |
281 |
-inherit eutils fdo-mime flag-o-matic python-any-r1 qt4-r2 toolchain-funcs |
282 |
- |
283 |
-DESCRIPTION="Documentation system for most programming languages" |
284 |
-HOMEPAGE="http://www.doxygen.org/" |
285 |
-SRC_URI="http://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz |
286 |
- https://dev.gentoo.org/~xarthisius/distfiles/doxywizard.png" |
287 |
- |
288 |
-LICENSE="GPL-2" |
289 |
-SLOT="0" |
290 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" |
291 |
-IUSE="clang debug doc dot doxysearch qt4 latex sqlite" |
292 |
- |
293 |
-#missing SerbianCyrilic, JapaneseEn, KoreanEn, Chinesetraditional |
294 |
- |
295 |
-LANGS=(hy ar pt_BR ca zh cs de da eo es fa fi fr el hr hu id it ja ko lt mk |
296 |
-nl nb pl pt ro ru sl sk sr sv tr uk vi af) |
297 |
-for X in "${LANGS[@]}" ; do |
298 |
- IUSE="${IUSE} linguas_${X}" |
299 |
-done |
300 |
- |
301 |
-RDEPEND="app-text/ghostscript-gpl |
302 |
- dev-lang/perl |
303 |
- media-libs/libpng |
304 |
- virtual/libiconv |
305 |
- clang? ( sys-devel/clang ) |
306 |
- dot? ( |
307 |
- media-gfx/graphviz |
308 |
- media-libs/freetype |
309 |
- ) |
310 |
- doxysearch? ( =dev-libs/xapian-1.2* ) |
311 |
- latex? ( app-text/texlive[extra] ) |
312 |
- qt4? ( dev-qt/qtgui:4 ) |
313 |
- sqlite? ( dev-db/sqlite:3 ) |
314 |
- " |
315 |
- |
316 |
-DEPEND="sys-apps/sed |
317 |
- sys-devel/flex |
318 |
- sys-devel/bison |
319 |
- doc? ( ${PYTHON_DEPS} ) |
320 |
- ${RDEPEND}" |
321 |
- |
322 |
-# src_test() defaults to make -C testing but there is no such directory (bug #504448) |
323 |
-RESTRICT="mirror test" |
324 |
-EPATCH_SUFFIX="patch" |
325 |
- |
326 |
-get_langs() { |
327 |
- # using only user set linguas also fixes #263641 |
328 |
- my_linguas=() |
329 |
- for lingua in ${LINGUAS}; do |
330 |
- if has ${lingua} "${LANGS[@]}"; then |
331 |
- case ${lingua} in |
332 |
- hy) lingua=am ;; |
333 |
- pt_BR) lingua=br ;; |
334 |
- zh*) lingua=cn ;; |
335 |
- cs) lingua=cz ;; |
336 |
- da) lingua=dk ;; |
337 |
- el*) lingua=gr ;; |
338 |
- ja*) lingua=jp ;; |
339 |
- ko) lingua=kr ;; |
340 |
- nb) lingua=no ;; |
341 |
- sl) lingua=si ;; |
342 |
- tr*) lingua=tr ;; |
343 |
- uk) lingua=ua ;; |
344 |
- af) lingua=za ;; |
345 |
- esac |
346 |
- has ${lingua} "${my_linguas[@]}" || |
347 |
- my_linguas+=(${lingua}) |
348 |
- fi |
349 |
- done |
350 |
- f_langs="${my_linguas[@]}" |
351 |
- echo ${f_langs// /,} |
352 |
-} |
353 |
- |
354 |
-pkg_setup() { |
355 |
- tc-export CC CXX |
356 |
- use doc && python-any-r1_pkg_setup |
357 |
-} |
358 |
- |
359 |
-src_prepare() { |
360 |
- # use CFLAGS, CXXFLAGS, LDFLAGS |
361 |
- export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}" |
362 |
- |
363 |
- sed -i.orig -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \ |
364 |
- -e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \ |
365 |
- -e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \ |
366 |
- -e "s:^\(TMAKE_CXX\s*\)=.*$:\1= $(tc-getCXX):" \ |
367 |
- -e "s:^\(TMAKE_LINK\s*\)=.*$:\1= $(tc-getCXX):" \ |
368 |
- -e "s:^\(TMAKE_LINK_SHLIB\s*\)=.*$:\1= $(tc-getCXX):" \ |
369 |
- -e "s:^\(TMAKE_CC\s*\)=.*$:\1= $(tc-getCC):" \ |
370 |
- -e "s:^\(TMAKE_AR\s*\)=.*$:\1= $(tc-getAR) cqs:" \ |
371 |
- tmake/lib/{{linux,gnu,freebsd,netbsd,openbsd,solaris}-g++,macosx-c++,linux-64}/tmake.conf \ |
372 |
- || die |
373 |
- |
374 |
- # Ensure we link to -liconv |
375 |
- if use elibc_FreeBSD && has_version dev-libs/libiconv || use elibc_uclibc; then |
376 |
- for pro in */*.pro.in */*/*.pro.in; do |
377 |
- echo "unix:LIBS += -liconv" >> "${pro}" |
378 |
- done |
379 |
- fi |
380 |
- |
381 |
- # Call dot with -Teps instead of -Tps for EPS generation - bug #282150 |
382 |
- sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die |
383 |
- |
384 |
- # prefix search tools patch, plus OSX fixes |
385 |
- epatch "${FILESDIR}"/${PN}-1.8.1-prefix-misc-alt.patch |
386 |
- epatch "${FILESDIR}"/${P}-empty-line-sigsegv.patch #454348 |
387 |
- |
388 |
- # fix pdf doc |
389 |
- sed -i.orig -e "s:g_kowal:g kowal:" \ |
390 |
- doc/maintainers.txt || die |
391 |
- |
392 |
- sed -e "s/\$(DATE)/$(LC_ALL="C" LANG="C" date)/g" \ |
393 |
- -i Makefile.in || die #428280 |
394 |
- |
395 |
- if is-flagq "-O3" ; then |
396 |
- echo |
397 |
- ewarn "Compiling with -O3 is known to produce incorrectly" |
398 |
- ewarn "optimized code which breaks doxygen." |
399 |
- echo |
400 |
- elog "Continuing with -O2 instead ..." |
401 |
- echo |
402 |
- replace-flags "-O3" "-O2" |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-src_configure() { |
407 |
- # set ./configure options (prefix, Qt based wizard, docdir) |
408 |
- |
409 |
- local my_conf="--shared --enable-langs $(get_langs)" |
410 |
- |
411 |
- if use debug ; then |
412 |
- my_conf="${my_conf} --debug" |
413 |
- else |
414 |
- my_conf="${my_conf} --release " |
415 |
- fi |
416 |
- |
417 |
- use clang && my_conf="${my_conf} --with-libclang" |
418 |
- |
419 |
- use doxysearch && my_conf="${my_conf} --with-doxysearch" |
420 |
- |
421 |
- use qt4 && my_conf="${my_conf} --with-doxywizard" |
422 |
- |
423 |
- use sqlite && my_conf="${my_conf} --with-sqlite3" |
424 |
- |
425 |
- # On non GNU userland (e.g. BSD), configure script picks up make and bails |
426 |
- # out because it is not GNU make, so we force the right value. |
427 |
- use userland_GNU || my_conf="${my_conf} --make ${MAKE} --install install" |
428 |
- |
429 |
- export LINK="${QMAKE_LINK}" |
430 |
- export LINK_SHLIB="${QMAKE_CXX}" |
431 |
- |
432 |
- ./configure --prefix "${EPREFIX}/usr" ${my_conf} \ |
433 |
- || die |
434 |
- |
435 |
- if use qt4 ; then |
436 |
- pushd addon/doxywizard &> /dev/null |
437 |
- eqmake4 doxywizard.pro -o Makefile.doxywizard |
438 |
- popd &> /dev/null |
439 |
- fi |
440 |
-} |
441 |
- |
442 |
-src_compile() { |
443 |
- |
444 |
- emake CFLAGS+="${ECFLAGS}" CXXFLAGS+="${ECXXFLAGS}" \ |
445 |
- LFLAGS+="${ELDFLAGS}" all |
446 |
- |
447 |
- # generate html and pdf (if tetex in use) documents. |
448 |
- # errors here are not considered fatal, hence the ewarn message |
449 |
- # TeX's font caching in /var/cache/fonts causes sandbox warnings, |
450 |
- # so we allow it. |
451 |
- if use doc; then |
452 |
- if ! use dot; then |
453 |
- sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ |
454 |
- {Doxyfile,doc/Doxyfile} \ |
455 |
- || ewarn "disabling dot failed" |
456 |
- fi |
457 |
- if use latex; then |
458 |
- addwrite /var/cache/fonts |
459 |
- addwrite /var/cache/fontconfig |
460 |
- addwrite /usr/share/texmf/fonts/pk |
461 |
- addwrite /usr/share/texmf/ls-R |
462 |
- make pdf || ewarn '"make pdf docs" failed.' |
463 |
- else |
464 |
- cp doc/Doxyfile doc/Doxyfile.orig |
465 |
- cp doc/Makefile doc/Makefile.orig |
466 |
- sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
467 |
- doc/Doxyfile |
468 |
- sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
469 |
- -e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
470 |
- -e "s/@sed/# @sed/" doc/Makefile |
471 |
- make docs || ewarn '"make docs" failed.' |
472 |
- fi |
473 |
- fi |
474 |
-} |
475 |
- |
476 |
-src_install() { |
477 |
- emake DESTDIR="${D}" MAN1DIR=share/man/man1 install |
478 |
- |
479 |
- if use qt4; then |
480 |
- doicon "${DISTDIR}/doxywizard.png" |
481 |
- make_desktop_entry doxywizard "DoxyWizard ${PV}" \ |
482 |
- "/usr/share/pixmaps/doxywizard.png" \ |
483 |
- "Development" |
484 |
- fi |
485 |
- |
486 |
- dodoc LANGUAGE.HOWTO README.md |
487 |
- |
488 |
- # pdf and html manuals |
489 |
- if use doc; then |
490 |
- dohtml -r html/* |
491 |
- use latex && dodoc latex/doxygen_manual.pdf |
492 |
- fi |
493 |
-} |
494 |
- |
495 |
-pkg_postinst() { |
496 |
- fdo-mime_desktop_database_update |
497 |
- |
498 |
- elog |
499 |
- elog "The USE flags qt4, doc, and latex will enable doxywizard, or" |
500 |
- elog "the html and pdf documentation, respectively. For examples" |
501 |
- elog "and other goodies, see the source tarball. For some example" |
502 |
- elog "output, run doxygen on the doxygen source using the Doxyfile" |
503 |
- elog "provided in the top-level source dir." |
504 |
- elog |
505 |
- elog "Disabling the dot USE flag will remove the GraphViz dependency," |
506 |
- elog "along with Doxygen's ability to generate diagrams in the docs." |
507 |
- elog "See the Doxygen homepage for additional helper tools to parse" |
508 |
- elog "more languages." |
509 |
- elog |
510 |
-} |
511 |
- |
512 |
-pkg_postrm() { |
513 |
- fdo-mime_desktop_database_update |
514 |
-} |