# -*- 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-protego
version                 0.1.16
maintainers             {khindenburg @kurthindenburg} openmaintainer
platforms               darwin

description             Protego is a pure-Python `robots.txt` parser with support \
                        for modern conventions.
long_description        ${description}
license                 BSD
homepage                https://pypi.python.org/pypi/Protego

distname                Protego-${version}
master_sites            https://files.pythonhosted.org/packages/source/P/Protego/

checksums               rmd160  c5d678d360ff8a556a8bda1ad3997192a98aff1c \
                        sha256  a682771bc7b51b2ff41466460896c1a5a653f9a1e71639ef365a72e66d8734b4 \
                        size    3211311

python.versions 27 35 36 37 38 39

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

    set pyver [join [split ${python.version} {}] {.}]
    test.run            yes
    test.cmd            py.test-${pyver}
    test.target
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type          none
} else {
    livecheck.type          pypi
}
