# -*- 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-robotframework
set internal_name   robotframework

version             4.1.2
license             Apache-2

categories-append   devel
maintainers         {jwa @jyrkiwahlstedt} openmaintainer
description         ATDD framework
long_description    ATDD framework with plugins

homepage            http://robotframework.org/


use_zip             yes

platforms           darwin
python.versions         27 36 37 38 39
python.default_version  39

universal_variant   yes

master_sites        pypi:r/${internal_name}
distname            ${internal_name}-${version}

checksums           rmd160  94087ed931b8a6bdcd71dcc0ed4b0849832585c3 \
                    sha256  7ea2454b847cfcb211e2906743c5c4a868ab096ab4ce1547ab102d91fb224443 \
                    size    694730

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

    post-destroot {
        reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/robot
        reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/rebot
    }

    livecheck.type     none
} else {
    livecheck.type     regex
    livecheck.url      https://pypi.python.org/pypi/robotframework
    livecheck.regex    ${internal_name}-(\[3-9\]\\.\[0-9.\]+)\\.zip
}
