# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup python 1.0

name            py-quadtree
version         0.1.2
revision        1
license         BSD MIT
platforms       darwin
maintainers     {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description     Quadtree
long_description \
    Quadtree: \
    Whether for PCL in-memory feature stores, Plone content, or whatever \
    -- we need a simple spatial index to speed up retrieval of objects \
    that intersect with a given bounding box. \
    The simplest, most tried-and-true, open source spatial index is \
    shapelib's (http://shapelib.maptools.org) quadtree. It's been \
    improving the performance of MapServer applications for years. The \
    quadtree itself is completely separable from any shapefile. We can use \
    it with arbitrary Python object collections.

homepage        http://trac.gispython.org/projects/PCL/wiki/QuadTree
master_sites    pypi:Q/Quadtree/
distname        Quadtree-${version}
checksums       rmd160  dd32d7bca2acbd3295a407a7d3f5e40c994821d3 \
                sha256  3d6fb8575565fc0b74f57021f3e8db28e3b9623183eba42f78397b645b356630 \
                size    41900

python.versions 27

if {${name} ne ${subport}} {
    depends_build port:py${python.version}-setuptools

    # See http://trac.gispython.org/lab/ticket/110
    patchfiles      patch-quadtree-_treemodule.c.diff

    post-destroot {
        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 ${worksrcpath}/PKG-INFO \
            {*}[glob ${worksrcpath}/*.txt] \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
}
