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: ChangeLog metadata.xml root-5.20.00-r1.ebuild
Date: Tue, 23 Sep 2008 13:02:16
Message-Id: E1Ki7Wv-0007GC-JF@stork.gentoo.org
1 bicatali 08/09/23 13:02:13
2
3 Modified: ChangeLog metadata.xml
4 Added: root-5.20.00-r1.ebuild
5 Log:
6 Added a bunch of patches from Benjamin Bannier for Pythia libraries
7 (bug #230673), ruby name changes (bug #236072), opengl include files
8 (bug #236071), extra documentation (bug #236070). Also added a reflex
9 flag to enable users encountering bug #233698, some emacs changes
10 thanks to ulm. Finally, added some patches from upstream documented in
11 http://root.cern.ch/twiki/bin/view/ROOT/PatchesV5-20-00.
12 (Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 x86_64)
13
14 Revision Changes Path
15 1.34 sci-physics/root/ChangeLog
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.34&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.34&content-type=text/plain
19 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?r1=1.33&r2=1.34
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v
24 retrieving revision 1.33
25 retrieving revision 1.34
26 diff -u -r1.33 -r1.34
27 --- ChangeLog 29 Jul 2008 10:43:53 -0000 1.33
28 +++ ChangeLog 23 Sep 2008 13:02:13 -0000 1.34
29 @@ -1,6 +1,18 @@
30 # ChangeLog for sci-physics/root
31 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.33 2008/07/29 10:43:53 bicatali Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.34 2008/09/23 13:02:13 bicatali Exp $
34 +
35 +*root-5.20.00-r1 (23 Sep 2008)
36 +
37 + 23 Sep 2008; Sébastien Fabbro <bicatali@g.o>
38 + +files/root-5.20.00-include-defines-file.patch,
39 + +files/root-5.20.00-upstream.patch, +root-5.20.00-r1.ebuild:
40 + Added a bunch of patches from Benjamin Bannier for Pythia libraries (bug
41 + #230673), ruby name changes (bug #236072), opengl include files (bug
42 + #236071), extra documentation (bug #236070). Also added a reflex flag to
43 + enable users encountering bug #233698, some emacs changes thanks to ulm.
44 + Finally, added some patches from upstream documented in
45 + http://root.cern.ch/twiki/bin/view/ROOT/PatchesV5-20-00.
46
47 29 Jul 2008; Sébastien Fabbro <bicatali@g.o> metadata.xml,
48 root-5.18.00d.ebuild, root-5.20.00.ebuild:
49
50
51
52 1.6 sci-physics/root/metadata.xml
53
54 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/metadata.xml?rev=1.6&view=markup
55 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/metadata.xml?rev=1.6&content-type=text/plain
56 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/metadata.xml?r1=1.5&r2=1.6
57
58 Index: metadata.xml
59 ===================================================================
60 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/metadata.xml,v
61 retrieving revision 1.5
62 retrieving revision 1.6
63 diff -u -r1.5 -r1.6
64 --- metadata.xml 14 Aug 2008 04:42:47 -0000 1.5
65 +++ metadata.xml 23 Sep 2008 13:02:13 -0000 1.6
66 @@ -43,6 +43,17 @@
67 distribution modeling, and the Universal Non-Uniform RANdom number
68 generators (UNURAN) library.
69 </flag>
70 + <flag name="pythia6">
71 + Builds the interface to Pythia-6 (<pkg>sci-physics/pythia</pkg>)
72 + high energy physics generation events library.
73 + </flag>
74 + <flag name="pythia8">
75 + Builds the interface to Pythia-8 (<pkg>sci-physics/pythia</pkg>)
76 + high energy physics generation events library.
77 + </flag>
78 + <flag name="reflex">
79 + Builds the reflection database for the C++ interpretor.
80 + </flag>
81 <flag name="xrootd">
82 Build the xrootd low latency file server. For more on the eXtended Request
83 Daemon (xrd) and associated software, please see
84
85
86
87 1.1 sci-physics/root/root-5.20.00-r1.ebuild
88
89 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.20.00-r1.ebuild?rev=1.1&view=markup
90 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.20.00-r1.ebuild?rev=1.1&content-type=text/plain
91
92 Index: root-5.20.00-r1.ebuild
93 ===================================================================
94 # Copyright 1999-2008 Gentoo Foundation
95 # Distributed under the terms of the GNU General Public License v2
96 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.20.00-r1.ebuild,v 1.1 2008/09/23 13:02:13 bicatali Exp $
97
98 EAPI=1
99 inherit versionator eutils toolchain-funcs qt4 fortran elisp-common
100
101 DOC_PV=$(get_major_version)_$(get_version_component_range 2)
102 ROOFIT_DOC_PV=2.07-29
103 TMVA_DOC_PV=4
104
105 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
106 SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
107 doc? ( ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf
108 ftp://root.cern.ch/root/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
109 http://tmva.sourceforge.net/docu/TMVAUsersGuide_v${TMVA_DOC_PV}.pdf )"
110
111 HOMEPAGE="http://root.cern.ch/"
112
113 SLOT="0"
114 LICENSE="LGPL-2.1"
115 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
116
117 IUSE="afs cern clarens doc emacs fftw geant4 kerberos ldap +math mysql odbc
118 oracle postgres pythia6 pythia8 python +reflex ruby qt4 ssl xml xrootd"
119
120 # libafterimage ignored, may be re-install for >=5.20
121 # see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944
122 # || ( >=media-libs/libafterimage-1.15 x11-wm/afterstep )
123 RDEPEND="sys-apps/shadow
124 dev-libs/libpcre
125 x11-libs/libXpm
126 x11-libs/libXft
127 media-libs/ftgl
128 media-libs/libpng
129 media-libs/jpeg
130 media-libs/giflib
131 media-libs/tiff
132 virtual/opengl
133 virtual/glu
134 afs? ( >=net-fs/openafs-1.4.7 )
135 clarens? ( dev-libs/xmlrpc-c )
136 emacs? ( virtual/emacs )
137 fftw? ( sci-libs/fftw:3.0 )
138 geant4? ( sci-physics/geant:4 )
139 kerberos? ( virtual/krb5 )
140 ldap? ( net-nds/openldap )
141 math? ( >=sci-libs/gsl-1.8 )
142 mysql? ( virtual/mysql )
143 odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
144 oracle? ( dev-db/oracle-instantclient-basic )
145 postgres? ( virtual/postgresql-server )
146 pythia6? ( sci-physics/pythia:6 )
147 pythia8? ( sci-physics/pythia:8 )
148 python? ( dev-lang/python )
149 qt4? ( || ( ( x11-libs/qt-gui:4
150 x11-libs/qt-opengl:4
151 x11-libs/qt-qt3support:4
152 x11-libs/qt-xmlpatterns:4 )
153 =x11-libs/qt-4.3* ) )
154 ruby? ( dev-lang/ruby )
155 ssl? ( dev-libs/openssl )
156 xml? ( dev-libs/libxml2 )"
157
158 DEPEND="${RDEPEND}
159 cern? ( dev-lang/cfortran )
160 dev-util/pkgconfig"
161
162 S="${WORKDIR}/${PN}"
163
164 QT4_BUILT_WITH_USE_CHECK="qt3support opengl"
165
166 pkg_setup() {
167 elog
168 elog "You may want to build ROOT with these non Gentoo extra packages:"
169 elog "AliEn, castor, Chirp, gfal, gLite, Globus, Monalisa, SapDB, SRP."
170 elog "You can use the env variable EXTRA_ECONF variable for this."
171 elog "For example, for SRP, you would set: "
172 elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
173 elog
174 epause 3
175 if use cern; then
176 FORTRAN="gfortran g77 ifc"
177 fortran_pkg_setup
178 else
179 FORTRANC=
180 FFLAGS=
181 fi
182 use qt4 && qt4_pkg_setup
183 }
184
185 src_unpack() {
186 unpack ${A}
187 cd "${S}"
188 epatch "${FILESDIR}"/${P}-configure.patch
189 epatch "${FILESDIR}"/${P}-pic.patch
190 # root bug; reported at https://savannah.cern.ch/bugs/?40816, fixed in svn
191 epatch "${FILESDIR}"/${P}-include-defines-file.patch
192 # various patches from upstream branch
193 epatch "${FILESDIR}"/${P}-upstream.patch
194
195 # use system cfortran
196 if use cern; then
197 rm -f include/root/cfortran.h
198 ln -s /usr/include/cfortran.h include/cfortran.h
199 fi
200 # take a more descriptive name for ruby libs
201 sed -i \
202 -e 's/libRuby/libRubyROOT/g' \
203 bindings/ruby/Module.mk bindings/ruby/src/drr.cxx \
204 || die "Ajusting ruby libname failed"
205
206 # libPythia6 is called libpythia6 in gentoo
207 sed -i -e 's/libPythia6/libpythia6/g' \
208 configure || die "Adjust libpythia6 name failed"
209 }
210
211 src_compile() {
212
213 local target
214 if [[ "$(tc-getCXX)" == ic* ]]; then
215 if use amd64; then
216 target=linuxx8664icc
217 elif use x86; then
218 target=linuxicc
219 fi
220 fi
221
222 local myconf
223 use postgres && \
224 myconf="${myconf} --with-pgsql-incdir=/usr/include/postgresql"
225
226 use qt4 && \
227 myconf="${myconf} --with-qt-incdir=/usr/include/qt4" && \
228 myconf="${myconf} --with-qt-libdir=/usr/$(get_libdir)/qt4"
229
230 use geant4 && \
231 myconf="${myconf} --with-clhep-incdir=/usr/include" && \
232 myconf="${myconf} --with-g4-libdir=${G4LIB}"
233
234 use odbc && [[ -z $(type -P odbc-config) ]] && \
235 myconf="${myconf} --with-odbc-incdir=/usr/include/iodbc"
236
237 use pythia6 && \
238 myconf="${myconf} --enable-pythia6" && \
239 myconf="${myconf} --with-pythia6-libdir=/usr/$(get_libdir)"
240
241 use pythia8 && \
242 myconf="${myconf} --enable-pythia8" && \
243 myconf="${myconf} --with-pythia8-incdir=/usr/include/pythia"
244
245 # the configure script is not the standard autotools
246 ./configure \
247 ${target} \
248 --fail-on-missing \
249 --prefix=/usr \
250 --libdir=/usr/$(get_libdir)/${PN} \
251 --docdir=/usr/share/doc/${PF} \
252 --with-sys-iconpath=/usr/share/pixmaps \
253 --with-f77="${FORTRANC} ${FFLAGS}" \
254 --with-cc="$(tc-getCC) ${CFLAGS}" \
255 --with-cxx="$(tc-getCXX) ${CXXFLAGS}" \
256 --disable-builtin-afterimage \
257 --disable-builtin-freetype \
258 --disable-builtin-ftgl \
259 --disable-builtin-pcre \
260 --disable-builtin-zlib \
261 --enable-asimage \
262 --enable-astiff \
263 --enable-exceptions \
264 --enable-explicitlink \
265 --enable-gdml \
266 --enable-memstat \
267 --enable-opengl \
268 --enable-shadowpw \
269 --enable-shared \
270 --enable-soversion \
271 --enable-table \
272 ${myconf} \
273 $(use_enable afs) \
274 $(use_enable clarens) \
275 $(use_enable clarens peac) \
276 $(use_enable fftw fftw3) \
277 $(use_enable geant4 g4root) \
278 $(use_enable kerberos krb5) \
279 $(use_enable ldap) \
280 $(use_enable math gsl-shared) \
281 $(use_enable math genvector) \
282 $(use_enable math mathmore) \
283 $(use_enable math minuit2) \
284 $(use_enable math roofit) \
285 $(use_enable math unuran) \
286 $(use_enable mysql) \
287 $(use_enable odbc) \
288 $(use_enable postgres pgsql) \
289 $(use_enable python) \
290 $(use_enable qt4 qt) \
291 $(use_enable qt4 qtgsi) \
292 $(use_enable reflex cintex) \
293 $(use_enable reflex) \
294 $(use_enable ruby) \
295 $(use_enable ssl) \
296 $(use_enable xml) \
297 $(use_enable xrootd) \
298 ${EXTRA_ECONF} \
299 || die "configure failed"
300
301 emake || die "emake failed"
302 emake cintdlls || die "emake cintdlls failed"
303 if use emacs; then
304 elisp-compile build/misc/*.el || die "elisp-compile failed"
305 fi
306 }
307
308 src_install() {
309 emake DESTDIR="${D}" install || die "emake install failed"
310 echo "LDPATH=/usr/$(get_libdir)/root" > 99root
311 use pythia8 && echo "PYTHIA8=/usr" >> 99root
312 use python && echo "PYTHONPATH=/usr/$(get_libdir)/root" >> 99root
313 use ruby && echo "RUBYLIB=/usr/$(get_libdir)/root" >> 99root
314 doenvd 99root || die "doenvd failed"
315
316 # The build system installs Emacs support unconditionally and in the wrong
317 # directory. Remove it and call elisp-install in case of USE=emacs.
318 rm -rf "${D}"/usr/share/emacs
319 if use emacs; then
320 elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
321 fi
322
323 if use doc; then
324 einfo "Installing user's guides"
325 insinto /usr/share/doc/${PF}
326 doins \
327 "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
328 "${DISTDIR}"/TMVAUsersGuide_v${TMVA_DOC_PV}.pdf \
329 || die "pdf install failed"
330 if use math; then
331 doins "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
332 || die "math doc install failed"
333 fi
334 fi
335 }
336
337 pkg_postinst() {
338 use ruby && elog "ROOT Ruby module is available as libRubyROOT"
339 }