# -*- 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 116998 2014-02-12 08:16:51Z g5pw@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-rope
version             0.9.4
platforms           darwin
supported_archs     noarch
license             GPL-2+
maintainers         nomaintainer
description         python refactoring library
long_description    Rope is a Python refactoring library that can be used \
                    with several editors and IDEs. It provides many \
                    refactoring operations as well as forms of code \
                    assistance like auto-completion and access to \
                    documentation.

homepage            http://rope.sourceforge.net/
master_sites        https://pypi.python.org/packages/source/r/rope/
distname            rope-${version}

checksums           rmd160  f73891b3d512f975172419e327adfb99ad10eaea \
                    sha256  2dc0342604851d8fbdafa198172eab5da7ed422759016669056181e21c54a6ba

python.versions     25 26 27 33 34

if {${name} ne ${subport}} {
    livecheck.type      none

    if { ${python.version} >= 30 } {
        master_sites    https://pypi.python.org/packages/source/r/rope_py3k/
        distname        rope_py3k-${version}-1
        checksums       rmd160  72b623aed7b4fbd3677506e214fe3206049e2437 \
                        sha256  feb95047cdb9d94e59414aefce7668920e35cba6d1e3c4d4390c2888c98207fa
    }
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     rope-(\[\\d+.\]+)${extract.suffix}
}
