# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild

easyblock = 'ConfigureMake'

name = 'bcl2fastq2'
version = '2.19.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://support.illumina.com/sequencing/sequencing_software/bcl2fastq-conversion-software.html'
description = """bcl2fastq Conversion Software both demultiplexes data and converts BCL files generated by
 Illumina sequencing systems to standard FASTQ file formats for downstream analysis."""

toolchain = {'name': 'foss', 'version': '2016b'}

source_urls = ['ftp://webdata2:webdata2@ussd-ftp.illumina.com/downloads/software/bcl2fastq/']
sources = [{
    'filename': '%(name)s-v%(version)s-tar.zip',
    'extract_cmd': 'unzip -p %s | tar -xzvf -',  # source file is a .zip that contains a .tar.gz
}]

checksums = ['cf13580f2c1ebcc3642b4d98a02ad01e41a44e644db7d31730f9767b25521806']

start_dir = 'src'
configopts = '--force-builddir'

dependencies = [
    ('Boost', '1.54.0', versionsuffix),
    ('Python', '2.7.12'),
]

sanity_check_paths = {
    'files': ['bin/bcl2fastq'],
    'dirs': ['lib']
}

moduleclass = 'bio'
