easyblock = 'ConfigureMake'

name = 'NCO'
version = '4.4.4'

homepage = "http://nco.sourceforge.net"
description = """manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5"""

toolchain = {'name': 'intel', 'version': '2014b'}

source_urls = ['http://nco.sourceforge.net/src']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('UDUNITS', '2.1.24'),
    ('expat', '2.1.0'),
    ('ANTLR', '2.7.7'),
    ('GSL', '1.16'),
    ('netCDF', '4.2.1.1'),
]

sanity_check_paths = {
    'files': ['bin/nc%s' % x for x in ['ap2', 'atted', 'bo', 'diff', 'ea', 'ecat', 'es', 'flint',
                                       'ks', 'pdq', 'ra', 'rcat', 'rename']] +
             ['lib/libnco.a', 'lib/libnco.%s' % SHLIB_EXT, 'lib/libnco_c++.a', 'lib/libnco_c++.%s' % SHLIB_EXT],
    'dirs': ['include'],
}

moduleclass = 'tools'
