Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-doc/doxygen: ChangeLog doxygen-1.5.9.ebuild
Date: Fri, 28 Aug 2009 20:15:48
Message-Id: E1Mfpap-0000Pj-QJ@stork.gentoo.org
1 nerdboy 09/08/25 06:33:19
2
3 Modified: ChangeLog
4 Added: doxygen-1.5.9.ebuild
5 Log:
6 Adding version 1.5.9 until some issues are worked out; fixes bug
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.167 app-doc/doxygen/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.167&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.167&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/ChangeLog?r1=1.166&r2=1.167
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v
19 retrieving revision 1.166
20 retrieving revision 1.167
21 diff -u -r1.166 -r1.167
22 --- ChangeLog 25 Aug 2009 06:12:37 -0000 1.166
23 +++ ChangeLog 25 Aug 2009 06:33:19 -0000 1.167
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-doc/doxygen
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.166 2009/08/25 06:12:37 nerdboy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.167 2009/08/25 06:33:19 nerdboy Exp $
29 +
30 +*doxygen-1.5.9 (25 Aug 2009)
31 +
32 + 25 Aug 2009; Steve Arnold <nerdboy@g.o> +doxygen-1.5.9.ebuild:
33 + Adding version 1.5.9 until some issues are worked out. This fixes some
34 + problems with 1.5.8, and 1.6.0 is masked for time being. Fixes bug
35 + #275753.
36
37 *doxygen-1.6.0 (25 Aug 2009)
38
39
40
41
42 1.1 app-doc/doxygen/doxygen-1.5.9.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/doxygen-1.5.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/doxygen-1.5.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: doxygen-1.5.9.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/doxygen-1.5.9.ebuild,v 1.1 2009/08/25 06:33:19 nerdboy Exp $
52
53 EAPI=1
54
55 inherit eutils flag-o-matic toolchain-funcs qt4 fdo-mime
56
57 DESCRIPTION="documentation system for C++, C, Java, Objective-C, Python, IDL, and other languages"
58 HOMEPAGE="http://www.doxygen.org/"
59 SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="debug doc nodot qt4 latex elibc_FreeBSD"
65
66 RDEPEND="qt4? ( x11-libs/qt-gui:4 )
67 latex? ( app-text/texlive-core
68 dev-texlive/texlive-genericrecommended
69 dev-texlive/texlive-fontsrecommended
70 dev-texlive/texlive-latexrecommended
71 dev-texlive/texlive-latexextra )
72 dev-lang/python
73 virtual/libiconv
74 media-libs/libpng
75 virtual/ghostscript
76 !nodot? ( >=media-gfx/graphviz-2.20.0
77 media-libs/freetype )"
78 DEPEND=">=sys-apps/sed-4
79 sys-devel/flex
80 ${RDEPEND}"
81
82 EPATCH_SUFFIX="patch"
83
84 src_unpack() {
85 unpack ${A}
86 cd "${S}"
87
88 # use CFLAGS, CXXFLAGS, LDFLAGS
89 sed -i.orig -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \
90 -e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \
91 -e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \
92 tmake/lib/{{linux,freebsd,netbsd,openbsd,solaris}-g++,macosx-c++}/tmake.conf \
93 || die "sed failed"
94
95 # Ensure we link to -liconv
96 if use elibc_FreeBSD; then
97 for pro in */*.pro.in */*/*.pro.in; do
98 echo "unix:LIBS += -liconv" >> "${pro}"
99 done
100 fi
101
102 # Call dot with -Teps instead of -Tps for EPS generation - bug #282150
103 epatch "${FILESDIR}/${PN}-1.5-dot-eps.patch"
104
105 # fix final DESTDIR issue
106 sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \
107 addon/doxywizard/Makefile.in || die "sed failed"
108
109 if is-flagq "-O3" ; then
110 echo
111 ewarn "Compiling with -O3 is known to produce incorrectly"
112 ewarn "optimized code which breaks doxygen."
113 echo
114 epause 6
115 elog "Continuing with -O2 instead ..."
116 echo
117 replace-flags "-O3" "-O2"
118 fi
119 }
120
121 src_compile() {
122 export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}"
123 # set ./configure options (prefix, Qt based wizard, docdir)
124
125 local my_conf=""
126 if use debug; then
127 my_conf="--prefix /usr --debug"
128 else
129 my_conf="--prefix /usr"
130 fi
131
132 export CC="${QMAKE_CC}"
133 export CXX="${QMAKE_CXX}"
134 export LINK="${QMAKE_LINK}"
135 export LINK_SHLIB="${QMAKE_CXX}"
136
137 if use qt4; then
138 export QTDIR="/usr"
139 einfo "using QTDIR: '$QTDIR'."
140 export LIBRARY_PATH="${QTDIR}/$(get_libdir):${LIBRARY_PATH}"
141 export LD_LIBRARY_PATH="${QTDIR}/$(get_libdir):${LD_LIBRARY_PATH}"
142 einfo "using QT LIBRARY_PATH: '$LIBRARY_PATH'."
143 einfo "using QT LD_LIBRARY_PATH: '$LD_LIBRARY_PATH'."
144 ./configure ${my_conf} $(use_with qt4 doxywizard) \
145 || die 'configure with qt4 failed'
146 else
147 ./configure ${my_conf} || die 'configure failed'
148 fi
149
150 # and compile
151 emake all || die 'emake failed'
152
153 # generate html and pdf (if tetex in use) documents.
154 # errors here are not considered fatal, hence the ewarn message
155 # TeX's font caching in /var/cache/fonts causes sandbox warnings,
156 # so we allow it.
157 if use doc; then
158 if use nodot; then
159 sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \
160 {Doxyfile,doc/Doxyfile} \
161 || ewarn "disabling dot failed"
162 fi
163 if use latex; then
164 addwrite /var/cache/fonts
165 addwrite /var/cache/fontconfig
166 addwrite /usr/share/texmf/fonts/pk
167 addwrite /usr/share/texmf/ls-R
168 make pdf || ewarn '"make pdf docs" failed.'
169 else
170 cp doc/Doxyfile doc/Doxyfile.orig
171 cp doc/Makefile doc/Makefile.orig
172 sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \
173 doc/Doxyfile
174 sed -i.orig -e "s/@epstopdf/# @epstopdf/" \
175 -e "s/@cp Makefile.latex/# @cp Makefile.latex/" \
176 -e "s/@sed/# @sed/" doc/Makefile
177 make docs || ewarn '"make html docs" failed.'
178 fi
179 fi
180 }
181
182 src_install() {
183 make DESTDIR="${D}" MAN1DIR=share/man/man1 \
184 install || die '"make install" failed.'
185
186 if use qt4; then
187 doicon "${FILESDIR}/doxywizard.png"
188 make_desktop_entry doxywizard "DoxyWizard ${PV}" \
189 "doxywizard.png" "Application;Development"
190 fi
191
192 dodoc INSTALL LANGUAGE.HOWTO README
193
194 # pdf and html manuals
195 if use doc; then
196 dohtml -r html/*
197 if use latex; then
198 insinto /usr/share/doc/"${PF}"
199 doins latex/doxygen_manual.pdf
200 fi
201 fi
202 }
203
204 pkg_postinst() {
205 fdo-mime_desktop_database_update
206
207 elog
208 elog "The USE flags qt4, doc, and latex will enable doxywizard, or"
209 elog "the html and pdf documentation, respectively. For examples"
210 elog "and other goodies, see the source tarball. For some example"
211 elog "output, run doxygen on the doxygen source using the Doxyfile"
212 elog "provided in the top-level source dir."
213 elog
214 elog "Enabling the nodot USE flag will remove the GraphViz dependency,"
215 elog "along with Doxygen's ability to generate diagrams in the docs."
216 elog "See the Doxygen homepage for additional helper tools to parse"
217 elog "more languages."
218 elog
219 }
220
221 pkg_postrm() {
222 fdo-mime_desktop_database_update
223 }