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

version             5.1.3
license             Apache-2

categories-append   devel
maintainers         {jwa @jyrkiwahlstedt} openmaintainer
description         Robot Framework library to run web-based tests
long_description    Library to run web-based tests with Selenium \
    using Selenium server included in the package

homepage            https://github.com/robotframework/${rname}

checksums           rmd160  d249382978d17f4c245dd4f998f9ca9b4a219ccd \
                    sha256  f51a0068c6c0d8107ee1120874a3afbf2bbe751fd0782cb86a27a616d9ca30b6 \
                    size    156935

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

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


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

if {${name} eq ${subport}} {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/${rname}
    livecheck.regex     ${rname}-(\[2-9\]\\.\[0-9.\]+)\\.tar\\.\[bg\]z
} else {
    livecheck.type      none
}
