# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-config
version			1.2
revision		1
license			MIT
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
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-[string map {. -} ${version}]
checksums		md5 0deb5f48cb3c3f1067f347b8093a1f78

python.versions	24

if {${name} ne ${subport}} {
    use_zip			yes
    extract.mkdir	yes

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

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