# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 92559 2012-05-01 11:31:31Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pandas
version             0.7.3
revision            1
categories-append   science
license             BSD
platforms           darwin

maintainers         stromnov openmaintainer

description         Powerful data structures for data analysis and statistics

long_description    ${description}

homepage            http://pandas.sourceforge.net/
master_sites        http://pypi.python.org/packages/source/p/pandas/

distname            pandas-${version}

checksums           rmd160  dcc44a524faf983849dfddeaadd8eb63f33e0958 \
                    sha256  b770599f37fe7ee3d30755c48c8a0916e7cc4e04fbb8d531eb2536b408b05d0d

python.default_version  27
python.versions     26 27 32

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

    if {$subport == "py26-pandas" || $subport == "py27-pandas" } {
        depends_lib-append  \
                    port:py${python.version}-tables \
                    port:py${python.version}-matplotlib
    }

    post-destroot {
        # scikits/__init__.py is provided by scikits-module
        file delete ${destroot}${python.pkgd}/scikits/__init__.py
    }
}

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