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