# -*- 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 68123 2010-05-27 11:15:08Z stromnov@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            py26-shapely
version         1.2
categories      python devel
platforms       darwin
maintainers     snc openmaintainer
description     Shapely is a Python package for manipulation \
                and analysis of 2D geospatial geometries

long_description \
                Shapely is a Python package for manipulation and \
                analysis of 2D geospatial geometries. It is based on \
                GEOS (http://geos.refractions.net). Shapely 1.0 is not \
                concerned with data formats or coordinate reference \
                systems.

homepage        http://trac.gispython.org/projects/PCL/wiki/Shapely
master_sites    http://pypi.python.org/packages/source/S/Shapely/
distname        Shapely-${version}
dist_subdir     python

depends_lib-append      port:geos
depends_build-append    port:py26-distribute

checksums           md5     8898ef849a2e2441aafecce5b9ac4efa \
                    sha1    41a896b7fad8410d4c2fe5e525f3cfee47dd1988 \
                    rmd160  79abdb9e51fd4d06ea42efb50ecdb0c797d0d708

patchfiles      patch-shapely_geos.py.diff \
                patch-setup.py.diff

post-patch {
        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/shapely/geos.py
}

livecheck.url           http://pypi.python.org/packages/source/S/Shapely/
livecheck.regex         Shapely-(\\d+(\\.\\d+)+)${extract.suffix}
