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