# $Id: Portfile,v 1.7 2006/07/24 06:30:58 blb Exp $

PortSystem			1.0
PortGroup			python24 1.0
name				py-py2app
version				0.3.2
categories-append	devel
maintainers			darwinports@opendarwin.org
description			converts python scripts into executable MacOSX apps
long_description \
	A distutils extension which converts python scripts into executable \
	Mac OS X applications, able to run without requiring an existing python \
	installation.  This is a replacement for bundlebuilder.

platforms			darwin

homepage			http://undefined.org/python/#py2app
master_sites		http://cheeseshop.python.org/packages/source/p/py2app/
distname			py2app-${version}

checksums			md5 66b64e17d9bf2ea59ce2c50e7d0328c4 \
					sha1 5ef5821975613ecb66a3069f0c142bfd1c2bfd98 \
					rmd160 fba9b27523cca9dc2d073d7c1c9c3c2bdac7d367

depends_lib-append	port:py-setuptools

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
		${destroot}${prefix}/share/examples/${name}
	xinstall -m 644 -W ${worksrcpath} INSTALLING.txt LICENSE.txt NEWS.txt \
		README.txt TODO.txt ${destroot}${prefix}/share/doc/${name}
	eval file copy [glob ${worksrcpath}/examples/*] \
		${destroot}${prefix}/share/examples/${name}
}

