# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           bitbucket 1.0

bitbucket.setup     fenics-project dolfin 2018.1.0
name                py-dolfin

categories-append   math science
license             LGPL-3+
platforms           darwin
maintainers         nomaintainer

description         Python interface to DOLFIN, a part of FEniCS
long_description    Python interface to DOLFIN, a library that functions as the main user interface of FEniCS

checksums           rmd160  9b1c8b3c54368d7cda0cc615d5ca16070adbbde0 \
                    sha256  2afb54e2f8a2c7be5a89e4ef224b68ae514c32168c9a94b1921d62339f8decd4 \
                    size    4835222

dist_subdir         dolfin

python.versions     36

if {${name} ne ${subport}} {
    depends_build-append \
        port:pkgconfig \
        port:pybind11 \
        port:py${python.version}-setuptools \
        path:bin/cmake:cmake

    depends_lib-append \
        port:dolfin \
        port:py${python.version}-numpy \
        port:py${python.version}-ffc \
        port:py${python.version}-ufl \
        port:py${python.version}-dijitso

    # extraction fails if worksrcdir is modified
    #worksrcdir     ${worksrcdir}/python
    configure.dir ${configure.dir}/python
    build.dir     ${build.dir}/python
}