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

PortSystem 1.0
PortGroup python 1.0

name			py-make
version			0.9
revision		1
categories-append	devel
license			Permissive
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		make replacement for use with python
long_description	pymake is a simple make replacement which allows the \
				specification  of file dependency graphs within \
				Python. With it, you can perform  conditional \
				complilation of source code, install software, run \
				scripts, or any repeatable sequence of tasks that ends \
				up creating a known set files on your filesystem. On \
				subsequent runs of the same set of tasks, pymake \
				performs the least amount of work possible to create \
				the same set of files, only performing the work that \
				it  detects has not already been performed by earlier \
				runs.

homepage		http://www.plope.com/software/pymake/
master_sites	${homepage}
distname		pymake-${version}
checksums		md5 0506229f711b5f3b23f9c0a2d2506707

python.versions	24

if {${name} ne ${subport}} {
    test.run		yes
    test.cmd		${python.bin} test_pymake.py
    test.env		PYTHONPATH=${worksrcpath}/build/lib
    test.target

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