# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pywavelets
version             0.2.2
revision            0
categories-append   science math
platforms           darwin
license             MIT

python.versions     26 27

maintainers         jameskyle openmaintainer

description         PyWavelets is a Python wavelet transforms module
long_description    ${description}.

homepage            http://pypi.python.org/pypi/PyWavelets/
master_sites        http://pypi.python.org/packages/source/P/PyWavelets/

distname            PyWavelets-${version}

use_zip             yes

checksums           rmd160  ae4ce162fbe1cdc0ee267388b7213e3a2a2c31d8 \
                    sha256  04b53436f5f2a9b895a1f56e86e16b94632a5d6bcfc076be1110e41cf3071278

if {$subport != $name} {
    depends_build-append \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-cython

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "PyWavelets-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
