# -*- 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
# $Id: Portfile 119388 2014-04-24 20:37:52Z mf2k@macports.org $

PortSystem              1.0

PortGroup               github 1.0
PortGroup               python 1.0

github.setup            sfepy sfepy 2013.4 release_
name                    py-sfepy

categories-append       science
platforms               darwin
license                 BSD
maintainers             mf2k openmaintainer

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  32f9903410c97167eb7582f5ff09bd2e92325ec8 \
                        sha256  d0932e822ae9e3fa415471cb5eb1e8180037950adc3869337810680beb328b4d

python.versions         26 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:SuiteSparse \
                        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}
}

