diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-04-03 18:03:41 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-04-03 18:03:41 +0000 |
commit | 4f751171f275c9e93402ef047e64b3c9d934b416 (patch) | |
tree | 77cdee982b6d5a6bd87a17e11c79f4cddb1a203d /sci-physics/root | |
parent | Add gnome-dvb-daemon-0.2.8 to package.mask since it needs glib-2.32. (diff) | |
download | gentoo-2-4f751171f275c9e93402ef047e64b3c9d934b416.tar.gz gentoo-2-4f751171f275c9e93402ef047e64b3c9d934b416.tar.bz2 gentoo-2-4f751171f275c9e93402ef047e64b3c9d934b416.zip |
sci-physics/root: Imported latest fixes from sci overlay, including LD and CXXFLAGS respect and clean EAPI=4 usage
(Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
Diffstat (limited to 'sci-physics/root')
-rw-r--r-- | sci-physics/root/ChangeLog | 7 | ||||
-rw-r--r-- | sci-physics/root/metadata.xml | 36 | ||||
-rw-r--r-- | sci-physics/root/root-5.28.00h-r1.ebuild | 4 | ||||
-rw-r--r-- | sci-physics/root/root-5.32.02-r1.ebuild | 60 |
4 files changed, 57 insertions, 50 deletions
diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog index 6fd6d4959309..32cf8db4a83b 100644 --- a/sci-physics/root/ChangeLog +++ b/sci-physics/root/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-physics/root # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.97 2012/04/03 16:02:52 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.98 2012/04/03 18:03:41 jlec Exp $ + + 03 Apr 2012; Justin Lecher <jlec@gentoo.org> root-5.28.00h-r1.ebuild, + root-5.32.02-r1.ebuild, metadata.xml: + Imported latest fixes from sci overlay, including LD and CXXFLAGS respect and + clean EAPI=4 usage 03 Apr 2012; Sébastien Fabbro <bicatali@gentoo.org> -root-5.28.00h.ebuild, +root-5.28.00h-r1.ebuild, -root-5.32.01-r2.ebuild, +root-5.32.02-r1.ebuild: diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml index aaec26ab1563..f39c4478f679 100644 --- a/sci-physics/root/metadata.xml +++ b/sci-physics/root/metadata.xml @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer> - <email>bircoph@gmail.com</email> - <name>Andrew Savchenko</name> - <description>Maintainer. Assign bugs to him</description> -</maintainer> -<herd>sci-physics</herd> -<longdescription lang="en"> + <maintainer> + <email>bircoph@gmail.com</email> + <name>Andrew Savchenko</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <herd>sci-physics</herd> + <longdescription lang="en"> ROOT Object Oriented Technologies is an object oriented data analysis framework written in C++ by the CERN. Widely used in high energy physics, but also in other data analysis applications. It @@ -15,15 +15,15 @@ statistics, serialization, optimization, linear algebra, graphics, GUI toolkit, and a complete visualization framework. </longdescription> -<use> - <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag> - <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag> - <flag name="geant4">Support for <pkg>sci-physics/geant</pkg> version 4</flag> - <flag name="llvm">Build the new cling interactive interpreter based on <pkg>sys-devel/llvm</pkg></flag> - <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag> - <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag> - <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag> - <flag name="reflex">Build the reflection database for the C++ interpreter</flag> - <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag> -</use> + <use> + <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag> + <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag> + <flag name="geant4">Support for <pkg>sci-physics/geant</pkg> version 4</flag> + <flag name="llvm">Build the new cling interactive interpreter based on <pkg>sys-devel/llvm</pkg></flag> + <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag> + <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag> + <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag> + <flag name="reflex">Build the reflection database for the C++ interpreter</flag> + <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag> + </use> </pkgmetadata> diff --git a/sci-physics/root/root-5.28.00h-r1.ebuild b/sci-physics/root/root-5.28.00h-r1.ebuild index 11be679eeff5..cef0d16ce32a 100644 --- a/sci-physics/root/root-5.28.00h-r1.ebuild +++ b/sci-physics/root/root-5.28.00h-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.28.00h-r1.ebuild,v 1.1 2012/04/03 16:02:52 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.28.00h-r1.ebuild,v 1.2 2012/04/03 18:03:41 jlec Exp $ EAPI=3 @@ -45,7 +45,7 @@ CDEPEND=" x11-libs/libXft x11-libs/libXpm || ( - >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] + >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff] ) afs? ( net-fs/openafs ) diff --git a/sci-physics/root/root-5.32.02-r1.ebuild b/sci-physics/root/root-5.32.02-r1.ebuild index 6b4c09b468c0..c8db84e897e6 100644 --- a/sci-physics/root/root-5.32.02-r1.ebuild +++ b/sci-physics/root/root-5.32.02-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.02-r1.ebuild,v 1.1 2012/04/03 16:02:52 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.02-r1.ebuild,v 1.2 2012/04/03 18:03:41 jlec Exp $ EAPI=4 PYTHON_DEPEND="python? 2" @@ -14,11 +14,12 @@ PATCH_PV2=5.32.00 DESCRIPTION="C++ data analysis framework and interpreter from CERN" HOMEPAGE="http://root.cern.ch/" -SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz +SRC_URI=" + ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz doc? ( ftp://root.cern.ch/${PN}/doc/Users_Guide_${DOC_PV}.pdf - math? ( - ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf - http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )" + math? ( + ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) )" SLOT="0" LICENSE="LGPL-2.1" @@ -45,7 +46,7 @@ CDEPEND=" x11-libs/libXext x11-libs/libXpm || ( - >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] + >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff] ) opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps ) @@ -109,7 +110,7 @@ pkg_setup() { enewuser rootd -1 -1 /var/spool/rootd rootd if use math; then - if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then + if use openmp && ! tc-has-openmp; then ewarn "You are using gcc and OpenMP is available with gcc >= 4.2" ewarn "If you want to build this package with OpenMP, abort now," ewarn "and set CC to an OpenMP capable compiler" @@ -134,17 +135,17 @@ src_prepare() { "${FILESDIR}"/${PN}-${PATCH_PV2}-explicit-functions.patch # make sure we use system libs and headers - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc - rm -rf graf2d/asimage/src/libAfterImage - rm -rf graf3d/ftgl/{inc,src} - rm -rf graf2d/freetype/src - rm -rf graf3d/glew/{inc,src} - rm -rf core/pcre/src - rm -rf math/unuran/src/unuran-*.tar.gz - LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" | xargs rm - rm -rf core/lzma/src/*.tar.gz - rm graf3d/gl/{inc,src}/gl2ps.* - sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk + rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die + rm -rf graf2d/asimage/src/libAfterImage || die + rm -rf graf3d/ftgl/{inc,src} || die + rm -rf graf2d/freetype/src || die + rm -rf graf3d/glew/{inc,src} || die + rm -rf core/pcre/src || die + rm -rf math/unuran/src/unuran-*.tar.gz || die + LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | xargs -0 rm -f || die + rm -rf core/lzma/src/*.tar.gz || die + rm graf3d/gl/{inc,src}/gl2ps.* || die + sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk || die # In Gentoo, libPythia6 is called libpythia6 # libungif is called libgif, @@ -178,6 +179,7 @@ src_configure() { --with-cc=$(tc-getCC) \ --with-cxx=$(tc-getCXX) \ --with-f77=$(tc-getFC) \ + --with-ld=$(tc-getCXX) \ --with-afs-shared=yes \ --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ --disable-builtin-afterimage \ @@ -238,7 +240,7 @@ src_configure() { } src_compile() { - emake OPT="${CFLAGS}" F77OPT="${FFLAGS}" || die "emake failed" + emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" if use emacs; then elisp-compile build/misc/*.el || die "elisp-compile failed" fi @@ -259,7 +261,7 @@ doc_install() { insinto /usr/share/doc/${PF}/examples/tutorials/tmva doins -r tmva/test else - rm -rf "${ED}"/usr/share/doc/${PF}/examples + rm -rf "${ED}"/usr/share/doc/${PF}/examples || die fi } @@ -296,13 +298,13 @@ desktop_install() { } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + emake DESTDIR="${D}" install echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root - doenvd 99root || die "doenvd failed" + doenvd 99root # The build system installs Emacs support unconditionally and in the wrong # directory. Remove it and call elisp-install in case of USE=emacs. @@ -316,18 +318,18 @@ src_install() { desktop_install # Cleanup of files either already distributed or unused on Gentoo - rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} - rm "${ED}"usr/share/root/fonts/LICENSE + rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die + rm "${ED}"usr/share/root/fonts/LICENSE || die pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null rm -f posix/mktypes dll_stl/setup \ - G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o - rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib - rm -f "${ED}"/etc/root/proof/*.sample - rm -rf "${ED}"/etc/root/daemons + G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die + rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die + rm -f "${ED}"/etc/root/proof/*.sample || die + rm -rf "${ED}"/etc/root/daemons || die popd > /dev/null # these should be in PATH mv "${ED}"etc/root/proof/utils/pq2/pq2* \ - "${ED}"usr/bin + "${ED}"usr/bin/ || die } pkg_postinst() { |