# -*- 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 107014 2013-06-14 14:30:16Z jwa@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-robotframework
set internal_name   robotframework

version             2.8.1
license             Apache-2

categories-append   devel
maintainers         jwa
description         ATDD framework
long_description    ATDD framework with plugins

#homepage	http://robotframework.org/
homepage	http://code.google.com/p/robotframework/

platforms           darwin
python.versions		26 27
python.default_version	27

universal_variant	yes

master_sites        http://robotframework.googlecode.com/files/
distname            ${internal_name}-${version}
#use_bzip2           yes

checksums           rmd160  a3e121515a7bd7e2cfe1aa44eddd5962a1ee9820 \
                    sha256  dcbe5614cc155a291477a8b4f5446d75c18502a33d78b8ae1bfe16196296fc13

if {$subport != $name} {
    post-destroot		{
        reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/pybot
        reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/rebot
    }
}

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