easyblock = 'MakeCp'

name = 'SNAPE-pooled'
version = 'r32'

homepage = 'https://code.google.com/archive/p/snape-pooled/'
description = """SNAPE-pooled computes the probability distribution for the frequency of the minor allele
 in a certain population, at a certain position in the genome."""

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

source_urls = ['https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/snape-pooled/']
sources = ['source-archive.zip']

patches = ['SNAPE-pooled-%(version)s_fix-hardcoding-Makefile.patch']

# commit 32, Aug 12th 2013
checksums = ['0e9741a45731a2e92d84c129125db3f1']

dependencies = [
    ('OCaml', '4.02.3'),
]

start_dir = 'trunk'

buildopts = "snape-pooled snape-pooled-fast"

files_to_copy = [(['snape-pooled', 'snape-pooled-fast'], 'bin')]

sanity_check_paths = {
    'files': ['bin/snape-pooled', 'bin/snape-pooled-fast'],
    'dirs': [],
}

moduleclass = 'bio'
