# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 65907 2010-04-02 22:08:22Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-py2app
version             0.4.3
categories-append   devel
license             MIT/PSF
maintainers         jmr 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           py25-py2app-devel

depends_lib-append  port:py25-distribute \
                    port:py25-altgraph \
                    port:py25-macholib \
                    port:py25-modulegraph \
                    port:py25-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\]+)
