# $Id: Portfile 80927 2011-07-21 19:04:43Z jmr@macports.org $

PortSystem		1.0
PortGroup		python24 1.0

name			py-py2app
version			0.6.3
revision		1
categories-append	devel
license			{MIT PSF}
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://wiki.python.org/moin/MacPython/py2app
master_sites		http://cheeseshop.python.org/packages/source/p/py2app/
distname		py2app-${version}

checksums           md5     49a9101ff25fb59d1ba733e329bf502e \
                    sha1    cb7daad349cdd491d2021cb05b96be471628acf4 \
                    rmd160  601e08e0292f2c115f55e85619fb2d979255b1aa

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 README.txt \
	${destroot}${prefix}/share/doc/${name}
	# tar mishandles this filename, ticket #30252
	move "${destroot}${prefix}/share/examples/${name}/PyObjC/TinyTinyEdit/dist.€" \
	     "${destroot}${prefix}/share/examples/${name}/PyObjC/TinyTinyEdit/dist"
}

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