# IT4Innovations 2021
# LK

easyblock = 'PackedBinary'

name = 'Newton-X'
version = '2.2-B09'

homepage = 'https://sourceforge.net/projects/actc'
description = "ACTC converts independent triangles into triangle strips or fans."

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

#source_urls = [https://amubox.univ-amu.fr/s/aBMnEq7dXeZPm2H/download]
sources = ['nx-2.2-b09.tgz']
patches = ['newton-x-2.2.patch']

dependencies = [
   ['GSL', '2.6'],
   ['Gaussian', '09-d01', '-CascadeLake', True],
]

install_cmd = 'NX-2.2-B09/install/installnx.pl ifort $EBROOTGSL %(installdir)s 0'

sanity_check_paths = {
    'files': [ 'bin/tplot', 'bin/moldyn.pl', 'bin/plot', 'source/lib/nx_la.pm'],
    'dirs': ['bin', 'batch', 'docs', 'install', 'source', 'test-nx'],
}

modextrapaths = {
   'NX': 'bin',
   'LIBRARY_PATH': 'source/lib',
   'LD_LIBRARY_PATH': 'source/lib'
}

moduleclass = 'chem'
