easyblock = 'ConfigureMake'

name = 'CFITSIO'
version = '3.300'

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': 'ictce', 'version': '5.5.0'}
toolchainopts = {'pic': True}

srcversion = 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'
