easyblock = 'MakeCp'

name = 'SaguaroGW'
version = '20150315'

homepage = 'http://sourceforge.net/projects/saguarogw/'
description = """Saguaro Genome-Wide is a program to detect signatures of selection within populations, strains,
 or species. It takes SNPs or nucleotides as input, and creates statistical local phylogenies for each region in
the genome."""

toolchain = {'name': 'intel', 'version': '2015a'}
toolchainopts = {'openmp': True}

# SVN revision r29, download via http://sourceforge.net/p/saguarogw/code/29/tree/ ('Download Snapshot' link)
sources = ['%(namelower)s-code-29.zip']

patches = ['SaguaroGW_icpc-drop-const.patch']

buildopts = 'CPLUSPLUS="$CXX" CC="$CC" OPEN_MP=yes'

files_to_copy = [(['checkLock', 'CactiCorrelate', 'ChromoPaintCacti', 'ClusterCacti', 'Fasta2HMMFeature',
                   'Genotype2HMMFeature', 'FilterCacti', 'HMMClassify', 'HMMTrain', 'HeatMaps', 'LocalTrees',
                   'Maf2HMMFeature', 'PullFromFasta', 'Saguaro', 'Saguaro2Phylip', 'VCF2HMMFeature'], 'bin')]

sanity_check_paths = {
    'files': [],
    'dirs': ['bin'],
}

moduleclass = 'bio'
