##
# 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': 'goolf', 'version': '1.4.10'}

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

dependencies = [('libpng', '1.6.2')]

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'
