easyblock = 'ConfigureMake'

name = 'TiMBL'
version = '6.4.6'

homepage = 'http://ilk.uvt.nl/timbl/'
description = """TiMBL (Tilburg Memory Based Learner)
 is an open source software package implementing several memory-based learning algorithms,
 among which IB1-IG, an implementation of k-nearest neighbor classification with feature weighting suitable for
 symbolic feature spaces, and IGTree, a decision-tree approximation of IB1-IG. All implemented algorithms have in
 common that they store some representation of the training set explicitly in memory. During testing, new cases are
 classified by extrapolation from the most similar stored cases."""

toolchain = {'name': 'intel', 'version': '2015b'}
toolchainopts = {'optarch': True, 'pic': True, 'opt': True}

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['http://software.ticc.uvt.nl/']

dependencies = [
    ('TiCCutils', '0.7'),
    ('libxml2', '2.9.2'),
]

configopts = '--with-ticcutils=$EBROOTTICCUTILS'

sanity_check_paths = {
    'files': ['bin/timbl', 'lib/libtimbl.%s' % SHLIB_EXT, 'lib/libtimbl.a'],
    'dirs': ['include/timbl']
}

moduleclass = 'data'
