easyblock = 'ConfigureMake'

name = 'CASMcode'
version = "0.2.1"

homepage = 'CASMcode'
description = """CASM (https://github.com/prisms-center/CASMcode) is an open source software
package designed to perform first-principles statistical mechanical studies of multi-component
crystalline solids. CASM interfaces with first-principles electronic structure codes, automates
the construction and parameterization of effective Hamiltonians and subsequently builds highly
optimized (kinetic) Monte Carlo codes to predict finite-temperature thermodynamic and kinetic
properties. CASM uses group theoretic techniques that take full advantage of crystal symmetry
in order to rigorously construct effective Hamiltonians for almost arbitrary degrees of
freedom in crystalline solids. This includes cluster expansions for configurational disorder
in multi-component solids and lattice-dynamical effective Hamiltonians for vibrational
degrees of freedom involved in structural phase transitions."""

toolchain = {'name': 'foss', 'version': '2016a'}

source_urls = [
    'https://github.com/prisms-center/CASMcode/releases/download/v%(version)s/']
sources = ['casm-v%(version)s.tar.gz']

dependencies = [
    ('Boost', '1.61.0'),
    ('Python', '2.7.13', '', True),
    ('SCons', '2.5.1', '-Python-2.7.13', True)
]

configopts = '--with-boost=$EBROOTBOOST'

sanity_check_paths = {
    'files': [],
    'dirs': ['bin'],
}

moduleclass = 'phys'
