# -*- 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

name                py-fipy
version             3.1
categories-append   math
platforms           darwin
supported_archs     noarch
maintainers         {gmail.com:jjstickel @jjstickel} openmaintainer
license             public-domain

description         FiPy: A Finite Volume PDE Solver Using Python
long_description    FiPy is an object oriented, partial differential \
                    equation (PDE) solver, written in Python, based on \
                    a standard finite volume (FV) approach. Uses matplotlib \
                    for viewing.

homepage            http://www.ctcms.nist.gov/fipy/
master_sites        http://www.ctcms.nist.gov/fipy/download/
distname            FiPy-${version}

checksums           rmd160  19891efaf2371fce3baa0acf0f4360116d7dc854 \
                    sha256  54a4bc2ed6562bd402890ddd257220cf092438db1941427035412813415bd0c7

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools \
                            port:py${python.version}-ez_setup
    depends_lib-append  port:py${python.version}-numpy \
                        port:py${python.version}-matplotlib \
                        port:py${python.version}-pysparse \
                        port:py${python.version}-scipy \
                        port:py${python.version}-ipython \
                        port:gmsh

    post-destroot {
        # Fix permissions problems on these files
        xinstall -m 0644 -W ${worksrcpath}/FiPy.egg-info PKG-INFO SOURCES.txt dependency_links.txt entry_points.txt top_level.txt \
            ${destroot}${python.pkgd}/FiPy-${version}-py${python.branch}.egg-info
    }
    livecheck.type      none
} else {
    livecheck.regex     FiPy-(\[0-9.\]+)${extract.suffix}
}