# -*- 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 120057 2014-05-14 21:16:32Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     26 27 32 33 34

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  30a6570b66aa681ba5360c94dcdcc2bc83d0a0f1 \
                    sha256  f0a980510239f685ebaf4dbc8c9f0e55ac964312e0d11c551208c250d22cc64b

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-numpy

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {Bottleneck-(\d+(?:\.\d+)*)\.[tz]}
}
