# -*- 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 59230 2009-10-12 10:41:34Z jmr@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

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

fetch.type          svn
svn.url             http://svn.pythonmac.org/py2app/py2app/trunk/
svn.revision        84
worksrcdir          trunk

conflicts           py-py2app

depends_lib-append  port:py-setuptools \
                    port:py-altgraph \
                    port:py-macholib \
                    path:${python.pkgd}/modulegraph/__init__.py:py-modulegraph-devel \
                    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 copy [glob ${worksrcpath}/examples/*] \
    ${destroot}${prefix}/share/examples/${name}
}

livecheck.type  regex
livecheck.url   http://svn.pythonmac.org/py2app/py2app/trunk/setup.py
livecheck.regex {version='([0-9.]+)'}
