# -*- 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
PortGroup           github 1.0

github.setup        twisted incremental 17.5.0 incremental-
github.tarball_from archive
name                py-incremental
revision            0

categories-append   devel
license             MIT
platforms           darwin
maintainers         {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description         A small library that versions your Python projects
long_description    Incremental is a small library that versions your Python projects.

checksums           rmd160  d43e1e373acf42abcaaef8ffde8f77bf5a48abb5 \
                    sha256  7be9a13ebb2ad1dd1ed3ecf547c3fa6e1154bb793418c6cc504b9b6039b0045a \
                    size    14674

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    # see https://pypi.python.org/pypi/incremental/
    #depends_lib-append port:py${python.version}-twisted
    if {[catch {set installed [lindex [registry_active py${python.version}-twisted] 0]}]} {
        notes "
${subport} depends on py${python.version}-twisted to run properly, but py${python.version}-twisted depends on ${subport} to both build and run correctly.
Please install py${python.version}-twisted manually for correct functionality.
"
    }

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

    depends_lib-append  \
        port:py${python.version}-click

    livecheck.type  none
}
