easyblock = 'ConfigureMake'

name = 'libctl'
version = '3.2.1'

homepage = 'http://ab-initio.mit.edu/libctl'
description = """libctl is a free Guile-based library implementing flexible control files for scientific simulations."""
toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'optarch': True}

source_urls = ['http://ab-initio.mit.edu/libctl/']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [('guile', '1.8.8')]

# fix for guile-config being broken because shebang line contains full
# path to bin/guile
configopts = 'GUILE_CONFIG="$EBROOTGUILE/bin/guile -e main -s $EBROOTGUILE/bin/guile-config"'

moduleclass = 'chem'
