easyblock = 'ConfigureMake'

name = 'sparsehash'
version = '2.0.2'

homepage = 'http://code.google.com/p/google-sparsehash/'
description = """An extremely memory-efficient hash_map implementation. 2 bits/entry overhead! The SparseHash library
 contains several hash-map implementations, including implementations that optimize for space or speed."""

toolchain = {'name': 'goalf', 'version': '1.1.0-no-OFED'}
toolchainopts = {'optarch': True}

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['http://sparsehash.googlecode.com/files']

runtest = "check"

sanity_check_paths = {
    'files': ['include/sparsehash/%s' % x for x in ['dense_hash_map', 'dense_hash_set', 'sparse_hash_map',
                                                    'sparse_hash_set', 'sparsetable', 'template_util.h', 'type_traits.h'
                                                    ]
              ],
    'dirs': []
}

moduleclass = 'devel'
