easyblock = 'ConfigureMake'

name = 'CFITSIO'
version = '3.38'

homepage = 'http://heasarc.gsfc.nasa.gov/fitsio/'
description = """CFITSIO is a library of C and Fortran subroutines for reading and writing data files in
FITS (Flexible Image Transport System) data format."""

toolchain = {'name': 'foss', 'version': '2016a'}
toolchainopts = {'optarch': True, 'pic': True}

srcversion = '%s0' % version.replace('.', '')
source_urls = ['ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/']
sources = ['%%(namelower)s%s.tar.gz' % srcversion]

sanity_check_paths = {
    'files': ["lib/libcfitsio.a"],
    'dirs': ["include"],
}

moduleclass = 'lib'
