# -*- 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 78877 2011-05-25 13:00:40Z jmr@macports.org $

PortSystem 1.0
PortGroup python27 1.0

name            py27-pyobjc
version         2.3
categories      python devel
license         MIT
maintainers     nomaintainer
platforms       darwin
description     bidirectional bridge between python and Objective C
long_description    The PyObjC project aims to provide a bridge between \
                the Python and Objective-C programming languages. The \
                bridge is intended to be fully bidirectional, allowing \
                the Python programmer to take full advantage of the \
                power provided by various Objective-C based toolkits \
                and the Objective-C programmer transparent access to \
                Python based functionality.

homepage        http://pyobjc.sourceforge.net/
master_sites    http://pypi.python.org/packages/source/p/pyobjc-core/
distname        pyobjc-core-${version}

checksums       sha1    ef7c5489e86e5ff219e7ae15de84fe28bc1572f6 \
                rmd160  8c7b5ec7478035490bcb78193b7659ee6293c785

depends_lib     port:py27-distribute \
                path:${python.pkgd}/py2app/__init__.py:py27-py2app \
                port:libxml2

patchfiles      setup.py.diff

post-destroot {
    xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.txt \
        License.txt NEWS.txt README.txt \
        ${destroot}${prefix}/share/doc/${name}
    copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html
    delete ${destroot}${prefix}/share/doc/${name}/examples
    copy ${worksrcpath}/Examples \
        ${destroot}${prefix}/share/doc/${name}/examples
}

livecheck.type  regex
livecheck.url   http://pypi.python.org/pypi/pyobjc-core/
livecheck.regex {pyobjc-core ([0-9.]+)}
