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.18.00d.ebuild
Date: Thu, 29 May 2008 18:55:40
Message-Id: E1K1nHi-0001ms-Av@stork.gentoo.org
1 bicatali 08/05/29 18:55:34
2
3 Modified: ChangeLog
4 Added: root-5.18.00d.ebuild
5 Log:
6 Version bump. This version is includes patches from upstream (included in sources), some local gcc-4.3 patches and various xrootd patches. Now works with afs on amd64. Removed cint7 flag as it is still too buggy, added xrootd use flag, added a math flag triggering all math libraries (mathcore, mathmore, minuit2, roofit, unuran). Much cleanup: qt-4.4 ready, removed afterimage dependency (will be back in 5.20). This version should be targeted for stabilization.
7 (Portage version: 2.1.5.2)
8
9 Revision Changes Path
10 1.25 sci-physics/root/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.25&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.25&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?r1=1.24&r2=1.25
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v
19 retrieving revision 1.24
20 retrieving revision 1.25
21 diff -u -r1.24 -r1.25
22 --- ChangeLog 21 May 2008 19:02:38 -0000 1.24
23 +++ ChangeLog 29 May 2008 18:55:33 -0000 1.25
24 @@ -1,6 +1,20 @@
25 # ChangeLog for sci-physics/root
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.24 2008/05/21 19:02:38 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.25 2008/05/29 18:55:33 bicatali Exp $
29 +
30 +*root-5.18.00d (29 May 2008)
31 +
32 + 29 May 2008; Sébastien Fabbro <bicatali@g.o>
33 + +files/root-5.18.00d-gcc43.patch, +files/root-5.18.00d-makefile.patch,
34 + +files/xrootd-20071116-checksymbol.patch,
35 + +files/xrootd-20071116-gcc43.patch, +root-5.18.00d.ebuild:
36 + Version bump. This version is includes patches from upstream (included in
37 + sources), some local gcc-4.3 patches and various xrootd patches. Now works
38 + with afs on amd64. Removed cint7 flag as it is still too buggy, added
39 + xrootd use flag, added a math flag triggering all math libraries
40 + (mathcore, mathmore, minuit2, roofit, unuran). Much cleanup: qt-4.4 ready,
41 + removed afterimage dependency (will be back in 5.20). This version should
42 + be targeted for stabilization.
43
44 21 May 2008; Tiziano Müller <dev-zero@g.o> root-3.05.04.ebuild,
45 root-5.16.00.ebuild, root-5.16.00-r1.ebuild, root-5.18.00.ebuild:
46
47
48
49 1.1 sci-physics/root/root-5.18.00d.ebuild
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.18.00d.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.18.00d.ebuild?rev=1.1&content-type=text/plain
53
54 Index: root-5.18.00d.ebuild
55 ===================================================================
56 # Copyright 1999-2008 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.18.00d.ebuild,v 1.1 2008/05/29 18:55:33 bicatali Exp $
59
60 EAPI="1"
61 inherit versionator flag-o-matic eutils toolchain-funcs qt3 qt4 fortran
62
63 #DOC_PV=$(get_major_version)_$(get_version_component_range 2)
64 DOC_PV=5_16
65
66 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
67 SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz
68 doc? ( ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf )"
69 HOMEPAGE="http://root.cern.ch/"
70
71 SLOT="0"
72 LICENSE="LGPL-2"
73 KEYWORDS="~amd64 ~hppa ~sparc ~x86"
74
75 IUSE="afs cern doc fftw kerberos ldap +math mysql odbc
76 pch postgres python ruby qt3 qt4 ssl +truetype xml xrootd"
77
78 # libafterimage ignored, may be re-install for >=5.20
79 # see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944
80 # || ( >=media-libs/libafterimage-1.15 x11-wm/afterstep )
81 RDEPEND="sys-apps/shadow
82 x11-libs/libXpm
83 media-libs/ftgl
84 dev-libs/libpcre
85 virtual/opengl
86 virtual/glu
87 math? ( >=sci-libs/gsl-1.8 )
88 afs? ( >=net-fs/openafs-1.4.7 )
89 mysql? ( virtual/mysql )
90 postgres? ( virtual/postgresql-server )
91 kerberos? ( virtual/krb5 )
92 ldap? ( net-nds/openldap )
93 qt3? ( !qt4? ( $(qt_min_version 3.3.4) ) )
94 qt4? ( || ( >=x11-libs/qt-4.3:4 x11-libs/qt-gui:4 ) )
95 fftw? ( >=sci-libs/fftw-3 )
96 python? ( dev-lang/python )
97 ruby? ( dev-lang/ruby )
98 ssl? ( dev-libs/openssl )
99 xml? ( dev-libs/libxml2 )
100 cern? ( sci-physics/cernlib )
101 odbc? ( dev-db/unixODBC )
102 truetype? ( x11-libs/libXft )"
103
104 DEPEND="${RDEPEND}
105 dev-util/pkgconfig"
106
107 S="${WORKDIR}/${PN}"
108
109 QT4_BUILT_WITH_USE_CHECK="qt3support"
110
111 pkg_setup() {
112 elog
113 elog "You may want to build ROOT with these non Gentoo extra packages:"
114 elog "AliEn, castor, Chirp, clarens, gfal, Globus, GEANT4, Monalisa, "
115 elog "Oracle, peac, PYTHIA, PYTHIA6, SapDB, SRP, Venus"
116 elog "You can use the env variable EXTRA_ECONF variable for this."
117 elog "Example, for PYTHIA, you would do: "
118 elog "EXTRA_ECONF=\"--enable-pythia --with-pythia-libdir=/usr/$(get_libdir)\""
119 elog
120 epause 7
121 if use cern; then
122 FORTRAN="gfortran g77 ifc"
123 fortran_pkg_setup
124 fi
125 use qt4 && qt4_pkg_setup
126 }
127
128 src_unpack() {
129 unpack ${A}
130 cd "${S}"
131 epatch "${FILESDIR}"/${PN}-pic.patch
132 epatch "${FILESDIR}"/${PN}-5.16.00-xft.patch
133 epatch "${FILESDIR}"/${P}-gcc43.patch
134 epatch "${FILESDIR}"/${P}-makefile.patch
135 cd xrootd/src
136 local xp=xrootd-20071116
137 tar xfz ${xp}-0000.src.tgz
138 epatch "${FILESDIR}"/${xp}-checksymbol.patch
139 epatch "${FILESDIR}"/${xp}-gcc43.patch
140 tar cfz ${xp}-0000.src.tgz xrootd
141 }
142
143 src_compile() {
144
145 local target
146 if [[ "$(tc-getCXX)" == icc* ]]; then
147 if use amd64; then
148 target=linuxx8664icc
149 elif use x86; then
150 target=linuxicc
151 fi
152 fi
153
154 #local myfortran
155 #use cern && \
156 # myfortran="${FORTRANC} ${FFLAGS}"
157 local myconf
158 use postgres && \
159 myconf="--with-pgsql-incdir=/usr/include/postgresql"
160
161 if use qt3 || use qt4; then
162 myconf="${myconf} --enable-qt --enable-qtgsi"
163 else
164 myconf="${myconf} --disable-qt --disable-qtgsi"
165 fi
166
167 # watch: the configure script is not the standard autotools
168 local docdir=/usr/share/doc/${PF}
169 ./configure \
170 ${target} \
171 --prefix=/usr \
172 --libdir=/usr/$(get_libdir)/${PN} \
173 --docdir=${docdir} \
174 --disable-builtin-afterimage \
175 --disable-builtin-freetype \
176 --disable-builtin-ftgl \
177 --disable-builtin-pcre \
178 --disable-builtin-zlib \
179 --enable-asimage \
180 --enable-astiff \
181 --enable-cintex \
182 --enable-exceptions \
183 --enable-explicitlink \
184 --enable-gdml \
185 --enable-opengl \
186 --enable-reflex \
187 --enable-shadowpw \
188 --enable-shared \
189 --enable-soversion \
190 --enable-table \
191 ${myconf} \
192 $(use_enable afs) \
193 $(use_enable cern) \
194 $(use_enable cint7) \
195 $(use_enable fftw fftw3) \
196 $(use_enable kerberos krb5) \
197 $(use_enable ldap) \
198 $(use_enable math mathcore) \
199 $(use_enable math mathmore) \
200 $(use_enable math minuit2) \
201 $(use_enable math roofit) \
202 $(use_enable math unuran) \
203 $(use_enable mysql) \
204 $(use_enable odbc) \
205 $(use_enable pch) \
206 $(use_enable postgres pgsql) \
207 $(use_enable python) \
208 $(use_enable ruby) \
209 $(use_enable ssl) \
210 $(use_enable truetype xft) \
211 $(use_enable xml) \
212 $(use_enable xrootd) \
213 ${EXTRA_ECONF} \
214 || die "configure failed"
215
216 local myfortran
217 use cern && myfortran="F77=${FORTRANC}"
218 emake \
219 OPT="${CXXFLAGS}" \
220 OPTFLAGS="${CXXFLAGS}" \
221 ${myfortran} \
222 || die "emake failed"
223 emake cintdlls || die "emake cintdlls failed"
224 }
225
226 src_install() {
227 emake DESTDIR="${D}" install || die "emake install failed"
228 echo "LDPATH=/usr/$(get_libdir)/root" > 99root
229 doenvd 99root || die "doenvd failed"
230
231 if use doc; then
232 einfo "Installing user's guide and ref manual"
233 insinto /usr/share/doc/${PF}
234 doins "${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \
235 || die "pdf install failed"
236 fi
237 }
238
239
240
241 --
242 gentoo-commits@l.g.o mailing list