# $Id: Portfile,v 1.3 2004/12/31 18:05:51 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-config
version			1.2
revision		1
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		alternative ConfigParser module for python
long_description	powerful alternative to the ConfigParser module \
				already available in the standard Python.

homepage		http://config-py.sourceforge.net/
master_sites	sourceforge:config-py
distname		config-py-1-2
checksums		md5 0deb5f48cb3c3f1067f347b8093a1f78
use_zip			yes

worksrcdir

post-extract	{
	file copy ${filespath}/setup.py ${worksrcpath}
	reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} readme.txt \
		${destroot}${prefix}/share/doc/${name}
}
