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