# -*- 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 80502 2011-07-13 19:04:24Z jmr@macports.org $

PortSystem          1.0
PortGroup python26  1.0

name                py26-py2app-devel
version             0.5.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://wiki.python.org/moin/MacPython/py2app

fetch.type          hg
hg.url              http://bitbucket.org/ronaldoussoren/py2app
hg.tag              c3bb65c5b0d0
worksrcdir          py2app-${version}

conflicts           py26-py2app

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