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