# $Id: Portfile 83999 2011-09-14 20:39:05Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

set realname        pyds9
name                py-${realname}
version             1.1
categories          python devel science
maintainers         stsci.edu: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     25 26 27
python.default_version 27

if {$subport != $name} {
    depends_build-append port:py${python.version}-distribute
}

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