# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'bcl2fastq2'
version = '2.20.0'
versionsuffix = '-Py-2.7'

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': 'intel', 'version': '2017a'}

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

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

builddependencies = [
    ('CMake', '3.8.1', '', True),
]

dependencies = [
    ('Py', '2.7', '', True),
]

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

moduleclass = 'bio'
