##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2014 Cyprus Institute / CaSToRC, Uni.Lu/LCSB, NTUA
# Authors::   George Tsouloupas <g.tsouloupas@cyi.ac.cy>, Fotis Georgatos <fotis@cern.ch>, Kenneth Hoste (UGent)
# License::   MIT/GPL
# $Id$
#
# This work implements a part of the HPCBIOS project and is a component of the policy:
# http://hpcbios.readthedocs.org/en/latest/HPCBIOS_2012-94.html
##

easyblock = 'MakeCp'

name = 'PAML'
version = '4.7'

homepage = 'http://abacus.gene.ucl.ac.uk/software/paml.html'
description = """PAML is a package of programs for phylogenetic 
 analyses of DNA or protein sequences using maximum likelihood."""

toolchain = {'name': 'ictce', 'version': '5.3.0'}
toolchainopts = {'optarch': False}

# eg. http://abacus.gene.ucl.ac.uk/software/paml4.7.tgz
sources = ['%(namelower)s%(version)s.tgz']
source_urls = ['http://abacus.gene.ucl.ac.uk/software/']

buildopts = 'CC="$CC" CFLAGS="$CFLAGS"'

start_dir = 'src'
files_to_copy = [(["baseml", "basemlg", "codeml", "pamp", "evolver", "yn00", "chi2"], 'bin')]

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

moduleclass = 'bio'
