# -*- 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
# $Id: Portfile 91234 2012-03-26 15:35:18Z jwa@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name				py-robotframework-selenium2library
set internal_name	robotframework-selenium2library

version             1.0.0
categories-append   devel
maintainers         jwa
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/rtomac/${internal_name}/downloads

platforms           darwin
python.versions		26 27
python.default_version	27

master_sites        https://github.com/downloads/rtomac/${internal_name}/
distname            ${internal_name}-${version}

checksums           rmd160  8d98280a7509039ba1ad1e316aafd80bd1326b36 \
                    sha256  49e8e635c0dc0a0535c9437252ca98694376c9d3840bec6f8f8baf3ec79262ca

if {$subport != $name} {
    depends_lib-append	port:py${python.version}-robotframework \
        port:py${python.version}-ez_setup \
        port:py${python.version}-selenium

    pre-build {
        copy ${portpath}/files/version.py ${worksrcpath}
    }
}

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