# -*- 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 106271 2013-05-21 00:14:36Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-nmrglue
set internal_name   nmrglue

version             0.4

categories-append   science
maintainers         gmail.com:michelle.lynn.gill openmaintainer
platforms           darwin
license             BSD

description         A module for working with NMR data in Python
long_description    nmrglue is a module for working with NMR data in Python. \
                    When used with the Numpy, Scipy, and matplotlib packages \
                    nmrglue provides a robust interpreted environment for processing, \
                    analysing, and inspecting NMR data.

homepage            http://code.google.com/p/nmrglue/

master_sites        http://nmrglue.googlecode.com/files/
distname            ${internal_name}-${version}-corrected
worksrcdir          ${internal_name}-${version}
supported_archs     noarch

checksums           rmd160  37ce92304515f9d05de4b59c03c69748e453d8cd \
                    sha256  85c45750aef431f2c1326a9f4856eeac4da8aedbc94c6255de6e08e3ea35f316

python.versions     26 27

if {$subport != $name} {
    depends_lib-append  port:py${python.version}-scipy \
                        port:py${python.version}-numpy

    livecheck.type  none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     ${internal_name}-(\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz
}
