# -*- 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               github 1.0
PortGroup               python 1.0

github.setup            sfepy sfepy 2014.3 release_
name                    py-sfepy
revision                1

categories-append       science
platforms               darwin
license                 BSD
maintainers             nomaintainer

description             Simple finite elements in Python
long_description        SfePy is a software for solving systems of coupled partial differential equations (PDEs) by the finite element \
                        method in 2D and 3D. It can be viewed both as black-box PDE solver, and as a Python package which can be used \
                        for building custom applications. The word "simple" means that complex FEM problems can be coded very easily \
                        and rapidly.

homepage                http://sfepy.org/doc-devel/index.html

distname                sfepy-${version}
worksrcdir              ${distname}

checksums               rmd160  fd925d8866ebcae5d5d5a92a44edb6206f9e1d3a \
                        sha256  42b10f3c4b32ff811becef88cfeb76519f492a34d905ee83ca8b91d99357f637

python.versions         27

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-cython
    depends_lib-append  port:gmsh \
                        port:py${python.version}-ipython \
                        port:py${python.version}-matplotlib \
                        port:py${python.version}-mayavi \
                        port:py${python.version}-numpy \
                        port:py${python.version}-parsing \
                        port:py${python.version}-pexpect \
                        port:py${python.version}-pysparse \
                        port:py${python.version}-scipy \
                        port:py${python.version}-sphinx \
                        port:py${python.version}-sympy \
                        port:py${python.version}-tables \
                        port:py${python.version}-scikit-umfpack \
                        port:swig-python

    build.env-append    MPLCONFIGDIR=${worksrcpath}
    livecheck.type      none
} else {
    livecheck.type  regex
    livecheck.url   ${homepage}
    livecheck.regex {sfepy-([0-9\.]+)\.tar\.gz}
}

