# $Id: Portfile 101413 2013-01-10 19:21:05Z jmr@macports.org $

PortSystem			1.0
PortGroup			python 1.0

name				py-pyb
version				0.4
revision			1
categories-append	devel
license				GPL-2+
maintainers			nomaintainer
description			python-based ant-like build tool
long_description \
	Pyb is a build tool written in Python which emulates the style of Ant \
	using Python for build scripts instead of XML.

platforms			darwin
supported_archs		noarch

homepage			http://pyb.sf.net/
master_sites		sourceforge:pyb
distname			pyb-${version}

checksums			md5 66aee64f05f81bcae00172d143c3449b

python.versions		24

if {$subport != $name} {
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} CHANGELOG.txt README.txt \
            ${destroot}${prefix}/share/doc/${subport}
        eval file copy [glob ${worksrcpath}/docs/*] \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
