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

name                py-pyobjc-quartz
version             3.0.4
categories-append   devel
license             MIT
maintainers         nomaintainer
platforms           darwin
description         Quartz wrappers for PyObjC
long_description    This port provides the CoreGraphics, ImageIO, \
                    QuartzComposer, QuartzCore, QuartzFilters, ImageKit, \
                    PDFKit and CoreVideo framework wrappers \
                    for use with PyObjC.

homepage            http://pyobjc.sourceforge.net/
master_sites        pypi:p/pyobjc-framework-Quartz/
distname            pyobjc-framework-Quartz-${version}

checksums           rmd160  7509318b3a5e40079ae09d4b708ceb393adfb732 \
                    sha256  b12a8af65312dd2f06f62a8bf73a56d8f3fbad90adda4038757356d7624ce391

python.versions     27 34 35 36

if {${name} ne ${subport}} {
    depends_lib         port:py${python.version}-pyobjc \
                        port:py${python.version}-pyobjc-cocoa

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} \
            LICENSE.txt README.txt \
            ${destroot}${prefix}/share/doc/${subport}
        copy ${worksrcpath}/Examples \
            ${destroot}${prefix}/share/doc/${subport}/examples
        copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/pyobjc-framework-Quartz/
    livecheck.regex {pyobjc-framework-Quartz ([0-9.]+)}
}