# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup  python 1.0

name                py-constantly
version             15.1.0
categories-append   devel
license             MIT
platforms           darwin
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         A library that provides symbolic constant support
long_description    A library that provides symbolic constant support. \
    It includes collections and constants with text, numeric, and bit flag values. \
    Originally twisted.python.constants from the Twisted project.

homepage            https://github.com/twisted/constantly

master_sites        https://github.com/twisted/constantly/archive

distname            ${version}

checksums           rmd160  7a9d1776bb3b44b1982ba01ce50f269d67c1e4a7 \
                    sha256  be63c40ef853ee785045a1d20327d8153db9291f9aaff552796bed5272f9dd60

worksrcdir          constantly-${version}

python.versions 27 34 35 36 37

if {${name} ne ${subport}} {

    depends_build-append \
        port:py${python.version}-setuptools

    livecheck.type  none
} else {
    livecheck.type   regex
    livecheck.url    https://github.com/twisted/constantly/tags
    livecheck.regex  "(\\d+(?:\\.\\d)*\[.a-z0-9\]*)${extract.suffix}"

}