# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-ropemacs
version             0.7
platforms           darwin
license             GPL-2+
maintainers         nomaintainer
description         An emacs mode for using rope python refactoring library
long_description    ${description}

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

checksums           rmd160  2b2e90f76861bcd9f7dea0577dc55e354e46a529 \
                    sha256  12d7dc9872f20de757610224999e866aac89ff04864d15a393e937965b70b8f4

python.versions     25 26 27

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-ropemode \
                        port:py${python.version}-pymacs
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     ropemacs-(\[0-9.\]+)${extract.suffix}
}
