1 |
pva 09/06/17 15:41:57 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: doxygen-1.5.8-r1.ebuild |
5 |
Removed: doxygen-1.5.8.ebuild |
6 |
Log: |
7 |
Revbump to make doxygen-1.5.8-kdedocs.patch get our users, bug #266693. |
8 |
(Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.163 app-doc/doxygen/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.163&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.163&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/ChangeLog?r1=1.162&r2=1.163 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v |
20 |
retrieving revision 1.162 |
21 |
retrieving revision 1.163 |
22 |
diff -u -r1.162 -r1.163 |
23 |
--- ChangeLog 8 Jun 2009 04:33:04 -0000 1.162 |
24 |
+++ ChangeLog 17 Jun 2009 15:41:57 -0000 1.163 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-doc/doxygen |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.162 2009/06/08 04:33:04 nerdboy Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.163 2009/06/17 15:41:57 pva Exp $ |
30 |
+ |
31 |
+*doxygen-1.5.8-r1 (17 Jun 2009) |
32 |
+ |
33 |
+ 17 Jun 2009; Peter Volkov <pva@g.o> -doxygen-1.5.8.ebuild, |
34 |
+ +doxygen-1.5.8-r1.ebuild: |
35 |
+ Revbump to make doxygen-1.5.8-kdedocs.patch get our users, bug #266693. |
36 |
|
37 |
08 Jun 2009; Steve Arnold <nerdboy@g.o> |
38 |
+files/doxygen-1.5.8-kdedocs.patch, doxygen-1.5.8.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-doc/doxygen/doxygen-1.5.8-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/doxygen-1.5.8-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-doc/doxygen/doxygen-1.5.8-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: doxygen-1.5.8-r1.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.8-r1.ebuild,v 1.1 2009/06/17 15:41:57 pva 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.6 |
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 |
# Consolidate patches, apply FreeBSD configure patch, codepage patch, |
103 |
# qtools stuff, and patches for bugs 129142, 121770, and 129560. |
104 |
epatch "${FILESDIR}/${PN}-1.5-legacy-patches.diff" |
105 |
# backport fix for bug #266693 |
106 |
epatch "${FILESDIR}/${P}-kdedocs.patch" |
107 |
|
108 |
# remove internal libpng - see bug #210237 |
109 |
epatch "${FILESDIR}/${PN}-1.5-system-libpng.patch" |
110 |
|
111 |
# fix final DESTDIR issue |
112 |
sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \ |
113 |
addon/doxywizard/Makefile.in || die "sed failed" |
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 |
epause 6 |
121 |
elog "Continuing with -O2 instead ..." |
122 |
echo |
123 |
replace-flags "-O3" "-O2" |
124 |
fi |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}" |
129 |
# set ./configure options (prefix, Qt based wizard, docdir) |
130 |
|
131 |
local my_conf="" |
132 |
if use debug; then |
133 |
my_conf="--prefix /usr --debug" |
134 |
else |
135 |
my_conf="--prefix /usr" |
136 |
fi |
137 |
|
138 |
export CC="${QMAKE_CC}" |
139 |
export CXX="${QMAKE_CXX}" |
140 |
export LINK="${QMAKE_LINK}" |
141 |
export LINK_SHLIB="${QMAKE_CXX}" |
142 |
|
143 |
if use qt4; then |
144 |
export QTDIR="/usr" |
145 |
einfo "using QTDIR: '$QTDIR'." |
146 |
export LIBRARY_PATH="${QTDIR}/$(get_libdir):${LIBRARY_PATH}" |
147 |
export LD_LIBRARY_PATH="${QTDIR}/$(get_libdir):${LD_LIBRARY_PATH}" |
148 |
einfo "using QT LIBRARY_PATH: '$LIBRARY_PATH'." |
149 |
einfo "using QT LD_LIBRARY_PATH: '$LD_LIBRARY_PATH'." |
150 |
./configure ${my_conf} $(use_with qt4 doxywizard) \ |
151 |
|| die 'configure with qt4 failed' |
152 |
else |
153 |
./configure ${my_conf} || die 'configure failed' |
154 |
fi |
155 |
|
156 |
# and compile |
157 |
emake all || die 'emake failed' |
158 |
|
159 |
# generate html and pdf (if tetex in use) documents. |
160 |
# errors here are not considered fatal, hence the ewarn message |
161 |
# TeX's font caching in /var/cache/fonts causes sandbox warnings, |
162 |
# so we allow it. |
163 |
if use doc; then |
164 |
if use nodot; then |
165 |
sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ |
166 |
{Doxyfile,doc/Doxyfile} \ |
167 |
|| ewarn "disabling dot failed" |
168 |
fi |
169 |
if use latex; then |
170 |
addwrite /var/cache/fonts |
171 |
addwrite /var/cache/fontconfig |
172 |
addwrite /usr/share/texmf/fonts/pk |
173 |
addwrite /usr/share/texmf/ls-R |
174 |
make pdf || ewarn '"make pdf docs" failed.' |
175 |
else |
176 |
cp doc/Doxyfile doc/Doxyfile.orig |
177 |
cp doc/Makefile doc/Makefile.orig |
178 |
sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
179 |
doc/Doxyfile |
180 |
sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
181 |
-e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
182 |
-e "s/@sed/# @sed/" doc/Makefile |
183 |
make docs || ewarn '"make html docs" failed.' |
184 |
fi |
185 |
fi |
186 |
} |
187 |
|
188 |
src_install() { |
189 |
make DESTDIR="${D}" MAN1DIR=share/man/man1 \ |
190 |
install || die '"make install" failed.' |
191 |
|
192 |
if use qt4; then |
193 |
doicon "${FILESDIR}/doxywizard.png" |
194 |
make_desktop_entry doxywizard "DoxyWizard ${PV}" \ |
195 |
"doxywizard.png" "Application;Development" |
196 |
fi |
197 |
|
198 |
dodoc INSTALL LANGUAGE.HOWTO README |
199 |
|
200 |
# pdf and html manuals |
201 |
if use doc; then |
202 |
dohtml -r html/* |
203 |
if use latex; then |
204 |
insinto /usr/share/doc/"${PF}" |
205 |
doins latex/doxygen_manual.pdf |
206 |
fi |
207 |
fi |
208 |
} |
209 |
|
210 |
pkg_postinst() { |
211 |
fdo-mime_desktop_database_update |
212 |
|
213 |
elog |
214 |
elog "The USE flags qt4, doc, and latex will enable doxywizard, or" |
215 |
elog "the html and pdf documentation, respectively. For examples" |
216 |
elog "and other goodies, see the source tarball. For some example" |
217 |
elog "output, run doxygen on the doxygen source using the Doxyfile" |
218 |
elog "provided in the top-level source dir." |
219 |
elog |
220 |
elog "Enabling the nodot USE flag will remove the GraphViz dependency," |
221 |
elog "along with Doxygen's ability to generate diagrams in the docs." |
222 |
elog "See the Doxygen homepage for additional helper tools to parse" |
223 |
elog "more languages." |
224 |
elog |
225 |
} |
226 |
|
227 |
pkg_postrm() { |
228 |
fdo-mime_desktop_database_update |
229 |
} |