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