easyblock = 'ConfigureMake'

name = 'CFITSIO'
version = '3.41'

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

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

builddependencies = [('binutils', '2.26')]

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

moduleclass = 'lib'
