##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2013 The Cyprus Institute
# Authors::   Andreas Panteli <a.panteli@cyi.ac.cy>, Thekla Loizou <t.loizou@cyi.ac.cy>, George Tsouloupas <g.tsouloupas@cyi.ac.cy>
# License::   MIT/GPL
#
##
easyblock = 'MakeCp'

name = "FASTA"
version = "36.3.5e"

homepage = 'http://fasta.bioch.virginia.edu'
description = """The FASTA programs find regions of local or global (new) similarity between 
protein or DNA sequences, either by searching Protein or DNA databases, or by identifying 
local duplications within a sequence."""

toolchain = {'name': 'ictce', 'version': '5.3.0'}

source_urls = ['http://faculty.virginia.edu/wrpearson/fasta/fasta36']
sources = [SOURCELOWER_TAR_GZ]

buildopts = '-C ./src -f ../make/Makefile.linux_sse2 all'

files_to_copy = ["bin", "conf", "data", "doc", "FASTA_LIST", "misc", "README", "seq", "sql", "test"]

sanity_check_paths = {
    'files': ["FASTA_LIST", "README"] + ['bin/%s' % x for x in ['lav2svg', 'lav2ps', 'map_db']] +
             ['bin/%s%%(version_major)s' % x for x in ['fasta', 'fastm', 'fastx', 'ggsearch', 'lalign', 'tfastf',
                                                       'tfasts', 'tfasty', 'fastf', 'fasts', 'fasty', 'glsearch',
                                                       'ssearch', 'tfastm', 'tfastx']],
    'dirs': ["conf", "data", "doc", "misc", "seq", "sql", "test"]
}

moduleclass = 'bio'
