easyblock = 'MakeCp'

name = 'ea-utils'
version = '27a4809'

homepage = 'https://code.google.com/p/ea-utils/'
description = """Command-line tools for processing biological sequencing data.
Barcode demultiplexing, adapter trimming, etc.

Primarily written to support an Illumina based pipeline - 
but should work with any FASTQs."""

toolchain = {'name': 'foss', 'version': '2016a'}
toolchainopts = {'optarch': True, 'pic': True}

source_urls = ['https://github.com/ExpressionAnalysis/%(name)s/tarball/master']
sources = [SOURCE_TGZ]

checksums = ['45eef4b040f83abe2c9f51d4a7d18271']

start_dir = 'clipper'

prebuildopts = "sed -i 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS) -I./' Makefile && PREFIX=%(installdir)s "
buildopts = 'fastq-mcf fastq-multx fastq-join fastq-stats fastq-clipper sam-stats varcall'

builddependencies = [
    ('Perl', '5.22.1'),
]

dependencies = [
    ('GSL', '2.1'),
]

files_to_copy = [([
    'fastq-mcf', 'fastq-multx', 'fastq-join', 'fastq-stats', 'fastq-clipper', 
    'sam-stats', 'varcall', 'randomFQ', 'alc', 'determine-phred'], 'bin'
)]


sanity_check_paths = {
    'files': [
        'bin/fastq-mcf', 'bin/fastq-multx', 'bin/fastq-join', 'bin/fastq-stats', 
        'bin/fastq-clipper', 'bin/sam-stats', 'bin/varcall'
    ],
    'dirs': []
}

moduleclass = 'bio'