summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-04-27 14:13:39 -0500
committerGitHub <noreply@github.com>2017-04-27 14:13:39 -0500
commit5d6a488c69b8f10fd9d180ab679d857821c36d04 (patch)
tree9911132c38c3bf3a8f5d91718061b53d5448855d /var
parentbb5a433a46a8ffc69b01e8477eb6646f4c66f9d2 (diff)
downloadspack-5d6a488c69b8f10fd9d180ab679d857821c36d04.tar.gz
spack-5d6a488c69b8f10fd9d180ab679d857821c36d04.tar.bz2
spack-5d6a488c69b8f10fd9d180ab679d857821c36d04.tar.xz
spack-5d6a488c69b8f10fd9d180ab679d857821c36d04.zip
Add latest versions of root (#4022)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/root/package.py111
1 files changed, 76 insertions, 35 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index a5939ace8f..b1e7cc6834 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -27,11 +27,20 @@ from spack import *
import sys
-class Root(Package):
+class Root(CMakePackage):
"""ROOT is a data analysis framework."""
+
homepage = "https://root.cern.ch"
- url = "https://root.cern.ch/download/root_v6.06.06.source.tar.gz"
+ url = "https://root.cern.ch/download/root_v6.09.02.source.tar.gz"
+
+ # Development versions
+ version('6.09.02', '4188dfeafb72df339a3d688fe92f57ec')
+
+ # Production versions
+ version('6.08.06', 'bcf0be2df31a317d25694ad2736df268', preferred=True)
+ # Old versions
+ version('6.06.08', '6ef0fe9bd9f88f3ce8890e3651142ee4')
version('6.06.06', '4308449892210c8d36e36924261fea26')
version('6.06.04', '55a2f98dd4cea79c9c4e32407c2d6d17')
version('6.06.02', 'e9b8b86838f65b0a78d8d02c66c2ec55')
@@ -42,44 +51,76 @@ class Root(Package):
variant('graphviz', default=False, description='Enable graphviz support')
- depends_on("cmake", type='build')
- depends_on("pcre")
- depends_on("fftw")
- depends_on("graphviz", when="+graphviz")
- depends_on("python")
- depends_on("gsl")
- depends_on("libxml2+python")
- depends_on("jpeg")
- if sys.platform != 'darwin':
- depends_on("libpng")
- depends_on("openssl")
- depends_on("freetype")
-
- def install(self, spec, prefix):
- build_directory = join_path(self.stage.path, 'spack-build')
- source_directory = self.stage.source_path
- options = [source_directory]
- if '+debug' in spec:
- options.append('-DCMAKE_BUILD_TYPE:STRING=Debug')
+ depends_on('cmake@3.4.3:', type='build')
+ depends_on('pkg-config', type='build')
+
+ depends_on('zlib')
+ # depends_on('unuran')
+ depends_on('freetype')
+ depends_on('pcre')
+ depends_on('xz')
+ depends_on('libsm')
+ depends_on('libice')
+ depends_on('libx11')
+ depends_on('libxext')
+ depends_on('libxpm')
+ depends_on('libxft')
+ # depends_on('gif')
+ depends_on('libpng')
+ depends_on('jpeg')
+ depends_on('gsl')
+ depends_on('python@2.7:')
+ # depends_on('opengl')
+ depends_on('graphviz', when='+graphviz')
+ # depends_on('kerberos')
+ depends_on('libxml2+python')
+ depends_on('openssl')
+ # depends_on('castor')
+ # depends_on('rfio')
+ # depends_on('mysql')
+ # depends_on('oracle')
+ # depends_on('odbc')
+ # depends_on('postgresql')
+ depends_on('sqlite')
+ # depends_on('pythia')
+ depends_on('fftw')
+ depends_on('cfitsio')
+ # depends_on('monalisa')
+ # depends_on('xrootd')
+ # depends_on('gfal')
+ # depends_on('dcap')
+ # depends_on('ldap')
+ # depends_on('chirp')
+ # depends_on('hdfs')
+ # depends_on('davix')
+
+ # I was unable to build root with any Intel compiler
+ # See https://sft.its.cern.ch/jira/browse/ROOT-7517
+ conflicts('%intel')
+
+ def build_type(self):
+ if '+debug' in self.spec:
+ return 'Debug'
else:
- options.append('-DCMAKE_BUILD_TYPE:STRING=Release')
- options.append('-Dcxx14=on')
- options.append('-Dcocoa=off')
- options.append('-Dbonjour=off')
- options.append('-Dx11=on')
- options.extend(std_cmake_args)
+ return 'Release'
+
+ def cmake_args(self):
+ args = [
+ '-Dcocoa=OFF',
+ '-Dbonjour=OFF',
+ '-Dx11=ON',
+ ]
+
if sys.platform == 'darwin':
- darwin_options = [
+ args.extend([
'-Dcastor=OFF',
'-Drfio=OFF',
- '-Ddcache=OFF']
- options.extend(darwin_options)
- with working_dir(build_directory, create=True):
- cmake(*options)
- make()
- make("install")
+ '-Ddcache=OFF',
+ ])
+
+ return args
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
spack_env.set('ROOTSYS', self.prefix)
- spack_env.set('ROOT_VERSION', 'v6')
+ spack_env.set('ROOT_VERSION', 'v{0}'.format(self.version.up_to(1)))
spack_env.prepend_path('PYTHONPATH', self.prefix.lib)