# -*- 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 77760 2011-04-11 20:47:57Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python27 1.0

name            py27-pyobjc-cocoa
version         2.3
categories      python devel
license         MIT
maintainers     nomaintainer
platforms       darwin
description     cocoa wrappers for py27-pyobjc
long_description    This port provides the CoreFoundation, Foundation and \
                    AppKit wrappers for use with py27-pyobjc.

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

checksums       sha1    fa51fafac47f8b0bbbeb8ccad3b43f9d2e91037c \
                rmd160  0f88ab283461d642716e29e62cb67fd0f3dfc173

depends_lib     port:py27-pyobjc

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
    copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}
}

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