easyblock = 'CMakeMake'

name = 'ALPScore'
version = '2.1.1'

homepage = "http://alps.comp-phys.org/"
description = """The ALPS project (Algorithms and Libraries for Physics Simulations) is an open source effort
 aiming at providing high-end simulation codes for strongly correlated quantum mechanical systems as well as
 C++ libraries for simplifying the development of such code.
"""

toolchain = {'name': 'intel', 'version': '2017b'}

sources = ['v%(version)s.tar.gz']
source_urls = ['https://github.com/ALPSCore/ALPSCore/archive/']

dependencies = [
    ('CMake', '3.5.2', '', True),
    ('Boost', '1.66.0', '-serial'),
    ('HDF5', '1.10.1', '-GCC-6.3.0-2.27-serial', True),
    ('Eigen', '3.3.4', '', True),
]

separate_build_dir = True

configopts = ' -DCMAKE_BUILD_TYPE=Release -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include'

modextravars = {
    'ALPS_ROOT': '$root',
}

sanity_check_paths = {
    'files': [
        'lib/libalps-accumulators.so',
        'lib/libalps-gf.so',
        'lib/libalps-hdf5.so',
        'lib/libalps-mc.so',
        'lib/libalps-params.so',
        'lib/libalps-utilities.so'],
    'dirs': [
        'include/alps',
        'lib/',
        'share/'],
}

moduleclass = 'phys'
