Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-physics/root: root-5.22.00-r1.ebuild ChangeLog root-5.20.00-r3.ebuild
Date: Mon, 06 Apr 2009 22:33:47
Message-Id: E1LqxNv-0002nI-Ev@stork.gentoo.org
1 bicatali 09/04/06 22:33:43
2
3 Modified: ChangeLog root-5.20.00-r3.ebuild
4 Added: root-5.22.00-r1.ebuild
5 Log:
6 Fixed hicolor icons, thanks ulm, added new upstream patch and fixed doc name for TMVA, thanks Ben Bannier
7 (Portage version: 2.2_rc28/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.44 sci-physics/root/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.44&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.44&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?r1=1.43&r2=1.44
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v
19 retrieving revision 1.43
20 retrieving revision 1.44
21 diff -u -r1.43 -r1.44
22 --- ChangeLog 22 Mar 2009 21:56:16 -0000 1.43
23 +++ ChangeLog 6 Apr 2009 22:33:43 -0000 1.44
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sci-physics/root
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.43 2009/03/22 21:56:16 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.44 2009/04/06 22:33:43 bicatali Exp $
29 +
30 +*root-5.22.00-r1 (06 Apr 2009)
31 +
32 + 06 Apr 2009; Sébastien Fabbro <bicatali@g.o>
33 + root-5.20.00-r3.ebuild, +root-5.22.00-r1.ebuild:
34 + Fixed hicolor icons, thanks ulm, added new upstream patch and fixed doc
35 + name for TMVA, thanks Ben Bannier
36
37 22 Mar 2009; Jeremy Olexa <darkside@g.o> root-5.20.00-r3.ebuild:
38 amd64 stable, bug 245875
39
40
41
42 1.6 sci-physics/root/root-5.20.00-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.20.00-r3.ebuild?rev=1.6&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.20.00-r3.ebuild?rev=1.6&content-type=text/plain
46 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.20.00-r3.ebuild?r1=1.5&r2=1.6
47
48 Index: root-5.20.00-r3.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.20.00-r3.ebuild,v
51 retrieving revision 1.5
52 retrieving revision 1.6
53 diff -u -r1.5 -r1.6
54 --- root-5.20.00-r3.ebuild 22 Mar 2009 21:56:17 -0000 1.5
55 +++ root-5.20.00-r3.ebuild 6 Apr 2009 22:33:43 -0000 1.6
56 @@ -1,6 +1,6 @@
57 # Copyright 1999-2009 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.20.00-r3.ebuild,v 1.5 2009/03/22 21:56:17 darkside Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.20.00-r3.ebuild,v 1.6 2009/04/06 22:33:43 bicatali Exp $
61
62 EAPI=1
63 inherit versionator eutils qt4 fortran elisp-common fdo-mime
64 @@ -257,10 +257,10 @@
65 domenu root.desktop
66 doicon "${S}"/build/package/debian/root-system-bin.png
67
68 - insinto /usr/share/icons/hicolor/hicolor/48x48/mimetypes
69 + insinto /usr/share/icons/hicolor/48x48/mimetypes
70 doins build/package/debian/application-x-root.png
71
72 - insinto /usr/share/icons/hicolor/hicolor/48x48/apps
73 + insinto /usr/share/icons/hicolor/48x48/apps
74 doicon build/package/debian/root-system-bin.xpm
75 }
76
77
78
79
80 1.1 sci-physics/root/root-5.22.00-r1.ebuild
81
82 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild?rev=1.1&content-type=text/plain
84
85 Index: root-5.22.00-r1.ebuild
86 ===================================================================
87 # Copyright 1999-2009 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.22.00-r1.ebuild,v 1.1 2009/04/06 22:33:43 bicatali Exp $
90
91 EAPI=2
92 inherit versionator eutils qt4 fortran elisp-common fdo-mime toolchain-funcs
93
94 #DOC_PV=$(get_major_version)_$(get_version_component_range 2)
95 DOC_PV=5_21
96 ROOFIT_DOC_PV=2.91-33
97 TMVA_DOC_PV=4
98 PATCH_PV=p01
99
100 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
101 SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
102 mirror://gentoo/${P}-patches-${PATCH_PV}.tar.bz2
103 doc? ( ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf
104 ftp://root.cern.ch/root/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
105 http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )"
106
107 HOMEPAGE="http://root.cern.ch/"
108
109 SLOT="0"
110 LICENSE="LGPL-2.1"
111 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
112
113 IUSE="afs cern cint7 clarens doc emacs examples fftw geant4 kerberos ldap
114 +math mysql odbc openmp oracle postgres pythia6 pythia8 python +reflex
115 ruby qt4 ssl xml xinetd xrootd"
116
117 # libafterimage ignored, to check every version
118 # see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944
119 # || ( >=media-libs/libafterimage-1.15 x11-wm/afterstep )
120 CDEPEND=">=dev-lang/cfortran-4.4-r2
121 dev-libs/libpcre
122 >=media-libs/ftgl-2.1.3_rc5
123 media-libs/libpng
124 media-libs/jpeg
125 media-libs/giflib
126 media-libs/tiff
127 sys-apps/shadow
128 virtual/opengl
129 virtual/glu
130 x11-libs/libXpm
131 x11-libs/libXft
132 afs? ( >=net-fs/openafs-1.4.7 )
133 clarens? ( dev-libs/xmlrpc-c )
134 emacs? ( virtual/emacs )
135 fftw? ( sci-libs/fftw:3.0 )
136 geant4? ( sci-physics/geant:4 )
137 kerberos? ( virtual/krb5 )
138 ldap? ( net-nds/openldap )
139 math? ( >=sci-libs/gsl-1.8 )
140 mysql? ( virtual/mysql )
141 odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
142 oracle? ( dev-db/oracle-instantclient-basic )
143 postgres? ( virtual/postgresql-base )
144 pythia6? ( sci-physics/pythia:6 )
145 pythia8? ( sci-physics/pythia:8 )
146 python? ( dev-lang/python )
147 qt4? ( || ( ( x11-libs/qt-gui:4
148 x11-libs/qt-opengl:4
149 x11-libs/qt-qt3support:4
150 x11-libs/qt-xmlpatterns:4 )
151 x11-libs/qt:4[qt3support,opengl] ) )
152 ruby? ( dev-lang/ruby )
153 ssl? ( dev-libs/openssl )
154 xml? ( dev-libs/libxml2 )"
155
156 DEPEND="${CDEPEND}
157 dev-util/pkgconfig"
158
159 RDEPEND="${CDEPEND}
160 xinetd? ( sys-apps/xinetd )"
161
162 S="${WORKDIR}/${PN}"
163
164 pkg_setup() {
165 elog
166 elog "You may want to build ROOT with these non Gentoo extra packages:"
167 elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
168 elog "Monalisa, MaxDB/SapDB, SRP."
169 elog "You can use the env variable EXTRA_ECONF variable for this."
170 elog "For example, for SRP, you would set: "
171 elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
172 elog
173 if use cern; then
174 FORTRAN="gfortran g77 ifc"
175 fortran_pkg_setup
176 else
177 unset F77
178 fi
179 enewgroup rootd
180 enewuser rootd -1 -1 /var/spool/rootd rootd
181
182 if use openmp &&
183 [[ $(tc-getCC)$ == *gcc* ]] &&
184 ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
185 ! built_with_use sys-devel/gcc openmp ); then
186 ewarn "You are using gcc and OpenMP is available with gcc >= 4.2"
187 ewarn "If you want to build this package with OpenMP, abort now,"
188 ewarn "and set CC to an OpenMP capable compiler"
189 epause 5
190 elif use openmp; then
191 export USE_OPENMP=1
192 use math && export USE_PARALLEL_MINUIT2=1
193 fi
194 }
195
196 src_prepare() {
197
198 epatch "${WORKDIR}"/${P}-svn28086.patch
199 epatch "${WORKDIR}"/${P}-prop-flags.patch
200 epatch "${WORKDIR}"/${P}-as-needed.patch
201 epatch "${WORKDIR}"/${P}-xrootd-shared.patch
202 epatch "${WORKDIR}"/${P}-xrootd-prop-flags.patch
203 epatch "${WORKDIR}"/${P}-configure-paths.patch
204
205 # use system cfortran
206 rm montecarlo/eg/inc/cfortran.h README/cfortran.doc
207
208 # take a more descriptive name for ruby libs
209 sed -i \
210 -e 's/libRuby/libRubyROOT/g' \
211 bindings/ruby/Module.mk bindings/ruby/src/drr.cxx \
212 || die "ajusting ruby libname failed"
213
214 # in gentoo, libPythia6 is called libpythia6
215 # libungif is called libgif, and libftgl_pic is libftgl
216 sed -i \
217 -e 's/libPythia6/libpythia6/g' \
218 -e 's/ungif/gif/g' \
219 -e 's/ftgl_pic/ftgl/g' \
220 configure || die "adjusting library names failed"
221
222 # libafterimage flags are hardcoded
223 sed -i \
224 -e 's/CFLAGS="-O3"//' \
225 -e 's/CFLAGS=$$ACFLAGS//' \
226 graf2d/asimage/Module.mk graf2d/asimage/src/libAfterImage/configure \
227 || die "flag propagation in libafterimage failed"
228 # QTDIR only used for qt3 in gentoo, and configure looks for it.
229 unset QTDIR
230 }
231
232 src_configure() {
233 # the configure script is not the standard autotools
234 ./configure \
235 --fail-on-missing \
236 --prefix=/usr \
237 --libdir=/usr/$(get_libdir)/${PN} \
238 --docdir=/usr/share/doc/${PF} \
239 --tutdir=/usr/share/doc/${PF}/examples/tutorials \
240 --testdir=/usr/share/doc/${PF}/examples/tests \
241 --with-sys-iconpath=/usr/share/pixmaps \
242 --disable-builtin-afterimage \
243 --disable-builtin-freetype \
244 --disable-builtin-ftgl \
245 --disable-builtin-pcre \
246 --disable-builtin-zlib \
247 --disable-rpath \
248 --enable-asimage \
249 --enable-astiff \
250 --enable-exceptions \
251 --enable-explicitlink \
252 --enable-gdml \
253 --enable-memstat \
254 --enable-opengl \
255 --enable-shadowpw \
256 --enable-shared \
257 --enable-soversion \
258 --enable-table \
259 --enable-xft \
260 $(use_enable afs) \
261 $(use_enable cint7) \
262 $(use_enable clarens) \
263 $(use_enable clarens peac) \
264 $(use_enable fftw fftw3) \
265 $(use_enable geant4 g4root) \
266 $(use_enable kerberos krb5) \
267 $(use_enable ldap) \
268 $(use_enable math gsl-shared) \
269 $(use_enable math genvector) \
270 $(use_enable math mathmore) \
271 $(use_enable math minuit2) \
272 $(use_enable math roofit) \
273 $(use_enable math unuran) \
274 $(use_enable mysql) \
275 $(use_enable odbc) \
276 $(use_enable postgres pgsql) \
277 $(use_enable pythia6) \
278 $(use_enable pythia8) \
279 $(use_enable python) \
280 $(use_enable qt4 qt) \
281 $(use_enable qt4 qtgsi) \
282 $(use_enable reflex cintex) \
283 $(use_enable reflex) \
284 $(use_enable ruby) \
285 $(use_enable ssl) \
286 $(use_enable xml) \
287 $(use_enable xrootd) \
288 ${EXTRA_ECONF} \
289 || die "configure failed"
290 }
291
292 src_compile() {
293 emake OPT="" || die "emake failed"
294 emake cintdlls || die "emake cintdlls failed"
295 if use emacs; then
296 elisp-compile build/misc/*.el || die "elisp-compile failed"
297 fi
298 }
299
300 doc_install() {
301 cd "${S}"
302 if use doc; then
303 einfo "Installing user's guides"
304 insinto /usr/share/doc/${PF}
305 doins \
306 "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
307 "${DISTDIR}"/TMVAUsersGuide_v${TMVA_DOC_PV}.pdf \
308 || die "pdf install failed"
309 if use math; then
310 doins "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
311 || die "math doc install failed"
312 fi
313 fi
314
315 if use examples; then
316 # these should really be taken care of by the root make install
317 insinto /usr/share/doc/${PF}/examples/tutorials/tmva
318 doins -r tmva/test || die
319 else
320 rm -rf "${D}"/usr/share/doc/${PF}/examples
321 fi
322 }
323
324 daemon_install() {
325 cd "${S}"
326 local daemons="rootd proofd"
327 dodir /var/spool/rootd
328 fowners rootd:rootd /var/spool/rootd
329 dodir /var/spool/rootd/{pub,tmp}
330 fperms 1777 /var/spool/rootd/{pub,tmp}
331
332 use xrootd && daemons="${daemons} xrootd olbd"
333 for i in ${daemons}; do
334 newinitd "${FILESDIR}"/${i}.initd ${i}
335 newconfd "${FILESDIR}"/${i}.confd ${i}
336 done
337 if use xinetd; then
338 insinto /etc/xinetd
339 doins etc/daemons/{rootd,proofd}.xinetd || die
340 fi
341 }
342
343 desktop_install() {
344 cd "${S}"
345 sed -e 's,@prefix@,/usr,' \
346 build/package/debian/root-system-bin.desktop.in > root.desktop
347 domenu root.desktop
348 doicon "${S}"/build/package/debian/root-system-bin.png
349
350 insinto /usr/share/icons/hicolor/48x48/mimetypes
351 doins build/package/debian/application-x-root.png
352
353 insinto /usr/share/icons/hicolor/48x48/apps
354 doicon build/package/debian/root-system-bin.xpm
355 }
356
357 src_install() {
358 emake DESTDIR="${D}" install || die "emake install failed"
359
360 echo "LDPATH=/usr/$(get_libdir)/root" > 99root
361 use pythia8 && echo "PYTHIA8=/usr" >> 99root
362 use python && echo "PYTHONPATH=/usr/$(get_libdir)/root" >> 99root
363 use ruby && echo "RUBYLIB=/usr/$(get_libdir)/root" >> 99root
364 doenvd 99root || die "doenvd failed"
365
366 # The build system installs Emacs support unconditionally and in the wrong
367 # directory. Remove it and call elisp-install in case of USE=emacs.
368 rm -rf "${D}"/usr/share/emacs
369 if use emacs; then
370 elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
371 fi
372
373 doc_install
374 daemon_install
375 desktop_install
376
377 # Cleanup of files either already distributed or unused on Gentoo
378 rm "${D}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT}
379 rm "${D}"usr/share/root/fonts/LICENSE
380 pushd "${D}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
381 rm -f posix/mktypes dll_stl/setup \
382 G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o
383 rm -f "${D}"usr/$(get_libdir)/root/cint/cint/include/makehpib
384 rm -f "${D}"/etc/root/proof/*.sample
385 rm -rf "${D}"/etc/root/daemons
386 popd > /dev/null
387 }
388
389 pkg_postinst() {
390 use ruby && elog "ROOT Ruby module is available as libRubyROOT"
391 fdo-mime_desktop_database_update
392 }
393
394 pkg_postrm() {
395 fdo-mime_desktop_database_update
396 }