easyblock = 'ConfigureMake'

name = 'ProbABEL'
version = '0.5.0'

homepage = "http://www.genabel.org/packages/ProbABEL"
description = """Tool for genome-wide association
analysis of imputed genetic data."""

toolchain = {'name': 'system', 'version': ''}

source_urls = ['http://www.genabel.org/sites/default/files/software/']
sources = ['probabel-%(version)s.tar.gz']

dependencies = [
    ('Eigen', '3.2.6')
]

configopts = '--disable-latex-doc'

postinstallcmds = [
    "mv %(installdir)s/etc/probabel_config.cfg.example %(installdir)s/etc/probabel_config.cfg"]

sanity_check_paths = {
    'files': [
        'bin/probabel',
        'bin/pacoxph',
        'bin/palinear',
        'bin/palogist',
        'etc/probabel_config.cfg'],
    'dirs': ['share'],
}

moduleclass = 'bio'
