name = 'ROOT'
version = 'v5.34.01'

homepage = 'http://root.cern.ch/drupal/'
description = """The ROOT system provides a set of OO frameworks with all the functionality
needed to handle and analyze large amounts of data in a very efficient way."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'pic': True}

sources = ['%s_%s.source.tar.gz' % (name.lower(), version)]
source_urls = ['ftp://root.cern.ch/root/']

local_python = 'Python'
local_pyver = '2.7.3'

dependencies = [
    ('GSL', '1.15'),
    ('libxml2', '2.8.0', '-%s-%s' % (local_python, local_pyver)),
    (local_python, local_pyver),
]

# architecture
arch = 'linuxx8664gcc'

# disable features
configopts = ' --disable-xft --disable-x11 --disable-xrootd --disable-mysql'
# enable features
configopts += ' --enable-unuran --enable-table --enable-explicitlink --enable-minuit2 --enable-roofit'
configopts += ' --with-gsl-incdir=$EBROOTGSL/include/gsl --with-gsl-libdir=$EBROOTGSL/lib'
configopts += ' --with-xml-incdir=$EBROOTLIBXML2/include/libxml2/libxml --with-xml-libdir=$EBROOTLIBXML2/lib'
configopts += ' --with-fftw3-incdir=$FFTW_INC_DIR --with-fftw3-libdir=$FFTW_LIB_DIR'
configopts += ' --with-local_python-libdir=$EBROOTPYTHON/lib'

moduleclass = 'data'
