# -*- 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 118343 2014-03-31 16:55:19Z aronnax@macports.org $

PortSystem          1.0
PortGroup           python 1.0

set realname        acor
name                py-${realname}
version             1.1.0
maintainers         aronnax openmaintainer

categories-append   science math
description         estimate the autocorrelation time of time-series data quickly
long_description    This is a direct port of a C++ routine by Jonathan Goodman \
                    (NYU) called ACOR that estimates the autocorrelation time \
                    of time series data very quickly.
homepage            http://pypi.python.org/pypi/${realname}/
master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/
distname            ${realname}-${version}

platforms           darwin
license             MIT

checksums           md5     3f44b8d440d039de1bbfe8ba76b878de \
                    rmd160  a08143adb766fe81aa1de6cf69575fc95df3bb4d \
                    sha256  f02201767b78439fb15cb582bfcd3bb6ada43ff7346f4949f0ba143b1bffa5d8

python.versions     26 27 32 33

if {${name} eq ${subport}} {
    livecheck.type  regex
    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
} else {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-numpy

    livecheck.type  none
}
