# -*- 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

version             2.9.2
license             Apache-2

categories-append   devel
maintainers         nomaintainer
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/${internal_name}

platforms           darwin
python.versions		26 27
python.default_version	27

master_sites        ${homepage}/archive
distname            ${version}
set worksrcdir      ${internal_name}-${version}

checksums           rmd160  3a73c9b167ec9252197c3614d675753c51ebfbf2 \
                    sha256  cff84f0c44ec8fdffece600ce3b52a9f1252d4f63dc367d42a56c38ade3c8bce

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

if {${name} eq ${subport}} {
    livecheck.type		regex
    livecheck.url		${homepage}/releases
    livecheck.regex		(\[2-9\]\\.\[0-9.\]+)\\.tar\\.\[bg\]z
} else {
    livecheck.type		none
}