# -*- 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 119604 2014-05-02 09:12:57Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           bitbucket 1.0

bitbucket.setup     fenics-project ffc 1.3.0 ffc-
name                py-ffc
revision            1

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

description         FEniCS Form Compiler
long_description    FFC works as a compiler for multilinear forms by generating \
                    code (C or C++) for the evaluation of a multilinear form given \
                    in mathematical notation. This new approach to form evaluation \
                    makes it possible to combine generality with efficiency, the \
                    form can be given in mathematical notation and the generated \
                    code is as efficient as hand-optimized code.

checksums           rmd160  3729cfa40985720b44c7de51b7faaedad54c2e78 \
                    sha256  1b7ff5a5aa78a5541d53dca8ae90b2a1c63d2790788cbcee14d53a5a3850c1d4

python.versions     27
python.link_binaries_suffix

if {${subport} ne ${name}} {
   depends_lib      port:py${python.version}-fiat \
                    port:py${python.version}-ufl \
                    port:py${python.version}-ferari \
                    port:py${python.version}-instant \
                    port:ufc

    livecheck.type  none
}
