# $Id: Portfile 33264 2008-01-22 11:03:54Z jwa@macports.org $

PortSystem		1.0
PortGroup		python24 1.0

name			py-py2app
version			0.3.6
categories-append	devel
maintainers		jwa openmaintainer
description		converts python scripts into executable Mac OS X 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 dffbcc55bbe1ce762ded2adba391b77d \
    sha1 c75b4cdaaa10a22d05e9533bb33763a318490ef7 \
    rmd160 bb33523c770cc0f423208c8799d9b2b74567108b

depends_lib-append	port:py-setuptools \
    port:py-altgraph \
    port:py-macholib \
    port:py-modulegraph \
    port:py-bdist_mpkg

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

livecheck.check	regex
livecheck.url	http://cheeseshop.python.org/pypi/py2app/
livecheck.regex	py2app (0\.\[0-9\]+\.\[0-9\]+)
