easyblock = 'ConfigureMake'

name = 'slalib-c'
version = '0.0'

homepage = 'http://star-www.rl.ac.uk/star/docs/sun67.htx/sun67.html'
description = "SLALIB is a library used by writers of positional-astronomy applications."

toolchain = {'name': 'ictce', 'version': '5.5.0'}

# only available for download per request, cfr. ftp://legacy.gsfc.nasa.gov/heasarc/software/slalib-info.html
sources = [SOURCE_TAR_BZ2]

skipsteps = ['configure', 'install']
buildopts = 'INSTALL_DIR=%(installdir)s SLA_LIB_DIR=%(installdir)s/lib/ CCOMPC="$CC" CFLAGC="-c -pedantic $CFLAGS"'

parallel = 1

# make sure the gzip, gunzip and compress binaries are available after installation
sanity_check_paths = {
    'files': ["include/slalib.h", "include/slamac.h", "lib/libsla.a"],
    'dirs': [],
}

moduleclass = 'lib'
