Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-doc/doxygen: doxygen-1.8.0.ebuild ChangeLog
Date: Wed, 29 Feb 2012 09:12:45
Message-Id: 20120229091235.D6E702004B@flycatcher.gentoo.org
1 xarthisius 12/02/29 09:12:35
2
3 Modified: ChangeLog
4 Added: doxygen-1.8.0.ebuild
5 Log:
6 Version bump wrt bug 406229 by <supercilious.dude@×××××.com>
7
8 (Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.211 app-doc/doxygen/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.211&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.211&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?r1=1.210&r2=1.211
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v
20 retrieving revision 1.210
21 retrieving revision 1.211
22 diff -u -r1.210 -r1.211
23 --- ChangeLog 15 Feb 2012 11:29:59 -0000 1.210
24 +++ ChangeLog 29 Feb 2012 09:12:35 -0000 1.211
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-doc/doxygen
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.210 2012/02/15 11:29:59 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.211 2012/02/29 09:12:35 xarthisius Exp $
30 +
31 +*doxygen-1.8.0 (29 Feb 2012)
32 +
33 + 29 Feb 2012; Kacper Kowalik <xarthisius@g.o> +doxygen-1.8.0.ebuild:
34 + Version bump wrt bug 406229 by <supercilious.dude@×××××.com>
35
36 15 Feb 2012; Kacper Kowalik <xarthisius@g.o> doxygen-1.7.6.1.ebuild:
37 Don't RDEPEND on python, thanks to Arfrever Frehtes Taifersar Arahesis
38
39
40
41 1.1 app-doc/doxygen/doxygen-1.8.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/doxygen-1.8.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/doxygen-1.8.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: doxygen-1.8.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/doxygen-1.8.0.ebuild,v 1.1 2012/02/29 09:12:35 xarthisius Exp $
51
52 EAPI=4
53
54 inherit eutils fdo-mime flag-o-matic python qt4-r2 toolchain-funcs
55
56 DESCRIPTION="Documentation system for most programming languages"
57 HOMEPAGE="http://www.doxygen.org/"
58 SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz
59 http://dev.gentoo.org/~xarthisius/distfiles/doxywizard.png"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
64 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
65 IUSE="debug doc dot qt4 latex elibc_FreeBSD"
66
67 #missing SerbianCyrilic, JapaneseEn, KoreanEn, Chinesetraditional
68
69 LANGS=(hy ar pt_BR ca zh cs de da eo es fa fi fr el hr hu id it ja ko lt mk
70 nl nb pl pt ro ru sl sk sr sv tr uk vi af)
71 for X in "${LANGS[@]}" ; do
72 IUSE="${IUSE} linguas_${X}"
73 done
74
75 RDEPEND="qt4? ( x11-libs/qt-gui:4 )
76 latex? ( app-text/texlive[extra] )
77 dev-lang/perl
78 virtual/libiconv
79 media-libs/libpng
80 app-text/ghostscript-gpl
81 dot? (
82 media-gfx/graphviz
83 media-libs/freetype
84 )"
85
86 DEPEND="sys-apps/sed
87 sys-devel/flex
88 sys-devel/bison
89 doc? ( =dev-lang/python-2* )
90 ${RDEPEND}"
91
92 RESTRICT="mirror"
93 EPATCH_SUFFIX="patch"
94
95 get_langs() {
96 # using only user set linguas also fixes #263641
97 my_linguas=()
98 for lingua in ${LINGUAS}; do
99 if has ${lingua} "${LANGS[@]}"; then
100 case ${lingua} in
101 hy) lingua=am ;;
102 pt_BR) lingua=br ;;
103 zh*) lingua=cn ;;
104 cs) lingua=cz ;;
105 da) lingua=dk ;;
106 el*) lingua=gr ;;
107 ja*) lingua=jp ;;
108 ko) lingua=kr ;;
109 nb) lingua=no ;;
110 sl) lingua=si ;;
111 tr*) lingua=tr ;;
112 uk) lingua=ua ;;
113 af) lingua=za ;;
114 esac
115 has ${lingua} "${my_linguas[@]}" ||
116 my_linguas+=(${lingua})
117 fi
118 done
119 f_langs="${my_linguas[@]}"
120 echo ${f_langs// /,}
121 }
122
123 pkg_setup() {
124 tc-export CC CXX
125 if use doc; then
126 python_set_active_version 2
127 python_pkg_setup
128 fi
129 }
130
131 src_prepare() {
132 # use CFLAGS, CXXFLAGS, LDFLAGS
133 export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}"
134
135 sed -i.orig -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \
136 -e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \
137 -e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \
138 -e "s:^\(TMAKE_CXX\s*\)=.*$:\1= $(tc-getCXX):" \
139 -e "s:^\(TMAKE_LINK\s*\)=.*$:\1= $(tc-getCXX):" \
140 -e "s:^\(TMAKE_LINK_SHLIB\s*\)=.*$:\1= $(tc-getCXX):" \
141 -e "s:^\(TMAKE_CXX\s*\)=.*$:\1= $(tc-getCC):" \
142 tmake/lib/{{linux,gnu,freebsd,netbsd,openbsd,solaris}-g++,macosx-c++,linux-64}/tmake.conf \
143 || die
144
145 # Ensure we link to -liconv
146 if use elibc_FreeBSD; then
147 for pro in */*.pro.in */*/*.pro.in; do
148 echo "unix:LIBS += -liconv" >> "${pro}"
149 done
150 fi
151
152 # Call dot with -Teps instead of -Tps for EPS generation - bug #282150
153 sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die
154
155 # prefix search tools patch, plus OSX fixes
156 epatch "${FILESDIR}"/${PN}-1.5.6-prefix-misc-alt.patch
157
158 # fix final DESTDIR issue
159 sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \
160 -e "s/all: Makefile.doxywizard/all:/g" \
161 addon/doxywizard/Makefile.in || die
162
163 # fix pdf doc
164 sed -i.orig -e "s:g_kowal:g kowal:" \
165 doc/maintainers.txt || die
166
167 if is-flagq "-O3" ; then
168 echo
169 ewarn "Compiling with -O3 is known to produce incorrectly"
170 ewarn "optimized code which breaks doxygen."
171 echo
172 elog "Continuing with -O2 instead ..."
173 echo
174 replace-flags "-O3" "-O2"
175 fi
176 }
177
178 src_configure() {
179 # set ./configure options (prefix, Qt based wizard, docdir)
180
181 local my_conf="--shared --enable-langs $(get_langs)"
182
183 if use debug ; then
184 my_conf="${my_conf} --debug"
185 else
186 my_conf="${my_conf} --release "
187 fi
188
189 use ppc64 && my_conf="${my_conf} --english-only" #263641
190
191 use qt4 && my_conf="${my_conf} --with-doxywizard"
192
193 export LINK="${QMAKE_LINK}"
194 export LINK_SHLIB="${QMAKE_CXX}"
195
196 if use qt4 ; then
197 pushd addon/doxywizard &> /dev/null
198 eqmake4 doxywizard.pro -o Makefile.doxywizard
199 popd &> /dev/null
200 fi
201
202 ./configure --prefix "${EPREFIX}/usr" ${my_conf} \
203 || die
204 }
205
206 src_compile() {
207
208 emake CFLAGS+="${ECFLAGS}" CXXFLAGS+="${ECXXFLAGS}" \
209 LFLAGS+="${ELDFLAGS}" all
210
211 # generate html and pdf (if tetex in use) documents.
212 # errors here are not considered fatal, hence the ewarn message
213 # TeX's font caching in /var/cache/fonts causes sandbox warnings,
214 # so we allow it.
215 if use doc; then
216 if ! use dot; then
217 sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \
218 {Doxyfile,doc/Doxyfile} \
219 || ewarn "disabling dot failed"
220 fi
221 if use latex; then
222 addwrite /var/cache/fonts
223 addwrite /var/cache/fontconfig
224 addwrite /usr/share/texmf/fonts/pk
225 addwrite /usr/share/texmf/ls-R
226 make pdf || ewarn '"make pdf docs" failed.'
227 else
228 cp doc/Doxyfile doc/Doxyfile.orig
229 cp doc/Makefile doc/Makefile.orig
230 sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \
231 doc/Doxyfile
232 sed -i.orig -e "s/@epstopdf/# @epstopdf/" \
233 -e "s/@cp Makefile.latex/# @cp Makefile.latex/" \
234 -e "s/@sed/# @sed/" doc/Makefile
235 make docs || ewarn '"make docs" failed.'
236 fi
237 fi
238 }
239
240 src_install() {
241 emake DESTDIR="${D}" MAN1DIR=share/man/man1 install
242
243 if use qt4; then
244 doicon "${DISTDIR}/doxywizard.png"
245 make_desktop_entry doxywizard "DoxyWizard ${PV}" \
246 "/usr/share/pixmaps/doxywizard.png" \
247 "Application;Development"
248 fi
249
250 dodoc INSTALL LANGUAGE.HOWTO README
251
252 # pdf and html manuals
253 if use doc; then
254 dohtml -r html/*
255 use latex && dodoc latex/doxygen_manual.pdf
256 fi
257 }
258
259 pkg_postinst() {
260 fdo-mime_desktop_database_update
261
262 elog
263 elog "The USE flags qt4, doc, and latex will enable doxywizard, or"
264 elog "the html and pdf documentation, respectively. For examples"
265 elog "and other goodies, see the source tarball. For some example"
266 elog "output, run doxygen on the doxygen source using the Doxyfile"
267 elog "provided in the top-level source dir."
268 elog
269 elog "Disabling the dot USE flag will remove the GraphViz dependency,"
270 elog "along with Doxygen's ability to generate diagrams in the docs."
271 elog "See the Doxygen homepage for additional helper tools to parse"
272 elog "more languages."
273 elog
274 }
275
276 pkg_postrm() {
277 fdo-mime_desktop_database_update
278 }