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

name                py-rbtools
set cap_name        RBTools
version             1.0.3
revision            0

set branch          [join [lrange [split ${version} .] 0 1] .]

categories-append   devel
maintainers         nomaintainer
platforms           darwin
supported_archs     noarch
license             MIT

description         Tools for Review Board integration
long_description    Tools for integrating with Review Board, a powerful web-based \
                    code review tool that offers developers an easy way to handle \
                    code reviews. This package provides \"post-review\", a command-line \
                    tool that simplifies both creating and updating review requests.

homepage            http://www.reviewboard.org/
master_sites        http://downloads.reviewboard.org/releases/${cap_name}/${branch}
distname            ${cap_name}-${version}

checksums           rmd160  8849369c10b2656b2f363ea0e8560db574875c79 \
                    sha256  ff4cea3ad7b2d1b1666b811021cf5047f1fbe9417428fb5133a40ede81e3e83c \
                    size    206634

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       [lindex $master_sites 0]
    livecheck.regex     "RBTools-(0\\.\\d+?(\\.\\d+))\\.tar\\.gz"
}
