name = 'DOLFIN'
version = '1.0.0'

homepage = 'https://launchpad.net/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': 'goalf', 'version': '1.1.0-no-OFED'}
toolchainopts = {'usempi': True, 'pic': True, 'packed-linker-options': False}

majver = version.split('.')
if majver[0] == '0':
    majver = majver[0]
else:
    majver = '.'.join(majver[0:2])

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['https://launchpad.net/%s/%s.x/%s/+download' % (name.lower(), majver, version)]

patches = [
    'wl_pkg_linkflags.patch',
    'petsc-slepc-libs.patch'
]

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

python = 'Python'
python_version = '2.7.3'
versionsuffix = '-%s-%s' % (python, python_version)

dependencies = [
    (python, python_version),
    ('Boost', '1.49.0', versionsuffix),
    ('UFC', '2.0.5', versionsuffix),
    ('SWIG', '2.0.4', versionsuffix),
    ('FFC', '1.0.0', versionsuffix),
    ('FIAT', '1.0.0', versionsuffix),
    ('Instant', '1.0.0', versionsuffix),
    ('Viper', '1.0.0', versionsuffix),
    ('UFL', '1.0.0', versionsuffix),
    ('SCOTCH', '5.1.12b_esmumps'),
    ('Armadillo', '2.4.4', versionsuffix),
    ('ParMETIS', '4.0.2'),
    ('SuiteSparse', '3.7.0', '-withparmetis'),
    ('CGAL', '4.0', versionsuffix),
    ('PETSc', '3.3-p2', versionsuffix),
    ('SLEPc', '3.3-p1', versionsuffix),
    ('MTL4', '4.0.8878', '', True),
    ('Trilinos', '10.12.2', versionsuffix),
    ('Sphinx', '1.1.3', versionsuffix),
    ('zlib', '1.2.7'),
    ('libxml2', '2.8.0')
]

moduleclass = 'math'
