##
# 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>
# License::   MIT/GPL
#
##

name = 'BLAT'
version = '3.5'

homepage = 'http://genome.ucsc.edu/FAQ/FAQblat.html'
description = "BLAT on DNA is designed to quickly find sequences of 95% and greater similarity of length 25 bases or more."

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

sources = ['%%(namelower)sSrc%s.zip' % ''.join(version.split('.'))]
source_urls = ['http://users.soe.ucsc.edu/~kent/src']

local_libpng = 'local_libpng'
local_libpng_ver = '1.6.9'
versionsuffix = '-%s-%s' % (local_libpng, local_libpng_ver)

dependencies = [(local_libpng, local_libpng_ver)]

buildopts = 'CC="$CC" COPT= L="$LIBS"'

files_to_copy = [
    "bin",
    "blat",
    "gfClient",
    "gfServer",
    "hg",
    "inc",
    "jkOwnLib",
    "lib",
    "utils",
    "webBlat"]

sanity_check_paths = {
    'files': [
        "bin/%s" %
        x for x in [
            'blat',
            'faToNib',
            'faToTwoBit',
            'gfClient',
            'gfServer',
            'nibFrag',
            'pslPretty',
            'pslReps',
            'pslSort',
            'twoBitInfo',
            'twoBitToFa']],
    'dirs': files_to_copy,
}

moduleclass = 'bio'
