##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
# Authors::   Fotis Georgatos <fotis@cern.ch>
# 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 = 'ConfigureMake'

name = 'NCBI-Toolkit'
version = '9.0.0'

homepage = 'http://www.ncbi.nlm.nih.gov/toolkit'
description = """The NCBI Toolkit is a collection of utilities developed for the
  production and distribution of GenBank, Entrez, BLAST, and related services
  by the National Center for Biotechnology Information."""
toolchain = {'name': 'goolf', 'version': '1.4.10'}

# eg. ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/ARCHIVE/9_0_0/ncbi_cxx--9_0_0.tar.gz
src_ver = '_'.join(version.split('.'))
sources = ['ncbi_cxx--%s.tar.gz' % src_ver]
source_urls = ['ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/ARCHIVE/%s' % src_ver]

patches = ['NCBI-Toolkit_make-install-fix.patch']

dependencies = [('Boost', '1.51.0')]

configopts = '--with-boost=$EBROOTBOOST --with-64 --with-bin-release --without-debug --with-mt'

sanity_check_paths = {
    'files': ["bin/blastn", "bin/blastp", "bin/blastx"],
    'dirs': []
}

moduleclass = 'bio'
