# -*- 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 90855 2012-03-16 04:41:36Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pyobjc-quartz
version             2.3
categories-append   devel
license             MIT
maintainers         gmail.com:lkraider+ports openmaintainer
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        http://pypi.python.org/packages/source/p/pyobjc-framework-Quartz/
distname            pyobjc-framework-Quartz-${version}

checksums           md5     254cdcbe20fde9d46cad5cc8a81316e1 \
                    sha1    f21a18deca7726aa08dc1f0aee30b2b7920a5db4 \
                    rmd160  cb03ee15f736a21ceb470bf4a23a84016acf1add

python.versions     26 27
python.default_version 27

if {$subport != $name} {
    depends_lib         port:py${python.version}-pyobjc
    
    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   http://pypi.python.org/pypi/pyobjc-framework-Quartz/
    livecheck.regex {pyobjc-framework-Quartz ([0-9.]+)}
}
