# $Id: Portfile 82542 2011-08-15 13:36:26Z mmoll@macports.org $

PortSystem 1.0
PortGroup python 1.0

set realname        MMTK
name                py-${realname}
version             2.7.4
revision            1
python.versions     25 26 27
python.default_version 27
categories          python science
maintainers         mmoll openmaintainer
description         The Molecular Modelling Toolkit is a library for molecular \
                    simulations with a focus on biomolecular systems.
long_description    $description
homepage            http://dirac.cnrs-orleans.fr/MMTK/
platforms           darwin
distname            ${realname}-${version}
master_sites        https://sourcesup.cru.fr/frs/download.php/3668/
checksums           md5     8e941ac5bb3930919697d9a781738d9c \
                    sha1    31a4b3d7469e82fc24c363d7cd1b20d425976294 \
                    rmd160  0259d428336f5717307468f8e4ebd57351bacc19
                    
if {$subport != $name} {
    depends_build       port:py${python.version}-distribute
    depends_lib         port:py${python.version}-scientific
    build.env-append    CPPFLAGS="-I${prefix}/include -I${prefix}/include/python${python.branch}"
}

livecheck.type      none

# The strings are multi-line, and hence fail (see r64144). Also, the dev
# version is really the "stable" branch, given the infrequency of updates.

# livecheck.type      regex
# livecheck.url       ${homepage}
# livecheck.regex     "Development Releases</strong>\\s*</td>\\s*<td>\\s*(\[0-9.\]+)"
