easyblock = 'PerlModule'

name = 'DBD-mysql'
version = '4.032'

homepage = 'http://search.cpan.org/~capttofu/DBD-mysql-%(version)s/'
description = """Perl binding for MySQL"""

toolchain = {'name': 'intel', 'version': '2015b'}

source_urls = ['http://cpan.metacpan.org/authors/id/C/CA/CAPTTOFU/']
sources = [SOURCE_TAR_GZ]

perl = 'Perl'
perlver = '5.20.3'
versionsuffix = '-%s-%s' % (perl, perlver)

dependencies = [
    (perl, perlver),
    ('MySQL', '5.6.26', '-clientonly', ('GNU', '4.9.3-2.25')),
]

options = {'modulename': 'DBD::mysql'}

perlmajver = perlver.split('.')[0]
sanity_check_paths = {
    'files': ['lib/perl%s/site_perl/%s/x86_64-linux-thread-multi/DBD/mysql.pm' % (perlmajver, perlver)],
    'dirs': ['lib/perl%s/site_perl/%s/x86_64-linux-thread-multi/DBD/mysql' % (perlmajver, perlver)],
}

moduleclass = 'data'
