PortSystem 1.0
PortGroup python 1.0

set realname        pyds9
name                py-${realname}
version             1.1
categories-append   devel science
license             LGPL-2.1
maintainers         {stsci.edu:mperrin @mperrin} openmaintainer
description         Python interface to XPA to communicate with DS9
long_description    The pyds9 module provides a Python interface to XPA to \
                    communicate with the astronomical image viewer DS9.
homepage            http://hea-www.harvard.edu/saord/ds9/
platforms           darwin
master_sites        http://hea-www.harvard.edu/saord/download/ds9/python/
checksums           md5     e42278ca0e8e6b6e55225a622359b33c \
                    sha1    44417aae292d0f57b238c510dac0181d1a24b9e3 \
                    rmd160  ddd4af816195c132aa92cf3af38994998e9f82f3

distname            ${realname}-${version}

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append port:py${python.version}-setuptools
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${realname}-(\[0-9.\]+).tar.gz