# -*- 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 83233 2011-08-29 06:01:11Z jmr@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name            py25-pyobjc
version         2.2
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       md5 91155ec6b319c9b4b066a616dccbdaa2 \
                sha1 6e1fbfa5708eefaf7a36147daf21f0aab62ec1e4 \
                rmd160 a7063fe74ecc95b3105e78196e5b5adc3bba3d4a

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

patchfiles      objc-class.m.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
}

# 2.3 only supports python >= 2.6
livecheck.type  none
