easyblock = 'ConfigureMake'

name = 'PHREEQC'
version = "3.3.12-12704"

homepage = 'https://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/'
description = """A Computer Program for Speciation, Batch-Reaction, One-Dimensional Transport, and Inverse Geochemical Calculations"""

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

# FTP not permissive
source_urls = ['ftp://brrftp.cr.usgs.gov/pub/charlton/phreeqc/']
sources = ['phreeqc-%(version)s.tar.gz']

postinstallcmds = [
    'make check',
    'cp Tests/ %(installdir)s/Tests -R',
]

sanity_check_paths = {
    'files': [],
    'dirs': ['include', 'lib', 'Tests'],
}

moduleclass = 'geo'
