# -*- 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 45511 2009-01-16 21:09:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-py2app-devel
version             0.4.2
revision            1
categories-append   devel
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

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

depends_lib-append  port:py-setuptools \
                    port:py-altgraph \
                    port:py-macholib \
                    port: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}
    fs-traverse dir ${destroot}${prefix}/share/examples/${name} {
        if {[file isdirectory $dir] && [file tail dir] == ".svn"} {
            delete $dir
        }
    }
}

livecheck.check regex
livecheck.url   http://svn.pythonmac.org/py2app/py2app/trunk/py2app/__init__.py
livecheck.regex {__version__ = "([0-9\.]+)"}
