##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
# Authors::   Cedric Laczny <cedric.laczny@uni.lu>, 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 = 'FASTX-Toolkit'
version = '0.0.13.2'

homepage = 'http://hannonlab.cshl.edu/fastx_toolkit/'
description = """The FASTX-Toolkit is a collection of command line tools
for Short-Reads FASTA/FASTQ files preprocessing."""


toolchain = {'name': 'ictce', 'version': '5.3.0'}
toolchainopts = {'optarch': True, 'pic': True}

altname = '_'.join(name.split('-')).lower()
sources = ['%s-%s.tar.bz2' % (altname, version)]
source_urls = ['http://hannonlab.cshl.edu/%s' % altname]

dependencies = [('libgtextutils', '0.6.1')]

configopts = '--disable-wall'  # avoid use of -Werror

sanity_check_paths = {
    'files': ['bin/fastx_%s' % x for x in ['clipper', 'trimmer', 'quality_stats',
                                           'artifacts_filter', 'reverse_complement',
                                           'collapser', 'uncollapser', 'renamer',
                                           'barcode_splitter.pl', 'nucleotide_distribution_graph.sh',
                                           'nucleotide_distribution_line_graph.sh']] +
             ['bin/fasta_%s' % x for x in ['clipping_histogram.pl', 'formatter',
                                           'nucleotide_changer']] +
             ['bin/fastq_%s' % x for x in ['quality_boxplot_graph.sh', 'quality_converter',
                                           'to_fasta', 'quality_filter', 'quality_trimmer',
                                           'masker']],
    'dirs': ['.']
}

moduleclass = 'bio'
