# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        pyxg pyxg 0.3 v
name                py-pyxg
python.versions     27
categories-append   devel
platforms           darwin
maintainers         {snc @nerdling} openmaintainer
license             BSD
description         PyXG provides a Python interface to Apple's Xgrid
long_description    Xgrid is Apple's solution for running jobs \
                    on a cluster of Macintosh computers. PyXG enables users to \
                    submit and manage Xgrid jobs on a cluster from a Python \
                    script or within an interactive Python session.

checksums           rmd160  254a41fe143b5b7ce53c11dd7f2c0bd3d961e0ff \
                    sha256  6147735a7db386fecf4cbb0cac7f1800ddba30fcb025e55c1c70a41cb9837a1f

supported_archs     noarch


if {${os.platform} eq "darwin" && ${os.major} > 11} {
    archive_sites
    distfiles
    pre-configure {
        ui_error "${subport} requires Xgrid which is discontinued since OS X 10.8."
        return -code error "Incompatible OS X version"
    }
}

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-pyobjc-cocoa
    livecheck.type      none
}