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