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