1 |
commit: 632aa3b7301d190f7831def9cff67ccde65b67bd |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 23:51:45 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 28 23:51:45 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=632aa3b7 |
7 |
|
8 |
sci-physics/root: Import tree changes, drop old |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-physics/root/ChangeLog | 4 + |
14 |
sci-physics/root/root-5.32.03-r2.ebuild | 383 ---------------------------- |
15 |
sci-physics/root/root-5.34.13.ebuild | 425 -------------------------------- |
16 |
sci-physics/root/root-9999.ebuild | 17 +- |
17 |
4 files changed, 14 insertions(+), 815 deletions(-) |
18 |
|
19 |
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog |
20 |
index 848c446..c7010f7 100644 |
21 |
--- a/sci-physics/root/ChangeLog |
22 |
+++ b/sci-physics/root/ChangeLog |
23 |
@@ -2,6 +2,10 @@ |
24 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.96 2012/03/29 18:21:49 bicatali Exp $ |
26 |
|
27 |
+ 28 Dec 2013; Justin Lecher <jlec@g.o> -root-5.32.03-r2.ebuild, |
28 |
+ -root-5.34.13.ebuild, root-9999.ebuild: |
29 |
+ Import tree changes, drop old |
30 |
+ |
31 |
22 Dec 2013; Andrew Savchenko <bircoph@×××××.com> +root-5.32.03-r2.ebuild, |
32 |
+files/root-5.28.00b-asneeded.patch, +files/root-5.28.00b-prop-ldflags.patch, |
33 |
+files/root-5.28.00b-unuran.patch, |
34 |
|
35 |
diff --git a/sci-physics/root/root-5.32.03-r2.ebuild b/sci-physics/root/root-5.32.03-r2.ebuild |
36 |
deleted file mode 100644 |
37 |
index 979b753..0000000 |
38 |
--- a/sci-physics/root/root-5.32.03-r2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,383 +0,0 @@ |
41 |
-# Copyright 1999-2013 Gentoo Foundation |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.03-r2.ebuild,v 1.6 2013/03/02 23:27:01 hwoarang Exp $ |
44 |
- |
45 |
-EAPI=5 |
46 |
- |
47 |
-PYTHON_COMPAT=( python2_{6,7} ) |
48 |
- |
49 |
-if [[ ${PV} == "9999" ]] ; then |
50 |
- _SVN=subversion |
51 |
- ESVN_REPO_URI="https://root.cern.ch/svn/root/trunk" |
52 |
- ESVN_OPTIONS="--non-interactive --trust-server-cert" |
53 |
- SRC_URI="" |
54 |
- KEYWORDS="" |
55 |
-else |
56 |
- SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz" |
57 |
- KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" |
58 |
-fi |
59 |
- |
60 |
-inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 toolchain-funcs user ${_SVN} |
61 |
- |
62 |
-ROOFIT_DOC_PV=2.91-33 |
63 |
-TMVA_DOC_PV=4.03 |
64 |
-PATCH_PV=5.28.00b |
65 |
-PATCH_PV2=5.32.00 |
66 |
- |
67 |
-DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
68 |
-HOMEPAGE="http://root.cern.ch/" |
69 |
-SRC_URI="${SRC_URI} |
70 |
- doc? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuide.pdf |
71 |
- math? ( |
72 |
- ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf |
73 |
- http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) |
74 |
- htmldoc? ( |
75 |
- http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png |
76 |
- http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/root-banner.png |
77 |
- http://root.cern.ch/drupal/sites/all/themes/newsflash/images/info.png ) )" |
78 |
- |
79 |
-SLOT="0" |
80 |
-LICENSE="LGPL-2.1" |
81 |
-IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz htmldoc kerberos |
82 |
- ldap +math mpi mysql odbc +opengl openmp oracle postgres prefix pythia6 |
83 |
- pythia8 python qt4 +reflex ruby ssl xinetd xml xrootd" |
84 |
- |
85 |
-CDEPEND=" |
86 |
- app-arch/xz-utils |
87 |
- >=dev-lang/cfortran-4.4-r2 |
88 |
- dev-libs/libpcre |
89 |
- media-fonts/dejavu |
90 |
- media-libs/freetype |
91 |
- media-libs/giflib |
92 |
- media-libs/libpng:0 |
93 |
- media-libs/tiff:0 |
94 |
- sys-libs/zlib |
95 |
- virtual/jpeg |
96 |
- virtual/shadow |
97 |
- X? ( |
98 |
- media-libs/ftgl |
99 |
- media-libs/glew |
100 |
- x11-libs/libX11 |
101 |
- x11-libs/libXext |
102 |
- x11-libs/libXpm |
103 |
- || ( |
104 |
- >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] |
105 |
- >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff] |
106 |
- ) |
107 |
- opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps ) |
108 |
- qt4? ( |
109 |
- dev-qt/qtgui:4 |
110 |
- dev-qt/qtopengl:4 |
111 |
- dev-qt/qt3support:4 |
112 |
- dev-qt/qtsvg:4 |
113 |
- dev-qt/qtwebkit:4 |
114 |
- dev-qt/qtxmlpatterns:4 ) |
115 |
- x11-libs/libXft |
116 |
- ) |
117 |
- afs? ( net-fs/openafs ) |
118 |
- avahi? ( net-dns/avahi ) |
119 |
- clarens? ( dev-libs/xmlrpc-c[curl] ) |
120 |
- emacs? ( virtual/emacs ) |
121 |
- fits? ( sci-libs/cfitsio ) |
122 |
- fftw? ( sci-libs/fftw:3.0 ) |
123 |
- graphviz? ( media-gfx/graphviz ) |
124 |
- kerberos? ( virtual/krb5 ) |
125 |
- ldap? ( net-nds/openldap ) |
126 |
- math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) ) |
127 |
- mysql? ( virtual/mysql ) |
128 |
- odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) |
129 |
- oracle? ( dev-db/oracle-instantclient-basic ) |
130 |
- postgres? ( dev-db/postgresql-base ) |
131 |
- pythia6? ( sci-physics/pythia:6 ) |
132 |
- pythia8? ( <sci-physics/pythia-8.1.80:8 ) |
133 |
- python? ( ${PYTHON_DEPS} ) |
134 |
- ruby? ( |
135 |
- dev-lang/ruby |
136 |
- dev-ruby/rubygems ) |
137 |
- ssl? ( dev-libs/openssl ) |
138 |
- xml? ( dev-libs/libxml2 ) |
139 |
- xrootd? ( <net-libs/xrootd-3.3 )" |
140 |
- |
141 |
-DEPEND="${CDEPEND} |
142 |
- virtual/pkgconfig" |
143 |
- |
144 |
-RDEPEND="${CDEPEND} |
145 |
- reflex? ( dev-cpp/gccxml ) |
146 |
- xinetd? ( sys-apps/xinetd )" |
147 |
- |
148 |
-PDEPEND="htmldoc? ( ~app-doc/root-docs-${PV} )" |
149 |
- |
150 |
-REQUIRED_USE=" |
151 |
- !X? ( !opengl !qt4 ) |
152 |
- mpi? ( math !openmp ) |
153 |
- openmp? ( math !mpi ) |
154 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
155 |
- |
156 |
-S="${WORKDIR}/${PN}" |
157 |
- |
158 |
-pkg_setup() { |
159 |
- fortran-2_pkg_setup |
160 |
- use python && python-single-r1_pkg_setup |
161 |
- echo |
162 |
- elog "There are extra options on packages not yet in Gentoo:" |
163 |
- elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," |
164 |
- elog "HDFS, Monalisa, MaxDB/SapDB, SRP." |
165 |
- elog "You can use the env variable EXTRA_ECONF variable for this." |
166 |
- elog "For example, for SRP, you would set: " |
167 |
- elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" |
168 |
- echo |
169 |
- enewgroup rootd |
170 |
- enewuser rootd -1 -1 /var/spool/rootd rootd |
171 |
- |
172 |
- if use math; then |
173 |
- if use openmp; then |
174 |
- if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then |
175 |
- ewarn "You are using a gcc without OpenMP capabilities" |
176 |
- die "Need an OpenMP capable compiler" |
177 |
- else |
178 |
- export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 |
179 |
- fi |
180 |
- elif use mpi; then |
181 |
- export USE_MPI=1 USE_PARALLEL_MINUIT2=1 |
182 |
- fi |
183 |
- fi |
184 |
-} |
185 |
- |
186 |
-src_prepare() { |
187 |
- epatch \ |
188 |
- "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \ |
189 |
- "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \ |
190 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-nobyte-compile.patch \ |
191 |
- "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \ |
192 |
- "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \ |
193 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \ |
194 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch \ |
195 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-chklib64.patch \ |
196 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-explicit-functions.patch \ |
197 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-dotfont.patch \ |
198 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-rmkdepend.patch \ |
199 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-rusage.patch |
200 |
- |
201 |
- # make sure we use system libs and headers |
202 |
- rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die |
203 |
- rm -rf graf2d/asimage/src/libAfterImage || die |
204 |
- rm -rf graf3d/ftgl/{inc,src} || die |
205 |
- rm -rf graf2d/freetype/src || die |
206 |
- rm -rf graf3d/glew/{inc,src} || die |
207 |
- rm -rf core/pcre/src || die |
208 |
- rm -rf math/unuran/src/unuran-*.tar.gz || die |
209 |
- LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | xargs -0 rm -f || die |
210 |
- rm -rf core/lzma/src/*.tar.gz || die |
211 |
- rm graf3d/gl/{inc,src}/gl2ps.* || die |
212 |
- sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk || die |
213 |
- |
214 |
- # In Gentoo, libPythia6 is called libpythia6 |
215 |
- # libungif is called libgif, |
216 |
- # iodbc is in /usr/include/iodbc |
217 |
- # pg_config.h is checked instead of libpq-fe.h |
218 |
- sed -i \ |
219 |
- -e 's:libPythia6:libpythia6:g' \ |
220 |
- -e 's:ungif:gif:g' \ |
221 |
- -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \ |
222 |
- -e 's:libpq-fe.h:pg_config.h:' \ |
223 |
- configure || die "adjusting configure for Gentoo failed" |
224 |
- |
225 |
- # prefixify the configure script |
226 |
- sed -i \ |
227 |
- -e 's:/usr:${EPREFIX}/usr:g' \ |
228 |
- configure || die "prefixify configure failed" |
229 |
- |
230 |
- # QTDIR only used for qt3 in gentoo, and configure looks for it. |
231 |
- unset QTDIR |
232 |
- |
233 |
- # Make html docs self-consistent for offline work (based on Fedora spec) |
234 |
- if use htmldoc; then |
235 |
- epatch "${FILESDIR}"/${PN}-${PATCH_PV2}-htmldoc.patch |
236 |
- # make images local |
237 |
- sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/!!' \ |
238 |
- -i etc/html/ROOT.css || die "htmldoc sed failed" |
239 |
- sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/!!' \ |
240 |
- -i etc/html/ROOT.css || die "htmldoc sed failed" |
241 |
- sed 's!http://root.cern.ch/drupal/sites/default/files/!!' \ |
242 |
- -i etc/html/header.html || die "htmldoc sed failed" |
243 |
- |
244 |
- cp "${DISTDIR}"/{rootdrawing-logo.png,root-banner.png,info.png} etc/html || |
245 |
- die "htmldoc preparation failed" |
246 |
- fi |
247 |
-} |
248 |
- |
249 |
-src_configure() { |
250 |
- # the configure script is not the standard autotools |
251 |
- ./configure \ |
252 |
- --prefix="${EPREFIX}"/usr \ |
253 |
- --etcdir="${EPREFIX}"/etc/root \ |
254 |
- --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ |
255 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
256 |
- --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ |
257 |
- --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ |
258 |
- --with-cc=$(tc-getCC) \ |
259 |
- --with-cxx=$(tc-getCXX) \ |
260 |
- --with-f77=$(tc-getFC) \ |
261 |
- --with-ld=$(tc-getCXX) \ |
262 |
- --with-afs-shared=yes \ |
263 |
- --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ |
264 |
- --disable-builtin-afterimage \ |
265 |
- --disable-builtin-freetype \ |
266 |
- --disable-builtin-ftgl \ |
267 |
- --disable-builtin-glew \ |
268 |
- --disable-builtin-pcre \ |
269 |
- --disable-builtin-zlib \ |
270 |
- --disable-builtin-lzma \ |
271 |
- --disable-cling \ |
272 |
- --enable-astiff \ |
273 |
- --enable-exceptions \ |
274 |
- --enable-explicitlink \ |
275 |
- --enable-gdml \ |
276 |
- --enable-memstat \ |
277 |
- --enable-shadowpw \ |
278 |
- --enable-shared \ |
279 |
- --enable-soversion \ |
280 |
- --enable-table \ |
281 |
- --fail-on-missing \ |
282 |
- $(use_enable X x11) \ |
283 |
- $(use_enable X asimage) \ |
284 |
- $(use_enable afs) \ |
285 |
- $(use_enable avahi bonjour) \ |
286 |
- $(use_enable clarens) \ |
287 |
- $(use_enable clarens peac) \ |
288 |
- $(use_enable fits fitsio) \ |
289 |
- $(use_enable fftw fftw3) \ |
290 |
- $(use_enable graphviz gviz) \ |
291 |
- $(use_enable kerberos krb5) \ |
292 |
- $(use_enable ldap) \ |
293 |
- $(use_enable math gsl-shared) \ |
294 |
- $(use_enable math genvector) \ |
295 |
- $(use_enable math mathmore) \ |
296 |
- $(use_enable math minuit2) \ |
297 |
- $(use_enable math roofit) \ |
298 |
- $(use_enable math tmva) \ |
299 |
- $(use_enable math unuran) \ |
300 |
- $(use_enable mysql) \ |
301 |
- $(use_enable odbc) \ |
302 |
- $(use_enable opengl) \ |
303 |
- $(use_enable postgres pgsql) \ |
304 |
- $(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "") \ |
305 |
- $(use_enable prefix rpath) \ |
306 |
- $(use_enable pythia6) \ |
307 |
- $(use_enable pythia8) \ |
308 |
- $(use_enable python) \ |
309 |
- $(use_enable qt4 qt) \ |
310 |
- $(use_enable qt4 qtgsi) \ |
311 |
- $(use_enable reflex cintex) \ |
312 |
- $(use_enable reflex) \ |
313 |
- $(use_enable ruby) \ |
314 |
- $(use_enable ssl) \ |
315 |
- $(use_enable xml) \ |
316 |
- $(use_enable xrootd) \ |
317 |
- ${EXTRA_ECONF} \ |
318 |
- || die "configure failed" |
319 |
-} |
320 |
- |
321 |
-src_compile() { |
322 |
- emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" |
323 |
- if use emacs; then |
324 |
- elisp-compile build/misc/*.el || die "elisp-compile failed" |
325 |
- fi |
326 |
-} |
327 |
- |
328 |
-doc_install() { |
329 |
- cd "${S}" |
330 |
- if use doc; then |
331 |
- einfo "Installing user's guides" |
332 |
- dodoc "${DISTDIR}"/ROOTUsersGuide.pdf |
333 |
- use math && dodoc \ |
334 |
- "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ |
335 |
- "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf |
336 |
- fi |
337 |
- |
338 |
- if use examples; then |
339 |
- # these should really be taken care of by the root make install |
340 |
- insinto /usr/share/doc/${PF}/examples/tutorials/tmva |
341 |
- doins -r tmva/test |
342 |
- else |
343 |
- rm -rf "${ED}"/usr/share/doc/${PF}/examples || die |
344 |
- fi |
345 |
-} |
346 |
- |
347 |
-daemon_install() { |
348 |
- cd "${S}" |
349 |
- local daemons="rootd proofd" |
350 |
- dodir /var/spool/rootd |
351 |
- fowners rootd:rootd /var/spool/rootd |
352 |
- dodir /var/spool/rootd/{pub,tmp} |
353 |
- fperms 1777 /var/spool/rootd/{pub,tmp} |
354 |
- |
355 |
- for i in ${daemons}; do |
356 |
- newinitd "${FILESDIR}"/${i}.initd ${i} |
357 |
- newconfd "${FILESDIR}"/${i}.confd ${i} |
358 |
- done |
359 |
- if use xinetd; then |
360 |
- insinto /etc/xinetd |
361 |
- doins etc/daemons/{rootd,proofd}.xinetd |
362 |
- fi |
363 |
-} |
364 |
- |
365 |
-desktop_install() { |
366 |
- cd "${S}" |
367 |
- sed -e 's,@prefix@,/usr,' \ |
368 |
- build/package/debian/root-system-bin.desktop.in > root.desktop |
369 |
- domenu root.desktop |
370 |
- doicon "${S}"/build/package/debian/root-system-bin.png |
371 |
- |
372 |
- insinto /usr/share/icons/hicolor/48x48/mimetypes |
373 |
- doins build/package/debian/application-x-root.png |
374 |
- |
375 |
- insinto /usr/share/icons/hicolor/48x48/apps |
376 |
- doicon build/package/debian/root-system-bin.xpm |
377 |
-} |
378 |
- |
379 |
-src_install() { |
380 |
- emake DESTDIR="${D}" install |
381 |
- |
382 |
- echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root |
383 |
- use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root |
384 |
- if use python; then |
385 |
- echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
386 |
- python_optimize "${D}/usr/$(get_libdir)/root" |
387 |
- fi |
388 |
- use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
389 |
- doenvd 99root |
390 |
- |
391 |
- # The build system installs Emacs support unconditionally and in the wrong |
392 |
- # directory. Remove it and call elisp-install in case of USE=emacs. |
393 |
- rm -rf "${ED}"/usr/share/emacs |
394 |
- if use emacs; then |
395 |
- elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" |
396 |
- fi |
397 |
- |
398 |
- doc_install |
399 |
- daemon_install |
400 |
- desktop_install |
401 |
- |
402 |
- # Cleanup of files either already distributed or unused on Gentoo |
403 |
- rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die |
404 |
- rm "${ED}"usr/share/root/fonts/LICENSE || die |
405 |
- pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null |
406 |
- rm -f posix/mktypes dll_stl/setup \ |
407 |
- G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die |
408 |
- rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die |
409 |
- rm -f "${ED}"/etc/root/proof/*.sample || die |
410 |
- rm -rf "${ED}"/etc/root/daemons || die |
411 |
- popd > /dev/null |
412 |
- # these should be in PATH |
413 |
- mv "${ED}"etc/root/proof/utils/pq2/pq2* \ |
414 |
- "${ED}"usr/bin/ || die |
415 |
-} |
416 |
- |
417 |
-pkg_postinst() { |
418 |
- fdo-mime_desktop_database_update |
419 |
-} |
420 |
- |
421 |
-pkg_postrm() { |
422 |
- fdo-mime_desktop_database_update |
423 |
-} |
424 |
|
425 |
diff --git a/sci-physics/root/root-5.34.13.ebuild b/sci-physics/root/root-5.34.13.ebuild |
426 |
deleted file mode 100644 |
427 |
index f8e0f1a..0000000 |
428 |
--- a/sci-physics/root/root-5.34.13.ebuild |
429 |
+++ /dev/null |
430 |
@@ -1,425 +0,0 @@ |
431 |
-# Copyright 1999-2013 Gentoo Foundation |
432 |
-# Distributed under the terms of the GNU General Public License v2 |
433 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.10-r2.ebuild,v 1.1 2013/10/29 17:00:37 bicatali Exp $ |
434 |
- |
435 |
-EAPI=5 |
436 |
- |
437 |
-if [[ ${PV} == "9999" ]] ; then |
438 |
- _GIT=git-2 |
439 |
- EGIT_REPO_URI="http://root.cern.ch/git/root.git" |
440 |
- SRC_URI="" |
441 |
- KEYWORDS="" |
442 |
-else |
443 |
- SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz" |
444 |
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
445 |
-fi |
446 |
- |
447 |
-PYTHON_COMPAT=( python2_{6,7} ) |
448 |
-inherit elisp-common eutils fdo-mime fortran-2 ${_GIT} multilib python-single-r1 toolchain-funcs user versionator |
449 |
- |
450 |
-ROOFIT_DOC_PV=2.91-33 |
451 |
-TMVA_DOC_PV=4.03 |
452 |
-PATCH_PV=5.28.00b |
453 |
-PATCH_PV2=5.32.00 |
454 |
-PATCH_PV3=5.34.05 |
455 |
-PATCH_PV4=5.34.13 |
456 |
- |
457 |
-DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
458 |
-HOMEPAGE="http://root.cern.ch/" |
459 |
-SRC_URI="${SRC_URI} |
460 |
- !minimal? ( doc? ( |
461 |
- math? ( |
462 |
- ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf |
463 |
- http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf |
464 |
- metric? ( ftp://root.cern.ch/root/doc/spectrum/Spectrum.pdf -> Spectrum-${PV}.pdf ) |
465 |
- !metric? ( ftp://root.cern.ch/root/doc/spectrum/SpectrumLetter.pdf -> SpectrumLetter-${PV}.pdf ) |
466 |
- ) |
467 |
- metric? ( |
468 |
- ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideA4.pdf -> ROOTUsersGuideA4-${PV}.pdf |
469 |
- ftp://root.cern.ch/root/doc/primer/ROOTPrimer.pdf -> ROOTPrimer-${PV}.pdf ) |
470 |
- !metric? ( |
471 |
- ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideLetter.pdf -> ROOTUsersGuideLetter-${PV}.pdf |
472 |
- ftp://root.cern.ch/root/doc/primer/ROOTPrimerLetter.pdf -> ROOTPrimerLetter-${PV}.pdf ) |
473 |
- htmldoc? ( |
474 |
- http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png |
475 |
- http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/root-banner.png |
476 |
- http://root.cern.ch/drupal/sites/all/themes/newsflash/images/info.png ) |
477 |
- ) )" |
478 |
- |
479 |
-SLOT="0" |
480 |
-LICENSE="LGPL-2.1" |
481 |
-IUSE="+X afs avahi c++0x doc emacs examples fits fftw graphviz htmldoc |
482 |
- kerberos ldap +math +metric minimal mpi mysql odbc +opengl openmp oracle postgres |
483 |
- prefix pythia6 pythia8 python qt4 +reflex ruby sqlite ssl xinetd xml xrootd" |
484 |
- |
485 |
-REQUIRED_USE=" |
486 |
- !X? ( !opengl !qt4 ) |
487 |
- htmldoc? ( doc ) |
488 |
- mpi? ( math !openmp ) |
489 |
- openmp? ( math !mpi ) |
490 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
491 |
- |
492 |
-CDEPEND=" |
493 |
- app-arch/xz-utils |
494 |
- >=dev-lang/cfortran-4.4-r2 |
495 |
- dev-libs/libpcre |
496 |
- media-fonts/dejavu |
497 |
- media-libs/freetype |
498 |
- media-libs/giflib |
499 |
- media-libs/libpng:0 |
500 |
- media-libs/tiff:0 |
501 |
- sys-libs/zlib |
502 |
- virtual/jpeg |
503 |
- virtual/shadow |
504 |
- X? ( |
505 |
- media-libs/ftgl |
506 |
- media-libs/glew |
507 |
- x11-libs/libX11 |
508 |
- x11-libs/libXext |
509 |
- x11-libs/libXpm |
510 |
- !minimal? ( |
511 |
- || ( |
512 |
- >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] |
513 |
- >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff] |
514 |
- ) |
515 |
- opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps ) |
516 |
- qt4? ( |
517 |
- dev-qt/qtgui:4 |
518 |
- dev-qt/qtopengl:4 |
519 |
- dev-qt/qt3support:4 |
520 |
- dev-qt/qtsvg:4 |
521 |
- dev-qt/qtwebkit:4 |
522 |
- dev-qt/qtxmlpatterns:4 |
523 |
- ) |
524 |
- x11-libs/libXft |
525 |
- ) |
526 |
- ) |
527 |
- !minimal? ( |
528 |
- afs? ( net-fs/openafs ) |
529 |
- avahi? ( net-dns/avahi ) |
530 |
- emacs? ( virtual/emacs ) |
531 |
- fits? ( sci-libs/cfitsio ) |
532 |
- fftw? ( sci-libs/fftw:3.0 ) |
533 |
- graphviz? ( media-gfx/graphviz ) |
534 |
- kerberos? ( virtual/krb5 ) |
535 |
- ldap? ( net-nds/openldap ) |
536 |
- math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) ) |
537 |
- mysql? ( virtual/mysql ) |
538 |
- odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) |
539 |
- oracle? ( dev-db/oracle-instantclient-basic ) |
540 |
- postgres? ( dev-db/postgresql-base ) |
541 |
- pythia6? ( sci-physics/pythia:6 ) |
542 |
- pythia8? ( >=sci-physics/pythia-8.1.80:8 ) |
543 |
- python? ( ${PYTHON_DEPS} ) |
544 |
- ruby? ( |
545 |
- dev-lang/ruby |
546 |
- dev-ruby/rubygems ) |
547 |
- sqlite? ( dev-db/sqlite:3 ) |
548 |
- ssl? ( dev-libs/openssl ) |
549 |
- xml? ( dev-libs/libxml2 ) |
550 |
- xrootd? ( >=net-libs/xrootd-3.2.0 ) |
551 |
- )" |
552 |
- |
553 |
-DEPEND="${CDEPEND} |
554 |
- virtual/pkgconfig" |
555 |
- |
556 |
-RDEPEND="${CDEPEND} |
557 |
- reflex? ( dev-cpp/gccxml ) |
558 |
- xinetd? ( sys-apps/xinetd )" |
559 |
- |
560 |
-PDEPEND="htmldoc? ( ~app-doc/root-docs-${PV} )" |
561 |
- |
562 |
-S="${WORKDIR}/${PN}" |
563 |
- |
564 |
-pkg_setup() { |
565 |
- fortran-2_pkg_setup |
566 |
- use python && python-single-r1_pkg_setup |
567 |
- echo |
568 |
- elog "There are extra options on packages not yet in Gentoo:" |
569 |
- elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite," |
570 |
- elog "HDFS, Monalisa, MaxDB/SapDB, SRP." |
571 |
- elog "You can use the env variable EXTRA_ECONF variable for this." |
572 |
- elog "For example, for SRP, you would set: " |
573 |
- elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\"" |
574 |
- echo |
575 |
- enewgroup rootd |
576 |
- enewuser rootd -1 -1 /var/spool/rootd rootd |
577 |
- use minimal && return |
578 |
- |
579 |
- if use math; then |
580 |
- if use openmp; then |
581 |
- if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then |
582 |
- ewarn "You are using a g++ without OpenMP capabilities" |
583 |
- die "Need an OpenMP capable compiler" |
584 |
- else |
585 |
- export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 |
586 |
- fi |
587 |
- elif use mpi; then |
588 |
- export USE_MPI=1 USE_PARALLEL_MINUIT2=1 |
589 |
- fi |
590 |
- fi |
591 |
- if use c++0x && [[ $(tc-getCXX) == *g++* ]] && \ |
592 |
- ! version_is_at_least "4.7" "$(gcc-version)"; then |
593 |
- eerror "You are using a g++ without C++0x capabilities" |
594 |
- die "Need an C++0x capable compiler" |
595 |
- fi |
596 |
-} |
597 |
- |
598 |
-src_prepare() { |
599 |
- epatch \ |
600 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-prop-flags.patch \ |
601 |
- "${FILESDIR}"/${PN}-${PATCH_PV3}-nobyte-compile.patch \ |
602 |
- "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \ |
603 |
- "${FILESDIR}"/${PN}-${PATCH_PV4}-unuran.patch \ |
604 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \ |
605 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch \ |
606 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-chklib64.patch \ |
607 |
- "${FILESDIR}"/${PN}-${PATCH_PV2}-dotfont.patch \ |
608 |
- "${FILESDIR}"/${PN}-${PATCH_PV4}-pythia8.patch \ |
609 |
- "${FILESDIR}"/${PN}-${PATCH_PV4}-desktop.patch |
610 |
- |
611 |
- # make sure we use system libs and headers |
612 |
- rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die |
613 |
- rm -r graf2d/asimage/src/libAfterImage || die |
614 |
- rm -r graf3d/ftgl/{inc,src} || die |
615 |
- rm -r graf2d/freetype/src || die |
616 |
- rm -r graf3d/glew/{inc,src} || die |
617 |
- rm -r core/pcre/src || die |
618 |
- rm -r math/unuran/src/unuran-*.tar.gz || die |
619 |
- LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | xargs -0 rm -f || die |
620 |
- rm -r core/lzma/src/*.tar.gz || die |
621 |
- rm graf3d/gl/{inc,src}/gl2ps.* || die |
622 |
- sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk || die |
623 |
- |
624 |
- # In Gentoo, libPythia6 is called libpythia6 |
625 |
- # libungif is called libgif, |
626 |
- # iodbc is in /usr/include/iodbc |
627 |
- # pg_config.h is checked instead of libpq-fe.h |
628 |
- sed -i \ |
629 |
- -e 's:libPythia6:libpythia6:g' \ |
630 |
- -e 's:ungif:gif:g' \ |
631 |
- -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \ |
632 |
- -e 's:libpq-fe.h:pg_config.h:' \ |
633 |
- configure || die "adjusting configure for Gentoo failed" |
634 |
- |
635 |
- # prefixify the configure script |
636 |
- sed -i \ |
637 |
- -e 's:/usr:${EPREFIX}/usr:g' \ |
638 |
- configure || die "prefixify configure failed" |
639 |
- |
640 |
- # QTDIR only used for qt3 in gentoo, and configure looks for it. |
641 |
- unset QTDIR |
642 |
- |
643 |
- # Make html docs self-consistent for offline work (based on Fedora spec) |
644 |
- if use htmldoc && ! use minimal; then |
645 |
- epatch "${FILESDIR}"/${PN}-${PATCH_PV2}-htmldoc.patch |
646 |
- # make images local |
647 |
- sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/!!' \ |
648 |
- -i etc/html/ROOT.css || die "htmldoc sed failed" |
649 |
- sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/!!' \ |
650 |
- -i etc/html/ROOT.css || die "htmldoc sed failed" |
651 |
- sed 's!http://root.cern.ch/drupal/sites/default/files/!!' \ |
652 |
- -i etc/html/header.html || die "htmldoc sed failed" |
653 |
- |
654 |
- cp "${DISTDIR}"/{rootdrawing-logo.png,root-banner.png,info.png} etc/html || |
655 |
- die "htmldoc preparation failed" |
656 |
- fi |
657 |
-} |
658 |
- |
659 |
-src_configure() { |
660 |
- # the configure script is not the standard autotools |
661 |
- local mycommonconf=" |
662 |
- --prefix="${EPREFIX}"/usr \ |
663 |
- --etcdir="${EPREFIX}"/etc/root \ |
664 |
- --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ |
665 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
666 |
- --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ |
667 |
- --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ |
668 |
- --with-cc=$(tc-getCC) \ |
669 |
- --with-cxx=$(tc-getCXX) \ |
670 |
- --with-f77=$(tc-getFC) \ |
671 |
- --with-ld=$(tc-getCXX) \ |
672 |
- --nohowto |
673 |
- " |
674 |
- if use minimal; then |
675 |
- ./configure \ |
676 |
- ${mycommonconf} \ |
677 |
- $(usex X --gminimal --minimal) \ |
678 |
- || die "configure failed" |
679 |
- return |
680 |
- fi |
681 |
- # cling is disabled because in requires live llvm and clang |
682 |
- ./configure \ |
683 |
- ${mycommonconf} \ |
684 |
- --with-afs-shared=yes \ |
685 |
- --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ |
686 |
- --disable-builtin-afterimage \ |
687 |
- --disable-builtin-ftgl \ |
688 |
- --disable-builtin-freetype \ |
689 |
- --disable-builtin-glew \ |
690 |
- --disable-builtin-pcre \ |
691 |
- --disable-builtin-zlib \ |
692 |
- --disable-builtin-lzma \ |
693 |
- --disable-cling \ |
694 |
- --enable-astiff \ |
695 |
- --enable-explicitlink \ |
696 |
- --enable-gdml \ |
697 |
- --enable-memstat \ |
698 |
- --enable-shadowpw \ |
699 |
- --enable-shared \ |
700 |
- --enable-soversion \ |
701 |
- --enable-table \ |
702 |
- --fail-on-missing \ |
703 |
- $(use_enable X x11) \ |
704 |
- $(use_enable X asimage) \ |
705 |
- $(use_enable X xft) \ |
706 |
- $(use_enable afs) \ |
707 |
- $(use_enable avahi bonjour) \ |
708 |
- $(use_enable c++0x cxx11) \ |
709 |
- $(use_enable fits fitsio) \ |
710 |
- $(use_enable fftw fftw3) \ |
711 |
- $(use_enable graphviz gviz) \ |
712 |
- $(use_enable kerberos krb5) \ |
713 |
- $(use_enable ldap) \ |
714 |
- $(use_enable math gsl-shared) \ |
715 |
- $(use_enable math genvector) \ |
716 |
- $(use_enable math mathmore) \ |
717 |
- $(use_enable math minuit2) \ |
718 |
- $(use_enable math roofit) \ |
719 |
- $(use_enable math tmva) \ |
720 |
- $(use_enable math unuran) \ |
721 |
- $(use_enable mysql) \ |
722 |
- $(use_enable odbc) \ |
723 |
- $(use_enable opengl) \ |
724 |
- $(use_enable oracle) \ |
725 |
- $(use_enable postgres pgsql) \ |
726 |
- $(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "") \ |
727 |
- $(use_enable prefix rpath) \ |
728 |
- $(use_enable pythia6) \ |
729 |
- $(use_enable pythia8) \ |
730 |
- $(use_enable python) \ |
731 |
- $(use_enable qt4 qt) \ |
732 |
- $(use_enable qt4 qtgsi) \ |
733 |
- $(use_enable reflex cintex) \ |
734 |
- $(use_enable reflex) \ |
735 |
- $(use_enable ruby) \ |
736 |
- $(use_enable sqlite) \ |
737 |
- $(use_enable ssl) \ |
738 |
- $(use_enable xml) \ |
739 |
- $(use_enable xrootd) \ |
740 |
- ${EXTRA_ECONF} \ |
741 |
- || die "configure failed" |
742 |
-} |
743 |
- |
744 |
-src_compile() { |
745 |
- emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" ROOTSYS="${S}" LD_LIBRARY_PATH="${S}/lib" |
746 |
- if use emacs && ! use minimal; then |
747 |
- elisp-compile build/misc/*.el || die "elisp-compile failed" |
748 |
- fi |
749 |
-} |
750 |
- |
751 |
-doc_install() { |
752 |
- cd "${S}" |
753 |
- if use doc && ! use minimal; then |
754 |
- einfo "Installing user's guides" |
755 |
- if use metric; then |
756 |
- dodoc "${DISTDIR}"/ROOTUsersGuideA4-${PV}.pdf |
757 |
- dodoc "${DISTDIR}"/ROOTPrimer-${PV}.pdf |
758 |
- use math && dodoc "${DISTDIR}"/Spectrum-${PV}.pdf |
759 |
- else |
760 |
- dodoc "${DISTDIR}"/ROOTUsersGuideLetter-${PV}.pdf |
761 |
- dodoc "${DISTDIR}"/ROOTPrimerLetter-${PV}.pdf |
762 |
- use math && dodoc "${DISTDIR}"/SpectrumLetter-${PV}.pdf |
763 |
- fi |
764 |
- use math && dodoc \ |
765 |
- "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ |
766 |
- "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf |
767 |
- fi |
768 |
- |
769 |
- if use examples && ! use minimal; then |
770 |
- # these should really be taken care of by the root make install |
771 |
- insinto /usr/share/doc/${PF}/examples/tutorials/tmva |
772 |
- doins -r tmva/test |
773 |
- else |
774 |
- rm -r "${ED}"/usr/share/doc/${PF}/examples || die |
775 |
- fi |
776 |
-} |
777 |
- |
778 |
-daemon_install() { |
779 |
- cd "${S}" |
780 |
- local daemons="rootd proofd" |
781 |
- dodir /var/spool/rootd |
782 |
- fowners rootd:rootd /var/spool/rootd |
783 |
- dodir /var/spool/rootd/{pub,tmp} |
784 |
- fperms 1777 /var/spool/rootd/{pub,tmp} |
785 |
- |
786 |
- for i in ${daemons}; do |
787 |
- newinitd "${FILESDIR}"/${i}.initd ${i} |
788 |
- newconfd "${FILESDIR}"/${i}.confd ${i} |
789 |
- done |
790 |
- if use xinetd; then |
791 |
- insinto /etc/xinetd |
792 |
- doins etc/daemons/{rootd,proofd}.xinetd |
793 |
- fi |
794 |
-} |
795 |
- |
796 |
-desktop_install() { |
797 |
- cd "${S}" |
798 |
- echo "Icon=root-system-bin" >> etc/root.desktop |
799 |
- domenu etc/root.desktop |
800 |
- doicon build/package/debian/root-system-bin.png |
801 |
- |
802 |
- insinto /usr/share/icons/hicolor/48x48/mimetypes |
803 |
- doins build/package/debian/application-x-root.png |
804 |
- |
805 |
- insinto /usr/share/icons/hicolor/48x48/apps |
806 |
- doicon build/package/debian/root-system-bin.xpm |
807 |
-} |
808 |
- |
809 |
-src_install() { |
810 |
- emake DESTDIR="${D}" install |
811 |
- |
812 |
- echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root |
813 |
- if ! use minimal; then |
814 |
- use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root |
815 |
- if use python; then |
816 |
- echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
817 |
- python_optimize "${D}/usr/$(get_libdir)/root" |
818 |
- fi |
819 |
- use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
820 |
- fi |
821 |
- doenvd 99root |
822 |
- |
823 |
- # The build system installs Emacs support unconditionally and in the wrong |
824 |
- # directory. Remove it and call elisp-install in case of USE=emacs. |
825 |
- rm -r "${ED}"/usr/share/emacs |
826 |
- if use emacs && ! use minimal; then |
827 |
- elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" |
828 |
- fi |
829 |
- |
830 |
- doc_install |
831 |
- daemon_install |
832 |
- desktop_install |
833 |
- |
834 |
- # Cleanup of files either already distributed or unused on Gentoo |
835 |
- rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die |
836 |
- rm "${ED}"usr/share/root/fonts/LICENSE || die |
837 |
- pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null |
838 |
- rm posix/mktypes dll_stl/setup \ |
839 |
- G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die |
840 |
- rm "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die |
841 |
- rm "${ED}"/etc/root/proof/*.sample || die |
842 |
- rm -r "${ED}"/etc/root/daemons || die |
843 |
- popd > /dev/null |
844 |
- # these should be in PATH |
845 |
- mv "${ED}"etc/root/proof/utils/pq2/pq2* \ |
846 |
- "${ED}"usr/bin/ || die |
847 |
-} |
848 |
- |
849 |
-pkg_postinst() { |
850 |
- fdo-mime_desktop_database_update |
851 |
-} |
852 |
- |
853 |
-pkg_postrm() { |
854 |
- fdo-mime_desktop_database_update |
855 |
-} |
856 |
|
857 |
diff --git a/sci-physics/root/root-9999.ebuild b/sci-physics/root/root-9999.ebuild |
858 |
index 4c6ffdb..05b899c 100644 |
859 |
--- a/sci-physics/root/root-9999.ebuild |
860 |
+++ b/sci-physics/root/root-9999.ebuild |
861 |
@@ -1,6 +1,6 @@ |
862 |
# Copyright 1999-2013 Gentoo Foundation |
863 |
# Distributed under the terms of the GNU General Public License v2 |
864 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.09.ebuild,v 1.2 2013/09/05 19:44:52 mgorny Exp $ |
865 |
+# $Header: $ |
866 |
|
867 |
EAPI=5 |
868 |
|
869 |
@@ -32,7 +32,7 @@ SRC_URI="${SRC_URI} |
870 |
ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf |
871 |
http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) |
872 |
metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideA4.pdf -> ROOTUsersGuideA4-${PV}.pdf ) |
873 |
- !metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideLetter.pdf -> ROOTUsersGuideLetter-${PV}.pdf ) |
874 |
+ !metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideLetter.pdf -> ROOTUsersGuideLetter-${PV}.pdf ) |
875 |
htmldoc? ( |
876 |
http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png |
877 |
http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/root-banner.png |
878 |
@@ -103,7 +103,7 @@ CDEPEND=" |
879 |
oracle? ( dev-db/oracle-instantclient-basic ) |
880 |
postgres? ( dev-db/postgresql-base ) |
881 |
pythia6? ( sci-physics/pythia:6 ) |
882 |
- pythia8? ( sci-physics/pythia:8 ) |
883 |
+ pythia8? ( >=sci-physics/pythia-8.1.80:8 ) |
884 |
python? ( ${PYTHON_DEPS} ) |
885 |
ruby? ( |
886 |
dev-lang/ruby |
887 |
@@ -126,19 +126,19 @@ S="${WORKDIR}/${PN}" |
888 |
|
889 |
pkg_setup() { |
890 |
fortran-2_pkg_setup |
891 |
+ use python && python-single-r1_pkg_setup |
892 |
echo |
893 |
elog "There are extra options on packages not yet in Gentoo:" |
894 |
elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite," |
895 |
elog "HDFS, Monalisa, MaxDB/SapDB, SRP." |
896 |
elog "You can use the env variable EXTRA_ECONF variable for this." |
897 |
elog "For example, for SRP, you would set: " |
898 |
- elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" |
899 |
+ elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\"" |
900 |
echo |
901 |
enewgroup rootd |
902 |
enewuser rootd -1 -1 /var/spool/rootd rootd |
903 |
use minimal && return |
904 |
|
905 |
- use python && python-single-r1_pkg_setup |
906 |
if use math; then |
907 |
if use openmp; then |
908 |
if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then |
909 |
@@ -311,8 +311,11 @@ doc_install() { |
910 |
cd "${S}" |
911 |
if use doc && ! use minimal; then |
912 |
einfo "Installing user's guides" |
913 |
- use metric && dodoc "${DISTDIR}"/ROOTUsersGuideA4-${PV}.pdf || \ |
914 |
+ if use metric; then |
915 |
+ dodoc "${DISTDIR}"/ROOTUsersGuideA4-${PV}.pdf |
916 |
+ else |
917 |
dodoc "${DISTDIR}"/ROOTUsersGuideLetter-${PV}.pdf |
918 |
+ fi |
919 |
use math && dodoc \ |
920 |
"${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ |
921 |
"${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf |
922 |
@@ -366,7 +369,7 @@ src_install() { |
923 |
use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root |
924 |
if use python; then |
925 |
echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
926 |
- python_optimize /usr/$(get_libdir)/root |
927 |
+ python_optimize "${ED}/usr/$(get_libdir)/root" |
928 |
fi |
929 |
use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
930 |
fi |