1 |
xarthisius 13/01/28 08:15:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: doxygen-1.8.3.1.ebuild |
5 |
Removed: doxygen-1.8.2.ebuild doxygen-1.8.1.2.ebuild |
6 |
Log: |
7 |
Version bump including fixes for #454348 by Sebastian Pipping <sping@g.o>. Drop old |
8 |
|
9 |
(Portage version: 2.2.0_alpha150/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9) |
10 |
|
11 |
Revision Changes Path |
12 |
1.233 app-doc/doxygen/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.233&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?rev=1.233&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/ChangeLog?r1=1.232&r2=1.233 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v |
21 |
retrieving revision 1.232 |
22 |
retrieving revision 1.233 |
23 |
diff -u -r1.232 -r1.233 |
24 |
--- ChangeLog 7 Oct 2012 08:54:33 -0000 1.232 |
25 |
+++ ChangeLog 28 Jan 2013 08:15:02 -0000 1.233 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for app-doc/doxygen |
28 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.232 2012/10/07 08:54:33 pacho Exp $ |
30 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/ChangeLog,v 1.233 2013/01/28 08:15:02 xarthisius Exp $ |
32 |
+ |
33 |
+*doxygen-1.8.3.1 (28 Jan 2013) |
34 |
+ |
35 |
+ 28 Jan 2013; Kacper Kowalik <xarthisius@g.o> +doxygen-1.8.3.1.ebuild, |
36 |
+ +files/doxygen-1.8.3.1-empty-line-sigsegv.patch, -doxygen-1.8.1.2.ebuild, |
37 |
+ -doxygen-1.8.2.ebuild: |
38 |
+ Version bump including fixes for #454348 by Sebastian Pipping |
39 |
+ <sping@g.o>. Drop old |
40 |
|
41 |
07 Oct 2012; Pacho Ramos <pacho@g.o> metadata.xml: |
42 |
Drop maintainer due retirement, #24135. |
43 |
|
44 |
|
45 |
|
46 |
1.1 app-doc/doxygen/doxygen-1.8.3.1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/doxygen-1.8.3.1.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/doxygen/doxygen-1.8.3.1.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: doxygen-1.8.3.1.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2013 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/app-doc/doxygen/doxygen-1.8.3.1.ebuild,v 1.1 2013/01/28 08:15:02 xarthisius Exp $ |
56 |
|
57 |
EAPI=4 |
58 |
|
59 |
inherit eutils fdo-mime flag-o-matic python qt4-r2 toolchain-funcs |
60 |
|
61 |
DESCRIPTION="Documentation system for most programming languages" |
62 |
HOMEPAGE="http://www.doxygen.org/" |
63 |
SRC_URI="http://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz |
64 |
http://dev.gentoo.org/~xarthisius/distfiles/doxywizard.png" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
69 |
IUSE="debug doc dot qt4 latex elibc_FreeBSD userland_GNU" |
70 |
|
71 |
#missing SerbianCyrilic, JapaneseEn, KoreanEn, Chinesetraditional |
72 |
|
73 |
LANGS=(hy ar pt_BR ca zh cs de da eo es fa fi fr el hr hu id it ja ko lt mk |
74 |
nl nb pl pt ro ru sl sk sr sv tr uk vi af) |
75 |
for X in "${LANGS[@]}" ; do |
76 |
IUSE="${IUSE} linguas_${X}" |
77 |
done |
78 |
|
79 |
RDEPEND="qt4? ( x11-libs/qt-gui:4 ) |
80 |
latex? ( app-text/texlive[extra] ) |
81 |
dev-lang/perl |
82 |
virtual/libiconv |
83 |
media-libs/libpng |
84 |
app-text/ghostscript-gpl |
85 |
dot? ( |
86 |
media-gfx/graphviz |
87 |
media-libs/freetype |
88 |
)" |
89 |
|
90 |
DEPEND="sys-apps/sed |
91 |
sys-devel/flex |
92 |
sys-devel/bison |
93 |
doc? ( =dev-lang/python-2* ) |
94 |
${RDEPEND}" |
95 |
|
96 |
RESTRICT="mirror" |
97 |
EPATCH_SUFFIX="patch" |
98 |
|
99 |
get_langs() { |
100 |
# using only user set linguas also fixes #263641 |
101 |
my_linguas=() |
102 |
for lingua in ${LINGUAS}; do |
103 |
if has ${lingua} "${LANGS[@]}"; then |
104 |
case ${lingua} in |
105 |
hy) lingua=am ;; |
106 |
pt_BR) lingua=br ;; |
107 |
zh*) lingua=cn ;; |
108 |
cs) lingua=cz ;; |
109 |
da) lingua=dk ;; |
110 |
el*) lingua=gr ;; |
111 |
ja*) lingua=jp ;; |
112 |
ko) lingua=kr ;; |
113 |
nb) lingua=no ;; |
114 |
sl) lingua=si ;; |
115 |
tr*) lingua=tr ;; |
116 |
uk) lingua=ua ;; |
117 |
af) lingua=za ;; |
118 |
esac |
119 |
has ${lingua} "${my_linguas[@]}" || |
120 |
my_linguas+=(${lingua}) |
121 |
fi |
122 |
done |
123 |
f_langs="${my_linguas[@]}" |
124 |
echo ${f_langs// /,} |
125 |
} |
126 |
|
127 |
pkg_setup() { |
128 |
tc-export CC CXX |
129 |
if use doc; then |
130 |
python_set_active_version 2 |
131 |
python_pkg_setup |
132 |
fi |
133 |
} |
134 |
|
135 |
src_prepare() { |
136 |
# use CFLAGS, CXXFLAGS, LDFLAGS |
137 |
export ECFLAGS="${CFLAGS}" ECXXFLAGS="${CXXFLAGS}" ELDFLAGS="${LDFLAGS}" |
138 |
|
139 |
sed -i.orig -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \ |
140 |
-e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \ |
141 |
-e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \ |
142 |
-e "s:^\(TMAKE_CXX\s*\)=.*$:\1= $(tc-getCXX):" \ |
143 |
-e "s:^\(TMAKE_LINK\s*\)=.*$:\1= $(tc-getCXX):" \ |
144 |
-e "s:^\(TMAKE_LINK_SHLIB\s*\)=.*$:\1= $(tc-getCXX):" \ |
145 |
-e "s:^\(TMAKE_CXX\s*\)=.*$:\1= $(tc-getCC):" \ |
146 |
tmake/lib/{{linux,gnu,freebsd,netbsd,openbsd,solaris}-g++,macosx-c++,linux-64}/tmake.conf \ |
147 |
|| die |
148 |
|
149 |
# Ensure we link to -liconv |
150 |
if use elibc_FreeBSD; then |
151 |
for pro in */*.pro.in */*/*.pro.in; do |
152 |
echo "unix:LIBS += -liconv" >> "${pro}" |
153 |
done |
154 |
fi |
155 |
|
156 |
# Call dot with -Teps instead of -Tps for EPS generation - bug #282150 |
157 |
sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die |
158 |
|
159 |
# prefix search tools patch, plus OSX fixes |
160 |
epatch "${FILESDIR}"/${PN}-1.8.1-prefix-misc-alt.patch |
161 |
epatch "${FILESDIR}"/${P}-empty-line-sigsegv.patch #454348 |
162 |
|
163 |
# fix final DESTDIR issue |
164 |
sed -i.orig -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \ |
165 |
-e "s/all: Makefile.doxywizard/all:/g" \ |
166 |
addon/doxywizard/Makefile.in || die |
167 |
|
168 |
# fix pdf doc |
169 |
sed -i.orig -e "s:g_kowal:g kowal:" \ |
170 |
doc/maintainers.txt || die |
171 |
|
172 |
# old value is not enough for codes written in modern Fortran |
173 |
sed -i -e '/define MAX_INCLUDE_DEPTH/ s/10/20/g' \ |
174 |
src/fortranscanner.* || die |
175 |
|
176 |
sed -e "s/\$(DATE)/$(LC_ALL="C" LANG="C" date)/g" \ |
177 |
-i Makefile.in || die #428280 |
178 |
|
179 |
if is-flagq "-O3" ; then |
180 |
echo |
181 |
ewarn "Compiling with -O3 is known to produce incorrectly" |
182 |
ewarn "optimized code which breaks doxygen." |
183 |
echo |
184 |
elog "Continuing with -O2 instead ..." |
185 |
echo |
186 |
replace-flags "-O3" "-O2" |
187 |
fi |
188 |
} |
189 |
|
190 |
src_configure() { |
191 |
# set ./configure options (prefix, Qt based wizard, docdir) |
192 |
|
193 |
local my_conf="--shared --enable-langs $(get_langs)" |
194 |
|
195 |
if use debug ; then |
196 |
my_conf="${my_conf} --debug" |
197 |
else |
198 |
my_conf="${my_conf} --release " |
199 |
fi |
200 |
|
201 |
use ppc64 && my_conf="${my_conf} --english-only" #263641 |
202 |
|
203 |
use qt4 && my_conf="${my_conf} --with-doxywizard" |
204 |
|
205 |
# On non GNU userland (e.g. BSD), configure script picks up make and bails |
206 |
# out because it is not GNU make, so we force the right value. |
207 |
use userland_GNU || my_conf="${my_conf} --make ${MAKE} --install install" |
208 |
|
209 |
export LINK="${QMAKE_LINK}" |
210 |
export LINK_SHLIB="${QMAKE_CXX}" |
211 |
|
212 |
if use qt4 ; then |
213 |
pushd addon/doxywizard &> /dev/null |
214 |
eqmake4 doxywizard.pro -o Makefile.doxywizard |
215 |
popd &> /dev/null |
216 |
fi |
217 |
|
218 |
./configure --prefix "${EPREFIX}/usr" ${my_conf} \ |
219 |
|| die |
220 |
} |
221 |
|
222 |
src_compile() { |
223 |
|
224 |
emake CFLAGS+="${ECFLAGS}" CXXFLAGS+="${ECXXFLAGS}" \ |
225 |
LFLAGS+="${ELDFLAGS}" all |
226 |
|
227 |
# generate html and pdf (if tetex in use) documents. |
228 |
# errors here are not considered fatal, hence the ewarn message |
229 |
# TeX's font caching in /var/cache/fonts causes sandbox warnings, |
230 |
# so we allow it. |
231 |
if use doc; then |
232 |
if ! use dot; then |
233 |
sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \ |
234 |
{Doxyfile,doc/Doxyfile} \ |
235 |
|| ewarn "disabling dot failed" |
236 |
fi |
237 |
if use latex; then |
238 |
addwrite /var/cache/fonts |
239 |
addwrite /var/cache/fontconfig |
240 |
addwrite /usr/share/texmf/fonts/pk |
241 |
addwrite /usr/share/texmf/ls-R |
242 |
make pdf || ewarn '"make pdf docs" failed.' |
243 |
else |
244 |
cp doc/Doxyfile doc/Doxyfile.orig |
245 |
cp doc/Makefile doc/Makefile.orig |
246 |
sed -i.orig -e "s/GENERATE_LATEX = YES/GENERATE_LATEX = NO/" \ |
247 |
doc/Doxyfile |
248 |
sed -i.orig -e "s/@epstopdf/# @epstopdf/" \ |
249 |
-e "s/@cp Makefile.latex/# @cp Makefile.latex/" \ |
250 |
-e "s/@sed/# @sed/" doc/Makefile |
251 |
make docs || ewarn '"make docs" failed.' |
252 |
fi |
253 |
fi |
254 |
} |
255 |
|
256 |
src_install() { |
257 |
emake DESTDIR="${D}" MAN1DIR=share/man/man1 install |
258 |
|
259 |
if use qt4; then |
260 |
doicon "${DISTDIR}/doxywizard.png" |
261 |
make_desktop_entry doxywizard "DoxyWizard ${PV}" \ |
262 |
"/usr/share/pixmaps/doxywizard.png" \ |
263 |
"Application;Development" |
264 |
fi |
265 |
|
266 |
dodoc INSTALL LANGUAGE.HOWTO README |
267 |
|
268 |
# pdf and html manuals |
269 |
if use doc; then |
270 |
dohtml -r html/* |
271 |
use latex && dodoc latex/doxygen_manual.pdf |
272 |
fi |
273 |
} |
274 |
|
275 |
pkg_postinst() { |
276 |
fdo-mime_desktop_database_update |
277 |
|
278 |
elog |
279 |
elog "The USE flags qt4, doc, and latex will enable doxywizard, or" |
280 |
elog "the html and pdf documentation, respectively. For examples" |
281 |
elog "and other goodies, see the source tarball. For some example" |
282 |
elog "output, run doxygen on the doxygen source using the Doxyfile" |
283 |
elog "provided in the top-level source dir." |
284 |
elog |
285 |
elog "Disabling the dot USE flag will remove the GraphViz dependency," |
286 |
elog "along with Doxygen's ability to generate diagrams in the docs." |
287 |
elog "See the Doxygen homepage for additional helper tools to parse" |
288 |
elog "more languages." |
289 |
elog |
290 |
} |
291 |
|
292 |
pkg_postrm() { |
293 |
fdo-mime_desktop_database_update |
294 |
} |