# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 66481 2010-04-14 12:11:20Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-rtree
version             0.6.0
categories          python devel
platforms           darwin
maintainers         stromnov openmaintainer

description         R-Tree spatial index for Python GIS

long_description    Rtree is a Python library that uses ctypes and an  \
                    internally built C API to wrap libspatialindex and \
                    provide very flexible spatial indexing.

homepage            http://trac.gispython.org/lab/wiki/Rtree
master_sites        http://pypi.python.org/packages/source/R/Rtree/
distname            Rtree-${version}

depends_lib-append  port:spatialindex

depends_build-append \
                    port:py26-distribute

checksums           md5     5edbb1bd9923fcaeae05a678fd74c9a1 \
                    sha1    1564ee6051767481f5acd8f5e09547f709ebe06a \
                    rmd160  5251d9c823ccc585ed441ab59d3ad67344ad989f

patchfiles          patch-rtree_core.py.diff

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