easyblock = 'ConfigureMake'

name = 'Loki'
version = '0.1.7'

homepage = 'http://loki-lib.sourceforge.net/'
description = """ Loki is a C++ library of designs, containing flexible implementations of common design patterns and
 idioms. """

toolchain = {'name': 'intel', 'version': '2016a'}

source_urls = [
    'https://sourceforge.net/projects/loki-lib/files/Loki/Loki %(version)s/']
sources = [SOURCELOWER_TAR_GZ]

skipsteps = ['configure']

installopts = "prefix=%(installdir)s"

sanity_check_paths = {
    'files': [
        'lib/libloki.a',
        'lib/libloki.%s' %
        SHLIB_EXT,
        'lib/libloki.%s.%%(version)s' %
        SHLIB_EXT],
    'dirs': ['include/loki'],
}

moduleclass = 'lib'
