# $Id: Portfile 59552 2009-10-16 17:57:59Z jwa@macports.org $

PortSystem		1.0
PortGroup		python24 1.0

name			py-py2app
version			0.4.3
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     45cc8ebc170a41b03a2a4c5feac75b1f \
                    sha1    71b8b009b47c5d6ca7ee6e47bc733d4c65c453db \
                    rmd160  877afa2e43ce8203cf74e8fc707c520e0105bf1a

conflicts       py-py2app-devel

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.type	regex
livecheck.url	http://cheeseshop.python.org/pypi/py2app/
livecheck.regex	py2app (0\.\[0-9\]+\.\[0-9\]+)
