1 |
nerdboy 11/02/01 04:12:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: doxygen-1.7.3.ebuild |
5 |
Log: |
6 |
Added latest upstream release, closes bug 351578. |
7 |
|
8 |
(Portage version: 2.1.9.35/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.196 app-doc/doxygen/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.196&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.196&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?r1=1.195&r2=1.196 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v |
20 |
retrieving revision 1.195 |
21 |
retrieving revision 1.196 |
22 |
diff -u -r1.195 -r1.196 |
23 |
--- ChangeLog 18 Jan 2011 14:07:38 -0000 1.195 |
24 |
+++ ChangeLog 1 Feb 2011 04:12:47 -0000 1.196 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-doc/doxygen |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.195 2011/01/18 14:07:38 xarthisius Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.196 2011/02/01 04:12:47 nerdboy Exp $ |
30 |
+ |
31 |
+*doxygen-1.7.3 (01 Feb 2011) |
32 |
+ |
33 |
+ 01 Feb 2011; Steve Arnold <nerdboy@g.o> +doxygen-1.7.3.ebuild: |
34 |
+ Added latest upstream release, closes bug #351578. |
35 |
|
36 |
18 Jan 2011; Kacper Kowalik <xarthisius@g.o> doxygen-1.7.2.ebuild: |
37 |
ppc64 stable wrt #338632 |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-doc/doxygen/doxygen-1.7.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/doxygen-1.7.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/doxygen-1.7.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: doxygen-1.7.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 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.7.3.ebuild,v 1.1 2011/02/01 04:12:47 nerdboy Exp $ |
51 |
|
52 |
EAPI=3 |
53 |
|
54 |
inherit eutils flag-o-matic toolchain-funcs qt4-r2 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 |
tcl? ( mirror://gentoo/${PN}-1.7-tcl_support.patch.bz2 )" |
60 |
|
61 |
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" |
62 |
|
63 |
IUSE="debug doc nodot qt4 latex tcl elibc_FreeBSD" |
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
|
67 |
RDEPEND="qt4? ( x11-libs/qt-gui:4 ) |
68 |
latex? ( >=app-text/texlive-2008[extra] ) |
69 |
dev-lang/python |
70 |
virtual/libiconv |
71 |
media-libs/libpng |
72 |
app-text/ghostscript-gpl |
73 |
!nodot? ( >=media-gfx/graphviz-2.20.0 |
74 |
media-libs/freetype )" |
75 |
DEPEND=">=sys-apps/sed-4 |
76 |
sys-devel/flex |
77 |
${RDEPEND}" |
78 |
|
79 |
EPATCH_SUFFIX="patch" |
80 |
|
81 |
src_prepare() { |
82 |
# use CFLAGS, CXXFLAGS, LDFLAGS |
83 |
export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}" |
84 |
|
85 |
sed -i.orig -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \ |
86 |
-e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \ |
87 |
-e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \ |
88 |
tmake/lib/{{linux,freebsd,netbsd,openbsd,solaris}-g++,macosx-c++}/tmake.conf \ |
89 |
|| die "sed 1 failed" |
90 |
|
91 |
# Ensure we link to -liconv |
92 |
if use elibc_FreeBSD; then |
93 |
for pro in */*.pro.in */*/*.pro.in; do |
94 |
echo "unix:LIBS += -liconv" >> "${pro}" |
95 |
done |
96 |
fi |
97 |
|
98 |
# Call dot with -Teps instead of -Tps for EPS generation - bug #282150 |
99 |
epatch "${FILESDIR}/${PN}-1.7.1-dot-eps.patch" |
100 |
|
101 |
# prefix search tools patch, plus OSX fixes |
102 |
epatch "${FILESDIR}"/${PN}-1.5.6-prefix-misc-alt.patch |
103 |
|
104 |
# fix final DESTDIR issue |
105 |
sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \ |
106 |
addon/doxywizard/Makefile.in || die "sed 2 failed" |
107 |
|
108 |
# fix pdf doc |
109 |
sed -i.orig -e "s:g_kowal:g kowal:" \ |
110 |
doc/maintainers.txt || die "sed 3 failed" |
111 |
|
112 |
# add native TCL support |
113 |
use tcl && epatch "${WORKDIR}"/${PN}-1.7-tcl_support.patch |
114 |
|
115 |
if is-flagq "-O3" ; then |
116 |
echo |
117 |
ewarn "Compiling with -O3 is known to produce incorrectly" |
118 |
ewarn "optimized code which breaks doxygen." |
119 |
echo |
120 |
elog "Continuing with -O2 instead ..." |
121 |
echo |
122 |
replace-flags "-O3" "-O2" |
123 |
fi |
124 |
} |
125 |
|
126 |
src_configure() { |
127 |
# set ./configure options (prefix, Qt based wizard, docdir) |
128 |
|
129 |
local my_conf="" |
130 |
use debug && my_conf="--debug" |
131 |
use ppc64 && my_conf="${my_conf} --english-only" #263641 |
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="${EPREFIX}/usr" |
140 |
einfo "using QTDIR: '$QTDIR'." |
141 |
export LIBRARY_PATH="${QTDIR}/$(get_libdir)${LIBRARY_PATH:+:}${LIBRARY_PATH}" |
142 |
export LD_LIBRARY_PATH="${QTDIR}/$(get_libdir)${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}" |
143 |
einfo "using QT LIBRARY_PATH: '$LIBRARY_PATH'." |
144 |
einfo "using QT LD_LIBRARY_PATH: '$LD_LIBRARY_PATH'." |
145 |
|
146 |
./configure --prefix "${EPREFIX}/usr" ${my_conf} $(use_with qt4 doxywizard) \ |
147 |
|| die 'configure with qt4 failed' |
148 |
else |
149 |
./configure --prefix "${EPREFIX}/usr" ${my_conf} || die 'configure failed' |
150 |
fi |
151 |
} |
152 |
|
153 |
src_compile() { |
154 |
CFLAGS+="${ECFLAGS}" CXXFLAGS+="${ECXXFLAGS}" LFLAGS+="${ELDFLAGS}" \ |
155 |
emake 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} \ |
165 |
|| ewarn "disabling dot failed" |
166 |
fi |
167 |
if use latex; then |
168 |
addwrite /var/cache/fonts |
169 |
addwrite /var/cache/fontconfig |
170 |
addwrite /usr/share/texmf/fonts/pk |
171 |
addwrite /usr/share/texmf/ls-R |
172 |
make pdf || ewarn '"make pdf docs" failed.' |
173 |
else |
174 |
cp doc/Doxyfile doc/Doxyfile.orig |
175 |
cp doc/Makefile doc/Makefile.orig |
176 |
sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
177 |
doc/Doxyfile |
178 |
sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
179 |
-e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
180 |
-e "s/@sed/# @sed/" doc/Makefile |
181 |
make docs || ewarn '"make html docs" failed.' |
182 |
fi |
183 |
fi |
184 |
} |
185 |
|
186 |
src_install() { |
187 |
make DESTDIR="${D}" MAN1DIR=share/man/man1 \ |
188 |
install || die '"make install" failed.' |
189 |
|
190 |
if use qt4; then |
191 |
doicon "${FILESDIR}/doxywizard.png" |
192 |
make_desktop_entry doxywizard "DoxyWizard ${PV}" \ |
193 |
"/usr/share/pixmaps/doxywizard.png" \ |
194 |
"Application;Development" |
195 |
fi |
196 |
|
197 |
dodoc INSTALL LANGUAGE.HOWTO README |
198 |
|
199 |
# pdf and html manuals |
200 |
if use doc; then |
201 |
dohtml -r html/* |
202 |
if use latex; then |
203 |
insinto /usr/share/doc/"${PF}" |
204 |
doins latex/doxygen_manual.pdf |
205 |
fi |
206 |
fi |
207 |
} |
208 |
|
209 |
pkg_postinst() { |
210 |
fdo-mime_desktop_database_update |
211 |
|
212 |
elog |
213 |
elog "The USE flags qt4, doc, and latex will enable doxywizard, or" |
214 |
elog "the html and pdf documentation, respectively. For examples" |
215 |
elog "and other goodies, see the source tarball. For some example" |
216 |
elog "output, run doxygen on the doxygen source using the Doxyfile" |
217 |
elog "provided in the top-level source dir." |
218 |
elog |
219 |
elog "Enabling the nodot USE flag will remove the GraphViz dependency," |
220 |
elog "along with Doxygen's ability to generate diagrams in the docs." |
221 |
elog "See the Doxygen homepage for additional helper tools to parse" |
222 |
elog "more languages." |
223 |
elog |
224 |
} |
225 |
|
226 |
pkg_postrm() { |
227 |
fdo-mime_desktop_database_update |
228 |
} |