# -*- 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 35871 2008-04-09 07:46:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-py2app
version             0.3.6
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
master_sites        http://cheeseshop.python.org/packages/source/p/py2app/
distname            py2app-${version}

checksums           md5 dffbcc55bbe1ce762ded2adba391b77d \
                    sha1 c75b4cdaaa10a22d05e9533bb33763a318490ef7 \
                    rmd160 bb33523c770cc0f423208c8799d9b2b74567108b

depends_lib-append  port:py25-setuptools \
                    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.check regex
livecheck.url   http://cheeseshop.python.org/pypi/py2app/
livecheck.regex py2app (0\.\[0-9\]+\.\[0-9\]+)
