# -*- 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 78560 2011-05-12 15:31:35Z snc@macports.org $

PortSystem      1.0
PortGroup       python25 1.0

name            py25-shapely
version         1.2.10
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
depends_build-append    port:py25-distribute

checksums           sha1    fc3e383c68cd32bb40c3eab6ecda9224fcd3d8ce \
                    rmd160  40c8c75fd2bcaf6f0435c3989285141f6ba2077b

patchfiles	patch-shapely_geos.py.diff

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