# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics

easyblock = 'MakeCp'

name = 'Platanus'
version = '1.2.4'

homepage = 'http://platanus.bio.titech.ac.jp/'
description = """PLATform for Assembling NUcleotide Sequences"""

toolchain = {'name': 'goolf', 'version': '1.7.20'}
toolchainopts = {'openmp': True}

# the download cannot be automated because it points to a PHP form
# http://platanus.bio.titech.ac.jp/?ddownload=150
sources = ['%(name)s_v%(version)s.tar.gz']

buildopts = 'CXX="$CXX"'

files_to_copy = [(["platanus"], 'bin'), "README", "LICENSE"]

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

moduleclass = 'bio'