# -*- 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 107151 2013-06-19 21:01:12Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-bottleneck
version             0.6.0
revision            0
categories-append   math
platforms           darwin
license             BSD

python.versions     26 27 31 32 33

maintainers         stromnov openmaintainer

description         Fast NumPy array functions written in Cython

long_description    Bottleneck is a set of NumPy ufuncs rewritten in \
                    Cython to boost performance. The collection contains \
                    mainly operations dealing with NaN and sliding windows.

homepage            http://berkeleyanalytics.com/bottleneck
master_sites        http://pypi.python.org/packages/source/B/Bottleneck

distname            Bottleneck-${version}

checksums           rmd160  4f7163a98610d44da269d346e41245cad9c7f8bd \
                    sha256  eddfdc0492e7b0d2749d4a8861503186446d09d73f3eeb3f064a80313ded2f65

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

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