# -*- 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 106382 2013-05-24 15:06:29Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-blosc
version             1.1
revision            0
categories-append   devel
platforms           darwin
license             MIT

python.versions     26 27 31 32 33

maintainers         stromnov openmaintainer

description         Python package that wraps the Blosc compressor

long_description    Blosc (http://blosc.pytables.org) is a high performance \
                    compressor optimized for binary data.  It has been \
                    designed to transmit data to the processor cache faster \
                    than the traditional, non-compressed, direct memory fetch \
                    approach via a memcpy() OS call. \
                    \
                    Blosc works well for compressing numerical arrays that \
                    contains data with relatively low entropy, like sparse \
                    data, time series, grids with regular-spaced values, etc. \
                    \
                    This is a Python package that wraps it.

homepage            http://blosc.pytables.org/
master_sites        http://pypi.python.org/packages/source/b/blosc/

distname            blosc-${version}

checksums           rmd160  fc83220497cbe2e8f9df75348c6499317749759f \
                    sha256  3f521bd2711e259ca8bb85c6bb15085cec75545346935712654f45c48e45e1be

if {$subport != $name} {
    depends_lib-append  port:blosc

    build.args-append   --blosc=${prefix}

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