# -*- 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 83767 2011-09-10 18:26:59Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name            py-pyobjc2
version         2.0
revision        1
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/

depends_lib-append     port:py24-distribute \
                port:py24-py2app \
                port:py-elementtree

fetch.type      svn
svn.url         http://svn.red-bean.com/pyobjc/tags/r200-leopard/pyobjc-core/
worksrcdir      pyobjc-core

patchfiles      patch-PyErr_WarnEx.diff undef_snprintf.diff setup.py.diff

if {${os.major} < 9} {
    pre-fetch {
        return -code error "PyObjC 2.0 requires Mac OS X 10.5"
    }
}

post-destroot {
    xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.html Install.txt \
        License.txt NEWS.html NEWS.txt ReadMe.txt ReadMe.html \
        ${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  none
