# IT4Innovations 2020
# LK

easyblock = 'CMakeMake'

name = 'DOLFIN'
version = '2019.1.0'
versionsuffix = '-Py-3.7'

homepage = 'https://bitbucket.org/fenics-project/dolfin'
description = """DOLFIN is the C++/Python interface of FEniCS, providing a consistent PSE
  (Problem Solving Environment) for ordinary and partial differential equations."""

toolchain = {'name': 'intel', 'version': '2020a'}
toolchainopts = {'usempi': True, 'pic': True, 'packed-linker-options': True, 'openmp': True}

source_urls = ['https://bitbucket.org/fenics-project/dolfin/downloads/']
sources = [SOURCELOWER_TAR_GZ]

builddependencies = [
    ('CMake', '3.16.2', '', True),
#    ('pkg-config', '0.29.2', '', True),
#    ('PatchELF', '0.9', '', True),
#    ('pybind11', '2.4.3', versionsuffix, True),
]
dependencies = [
    ('Py', '3.7', '', True),
    ('Boost', '1.72.0', versionsuffix),
    ('FFC', '2019.1.0', versionsuffix),
    ('FIAT', '2019.1.0', versionsuffix),
    ('UFL', '2019.1.0', versionsuffix),
#    ('SCOTCH', '6.0.9'),
#    ('SuiteSparse', '5.6.0', '-METIS-5.1.0'),
#    ('CGAL', '4.11.1'),
#    ('PETSc', '3.12.4'),
#    ('SLEPc', '3.12.2'),
#    ('HDF5', '1.10.6'),
#    ('Trilinos', '12.12.1', versionsuffix),
    ('zlib', '1.2.11', '', True),
    ('libxml2', '2.9.9', '', True),
    ('Eigen', '3.3.7', '', True),
#    ('PLY', '3.11', versionsuffix),
#    ('VTK', '8.1.0', versionsuffix),
#    ('petsc4py', '3.12.0', versionsuffix, True),
#    ('slepc4py', '3.12.0', versionsuffix, True),
#    ('SUNDIALS', '2.7.0'),
#    ('ParMETIS', '4.0.3'),
]

# demos run as tests fail with 'bad X server connection', skipping for now
#runtest = False

moduleclass = 'math'
