# IT4Innovations 2018

name = 'Boost'
version = '1.70.0'
versionsuffix = '-Py-3.7'

homepage = 'http://www.boost.org/'
description = """Boost provides free peer-reviewed portable C++ source libraries."""

toolchain = {'name': 'gompi', 'version': '2019b'}
toolchainopts = {'pic': True, 'usempi': True}

source_urls = [SOURCEFORGE_SOURCE]

sources = ['%%(namelower)s_%s.tar.gz' % '_'.join(version.split('.'))]
patches = ['Boost-1.65.1_fix-Python3.patch']

dependencies = [
    ('OpenMPI', '3.1.5', '', ('GCCcore', '8.3.0')),
    ('bzip2', '1.0.6', '', True),
    ('zlib', '1.2.11', '', True),
    ('Py', '3.7', '', True)
]

configopts = '--with-python=$EBROOTPYTHON/bin/python'

# also build boost_mpi
boost_mpi = True

moduleclass = 'devel'
