# $Id: Portfile 49671 2009-04-15 06:08:23Z blb@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-geoip
version			1.2.4
categories		python net
platforms		darwin
maintainers		nomaintainer
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     50f820d854476efaf3b7af733ffe4236 \
				sha1    53db51c86cff1c0106cbaa02ad32bd589a150bfc \
				rmd160  9504be23b9abc4939893076e766beb70f78cb00b

depends_lib-append	port: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
}
