# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-x2go
maintainers         cal openmaintainer
version             0.4.0.2
checksums           rmd160  35a176c1c49eb410954757f56d58786b1a021979 \
                    sha256  2119956f5cb35a246f5fc14ed5392ae43690abbf65d074eda2a6e6a1e4742764

categories-append   net
license             AGPL-3
homepage            http://www.x2go.org/
description         Python bindings for the x2go terminal server solution.
long_description    \
    Python X2Go provides a client-side X2go API for the Python programming\
    language. Python X2go is mostly interesting for developers who want to\
    incorporate X2go client support into their own Python applications.

platforms           darwin
supported_archs     noarch

master_sites        http://code.x2go.org/releases/source/python-x2go/
distname            python-x2go-${version}

python.versions     27 31 32
python.default_version 27

if {${subport} != ${name}} {
    livecheck.type          none
    depends_build-append    port:py${python.version}-setuptools
} else {
    livecheck.type          regex
    livecheck.url           ${master_sites}
    livecheck.regex         "python-x2go-(\\d+(?:\\.\\d)*)[quotemeta ${extract.suffix}]<"
}
