# $Id: Portfile,v 1.3 2004/05/30 17:56:05 mww Exp $

PortSystem 1.0
PortGroup python 1.0

name		py-gdbm
version		2.3.4
categories	python databases
platforms	darwin
maintainers	mww@opendarwin.org
description	Python bindings to the GNU dbm library
long_description	${description}

homepage	http://www.python.org/doc/current/lib/module-gdbm.html
master_sites	http://www.python.org/ftp/python/${version}/
distname	Python-${version}
dist_subdir	python23
checksums	md5 a2c089faa2726c142419c03472fc4063
use_bzip2	yes

depends_lib-append	lib:libgdbm:gdbm

worksrcdir	${worksrcdir}/Modules

extract.post_args       "| tar -xf - ${distname}/Modules/gdbmmodule.c"
post-extract {
	file copy	${filespath}/setup.py ${worksrcpath}
}

patch	{
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}
