# -*- 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 118484 2014-04-03 07:01:53Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-rasterio
version             0.8
revision            0
categories-append   gis
platforms           darwin
license             BSD

python.versions     27 33 34

maintainers         stromnov openmaintainer

description         Fast and direct raster I/O for Python programmers who use Numpy
long_description    ${description}

homepage            https://github.com/sgillies/rasterio
master_sites        http://pypi.python.org/packages/source/r/rasterio/

distname            rasterio-${version}

checksums           rmd160  ac9e0cc6c4844fadee42a54403f37c714ae58dfc \
                    sha256  1e35beb2ef137f6d42f70cb054a14ae4cd65f8fc939c424fa45a3c79a2c4d231

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

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