# -*- 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 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name            py26-pyobjc
version         2.2
categories      python devel
license         MIT
maintainers     jmr openmaintainer
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       md5 91155ec6b319c9b4b066a616dccbdaa2 \
                sha1 6e1fbfa5708eefaf7a36147daf21f0aab62ec1e4 \
                rmd160 a7063fe74ecc95b3105e78196e5b5adc3bba3d4a

depends_lib     port:py26-distribute \
                path:${python.pkgd}/py2app/__init__.py:py26-py2app
# just to avoid upgrade conflicts (sigh)
depends_build   port:py26-pyobjc2

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.]+)}
