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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           bitbucket 1.0

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

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

description         FInite element Automatic Tabulator
long_description    The FInite element Automatic Tabulator FIAT supports \
                    generation of arbitrary order instances of the Lagrange \
                    elements on lines, triangles, and tetrahedra. It is \
                    also capable of generating arbitrary order instances of \
                    Jacobi-type quadrature rules on the same element shapes. \
                    Further, H(div) and H(curl) conforming finite element \
                    spaces such as the families of Raviart-Thomas, \
                    Brezzi-Douglas-Marini and Nedelec are supported on \
                    triangles and tetrahedra.

checksums           rmd160  da50a1397c412f823fad35835f685d81b73e129a \
                    sha256  b21ae8c040eb0c129629569110cc1426f458aa237c4f590e7f5a781dce3238ef \
                    size    105308

python.versions     36 37 38
python.link_binaries_suffix

if {${subport} ne ${name}} {
    depends_lib     port:py${python.version}-numpy \
                    port:py${python.version}-sympy

    # see https://bitbucket.org/fenics-project/fiat/commits/8ceb29a3b9b14668b9d387321a3f8f4126f9a159
    patchfiles-append   patch-sympy.diff

    livecheck.type  none
}
