sci-physics/root: enable support for nVidia CUDA
authorGuilherme Amadio <amadio@gentoo.org>
Fri, 24 Aug 2018 12:29:11 +0000 (14:29 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Fri, 24 Aug 2018 12:57:29 +0000 (14:57 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

sci-physics/root/metadata.xml
sci-physics/root/root-6.14.02.ebuild
sci-physics/root/root-9999.ebuild

index 46ddf2da381c3422fd6582376a7736e59aeb57b0..baf90a1a37bce7858f2cde8f54804a65794d0fe6 100644 (file)
@@ -21,6 +21,7 @@
   </longdescription>
   <use>
     <flag name="asimage">Enable support for <pkg>media-libs/libafterimage</pkg></flag>
+    <flag name="cuda">Enable support for nVidia CUDA</flag>
     <flag name="davix">Enable support for DAVIX Data Management Client (https://cern.ch/davix)</flag>
     <flag name="fits">Enable support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
     <flag name="fortran">Compile included Fortran programs</flag>
index da5c95124981a629a115fea25d3d832a0bd21545..24d19074d97bb2e11a9840be44aad28252044c48 100644 (file)
@@ -9,14 +9,14 @@ CMAKE_MAKEFILE_GENERATOR=emake
 FORTRAN_NEEDED="fortran"
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
-inherit cmake-utils eapi7-ver elisp-common eutils fortran-2 \
+inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
        prefix python-single-r1 toolchain-funcs
 
 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
 HOMEPAGE="https://root.cern"
 SRC_URI="https://root.cern/download/${PN}_v${PV}.source.tar.gz"
 
-IUSE="+X avahi aqua +asimage +davix emacs +examples fits fftw fortran
+IUSE="+X avahi aqua +asimage cuda +davix emacs +examples fits fftw fortran
        +gdml graphviz +gsl http jemalloc kerberos ldap libcxx memstat
        +minuit mysql odbc +opengl oracle postgres prefix pythia6 pythia8
        +python qt5 R +roofit root7 shadow sqlite +ssl table +tbb test
@@ -68,6 +68,7 @@ CDEPEND="
                >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff?]
        ) )
        avahi? ( net-dns/avahi[mdnsresponder-compat] )
+       cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
        davix? ( net-libs/davix )
        emacs? ( virtual/emacs )
        fftw? ( sci-libs/fftw:3.0= )
@@ -189,6 +190,7 @@ src_configure() {
                -Dchirp=OFF
                -Dcling=ON # cling=OFF is broken
                -Dcocoa=$(usex aqua)
+               -Dcuda=$(usex cuda)
                -Dcxx14=$(usex root7)
                -Dcxxmodules=OFF # requires clang, unstable
                -Ddavix=$(usex davix)
@@ -250,9 +252,9 @@ src_configure() {
                -Dtcmalloc=OFF
                -Dtesting=$(usex test)
                -Dthread=$(usex threads)
-               -Dtmva-cpu=$(usex tmva)
-               -Dtmva-gpu=OFF
                -Dtmva=$(usex tmva)
+               -Dtmva-cpu=$(usex tmva)
+               -Dtmva-gpu=$(usex cuda)
                -Dunuran=$(usex unuran)
                -Dvc=$(usex vc)
                -Dvdt=OFF
index efb109007656d9aabcf72b91102f56048d290fda..b9e470282f898ba1407f549821c69182379e71c3 100644 (file)
@@ -9,7 +9,7 @@ CMAKE_MAKEFILE_GENERATOR=emake
 FORTRAN_NEEDED="fortran"
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 
-inherit cmake-utils eapi7-ver elisp-common eutils fortran-2 \
+inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
        prefix python-single-r1 toolchain-funcs
 
 if [[ ${PV} == "9999" ]] ; then
@@ -26,7 +26,7 @@ fi
 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
 HOMEPAGE="https://root.cern"
 
-IUSE="+X avahi aqua +asimage +davix emacs +examples fits fftw fortran
+IUSE="+X avahi aqua +asimage cuda +davix emacs +examples fits fftw fortran
        +gdml graphviz +gsl http jemalloc kerberos ldap libcxx memstat
        +minuit mysql odbc +opengl oracle postgres prefix pythia6 pythia8
        +python qt5 R +roofit root7 shadow sqlite +ssl table +tbb test
@@ -77,6 +77,7 @@ CDEPEND="
                >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff?]
        ) )
        avahi? ( net-dns/avahi[mdnsresponder-compat] )
+       cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
        davix? ( net-libs/davix )
        emacs? ( virtual/emacs )
        fftw? ( sci-libs/fftw:3.0= )
@@ -198,6 +199,7 @@ src_configure() {
                -Dchirp=OFF
                -Dcling=ON # cling=OFF is broken
                -Dcocoa=$(usex aqua)
+               -Dcuda=$(usex cuda)
                -Dcxx14=$(usex root7)
                -Dcxxmodules=OFF # requires clang, unstable
                -Ddavix=$(usex davix)
@@ -260,9 +262,9 @@ src_configure() {
                -Dtcmalloc=OFF
                -Dtesting=$(usex test)
                -Dthread=$(usex threads)
-               -Dtmva-cpu=$(usex tmva)
-               -Dtmva-gpu=OFF
                -Dtmva=$(usex tmva)
+               -Dtmva-cpu=$(usex tmva)
+               -Dtmva-gpu=$(usex cuda)
                -Dunuran=$(usex unuran)
                -Dvc=$(usex vc)
                -Dvdt=OFF