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

homepage = 'http://www.mpiblast.org/'
description = """mpiBLAST is a freely available, open-source, parallel implementation of NCBI BLAST.
 By efficiently utilizing distributed computational resources through database fragmentation,
 query segmentation, intelligent scheduling, and parallel I/O, mpiBLAST improves NCBI BLAST
 performance by several orders of magnitude while scaling to hundreds of processors.
 mpiBLAST is also portable across many different platforms and operating systems."""

toolchain = {'version': '4.0.6', 'name': 'ictce'}
toolchainopts = {'pic': True, 'usempi': True}

# eg. http://www.mpiblast.org/downloads/files/mpiBLAST-1.6.0.tgz
sources = ['mpiBLAST-%s.tgz' % version]
source_urls = ['http://www.mpiblast.org/downloads/files/']

patches = ['mpiBLAST_disable-ncbi-X11-apps.patch']

buildopts = 'ncbi all'

sanity_check_paths = {
    'files': ["bin/mpiblast"],
    'dirs': []
}

parallel = 1

moduleclass = 'bio'
