# -*- 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 58337 2009-09-26 21:24:22Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name            py-pyobjc2-cocoa
version         2.0
revision        1
categories      python devel
license         MIT
maintainers     nomaintainer
platforms       darwin
description     cocoa wrappers for py-pyobjc2
long_description    This port provides the CoreFoundation, Foundation and AppKit wrappers \
                    for use with py-pyobjc2.

homepage        http://pyobjc.sourceforge.net/

depends_lib-append     port:py-pyobjc2

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

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} \
        LICENSE.txt README.txt \
        ${destroot}${prefix}/share/doc/${name}
    copy ${worksrcpath}/Examples \
        ${destroot}${prefix}/share/doc/${name}/examples
}

livecheck.type  none
