# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        python-rope rope 0.18.0
name                py-rope
revision            0

platforms           darwin
supported_archs     noarch
license             LGPL-3+
maintainers         {reneeotten @reneeotten} openmaintainer

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.

checksums           rmd160  caf6b6779f0eb1c5c63bcc836b6402c671fd2fc8 \
                    sha256  5dea333329e0737b7d443bc5b9f88b25b847ea8fe2f03ab243ff1d76ae4ef6ca \
                    size    246096

python.versions     27 35 36 37 38 39

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

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} CONTRIBUTORS COPYING \
            README.rst ${destroot}${docdir}
    }

    livecheck.type  none
}
