# -*- 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 89720 2012-02-08 09:34:30Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-carray
version             0.4
revision            0
categories-append   devel
license             MIT
platforms           darwin

maintainers         stromnov openmaintainer

description         A chunked data container that can be compressed in-memory.

long_description    carray is a chunked container for numerical data. \
                    Chunking allows for efficient enlarging/shrinking \
                    of data container.  In addition, it can also be \
                    compressed for reducing memory needs. The compression \
                    process is carried out internally by Blosc, \
                    a high-performance compressor that is optimized \
                    for binary data.

homepage            https://github.com/FrancescAlted/carray
master_sites        http://carray.pytables.org/download/stable/

distname            carray-${version}

checksums           rmd160  9bd5dc509f31dc0735d0a34c3c869f9c57142ff5 \
                    sha256  a6a67c63544723a43de01917749edb005983cb1f3b4b21d0264df28c63a1b5f9

python.default_version  27
python.versions     26 27

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

    # Remove --no-user-cfg
    build.cmd           ${python.bin} setup.py
    destroot.cmd        ${python.bin} setup.py
}

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