# $Id: Portfile 42397 2008-11-20 18:38:59Z landonf@macports.org $

PortSystem      1.0
PortGroup       python25 1.0

name            py25-shapely
version         1.0.11
categories      python devel
platforms       darwin
maintainers     landonf 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}

depends_lib	port:python25 \
		port:geos

checksums   md5 e936529836e2823ce777dfc44a18a9b6 \
            sha1 fd72bc7476e71d2605ae8cc05d48d1c89b916fe4 \
            rmd160 adb049b2ebd97665d146342469e87550f1f9fffb

patchfiles	patch-shapely_geos.py

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