easyblock = 'ConfigureMake'

name = 'FFindex'
version = '0.9.9'

homepage = 'http://www.splashground.de/~andy/programs/FFindex/'
description = """simple index/database for huge amounts of small files"""

toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'usempi': True}

source_urls = ['http://www.splashground.de/~andy/programs/FFindex/']
sources = [SOURCELOWER_TAR_GZ]

skipsteps = ['configure']

start_dir = 'src'

buildopts = 'USEMPI=1'
installopts = "USEMPI=1 INSTALL_DIR=%(installdir)s"

runtest = 'test'

parallel = 1

sanity_check_paths = {
    'files': ['bin/ffindex_%s' % x for x in ['apply', 'build', 'from_fasta', 'get', 'modify', 'unpack']] +
             ['lib64/libffindex.a', 'lib64/libffindex.so'],
    'dirs': [],
}

moduleclass = 'tools'
