# -*- 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 120328 2014-05-23 13:58:12Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-fiona
version             1.1.5
revision            0
categories-append   gis
platforms           darwin
license             BSD

python.versions     27 33 34

maintainers         stromnov openmaintainer

description         OGR's neat, nimble, no-nonsense API for Python programmers.

long_description    Fiona provides uncomplicated Python interfaces \
                    to functions in OGR, the best open source C/C++ \
                    library for reading and writing geographic vector data.

homepage            http://github.com/Toblerity/Fiona
master_sites        http://pypi.python.org/packages/source/F/Fiona/

distname            Fiona-${version}

checksums           rmd160  276783e08a881bcf537895c0f99816ed58149f64 \
                    sha256  be0113f47c46cb44656b8e431e31ed37f1a875af0dc9081c92c4dcf5916f6670

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

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