Gentoo Archives: gentoo-commits

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