# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           deprecated 1.0

# version 6.0 dropped support for Python 3.5 and earlier
deprecated.eol_version yes
livecheck.type      none

name                py27-pyobjc-cocoa
python.rootname     pyobjc-framework-Cocoa
categories-append   devel
platforms           darwin
license             MIT
maintainers         nomaintainer

description         cocoa wrappers for PyObjC
long_description    This port provides the CoreFoundation, Foundation \
                    and AppKit wrappers for use with PyObjC.
homepage            https://pyobjc.readthedocs.io

version             5.3
revision            2
checksums           rmd160 5790e8357f6e7e5668b8750dd4809522ae44f812 \
                    sha256 0b2d2f4a95d2634d1545c2d5cc949cb1b1bbfd73393d3c3b483be2a18906e568 \
                    size   3808584

patchfiles          pyobjc_setup.py.patch

python.versions     27

depends_build-append \
                    port:py${python.version}-setuptools

depends_lib-append  port:py${python.version}-pyobjc

if {${configure.sdkroot} eq ""} {
    set sdkroot "/"
} else {
    set sdkroot ${configure.sdkroot}
}

build.env-append    SDKROOT=${sdkroot}
destroot.env-append SDKROOT=${sdkroot}

post-destroot {
    xinstall -m 0644 -W ${worksrcpath} \
        LICENSE.txt README.txt \
        ${destroot}${prefix}/share/doc/${subport}
    copy ${worksrcpath}/Examples \
        ${destroot}${prefix}/share/doc/${subport}/examples
}
