easyblock = 'BinariesTarball'

name = 'Kent_tools'
version = '20171107'
versionsuffix = '-linux.x86_64'

homepage = 'http://genome.cse.ucsc.edu/'
description = """Kent tools: collection of tools used by the UCSC genome browser."""

toolchain = {'name': 'dummy', 'version': 'dummy'}

# download from http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/, and pack into tarball with:
#   mkdir Kent_tools
#   rsync -aP rsync://hgdownload.soe.ucsc.edu/genome/admin/exe/linux.x86_64/ Kent_tools
#   tar cfvz Kent_tools-20171107.tar.gz Kent_tools
sources = [SOURCE_TAR_GZ]

postinstallcmds = [
    "cp -a %(builddir)s/Kent_tools/blat/{blat,gfClient,gfServer} %(installdir)s/bin",
    "cp -a %(builddir)s/Kent_tools/blat/FOOTER.txt %(installdir)s/bin/FOOTER_blat.txt",
]

sanity_check_paths = {
    'files': ['bin/FOOTER', 'bin/blat', 'bin/getRna', 'bin/liftOver', 'bin/mafGene', 'bin/splitFile', 'bin/twoBitToFa'],
    'dirs': [],
}

moduleclass = 'bio'
