easyblock = 'CMakeMake'

name = 'MySQL'
version = '5.6.26'
versionsuffix = '-clientonly'

homepage = 'http://www.mysql.com/'
description = """MySQL is (as of March 2014) the world's second most widely used
 open-source relational database management system (RDBMS)."""

source_urls = ['http://dev.mysql.com/get/Downloads/MySQL-%(version_major_minor)s/']
sources = [SOURCELOWER_TAR_GZ]

toolchain = {'name': 'GNU', 'version': '4.9.3-2.25'}

dependencies = [
    ('libevent', '2.0.22'),
    ('ncurses', '5.9'),
    ('libedit', '20150325'),
    ('zlib', '1.2.8'),
    #    ('OpenSSL', '1.0.1p'),  # OS dependency should be preferred for security reasons
]

osdependencies = [('openssl-devel', 'libssl-dev', 'libopenssl-devel')]

builddependencies = [
    ('CMake', '3.3.2'),
]

configopts = "-DWITHOUT_SERVER=ON -DWITH_EDITLINE=system"

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

moduleclass = 'devel'
