# $Id: Portfile,v 1.4 2004/12/30 15:22:49 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-geoip
version			1.2.0
revision		1
categories		python net
platforms		darwin
maintainers		mww@opendarwin.org
description		Python module for accessing the GeoIP C library
long_description	${description}

homepage		http://www.maxmind.com/app/python
master_sites	http://www.maxmind.com/download/geoip/api/python/
distname		GeoIP-Python-${version}
checksums		md5 ec40f604fb64971035b1ab72866d8fc1

depends_lib-append	lib:libGeoIP:libgeoip

build.env		CFLAGS=-I${prefix}/include \
				LDFLAGS=-L${prefix}/lib

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} test.py test_city.py test_org.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
