# -*- 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 91373 2012-03-31 00:08:55Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-robotframework
set internal_name   robotframework

version             2.7.1

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
configure.build_arch	i386

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

checksums           rmd160  65e46e89bd2922792b7fb8fc74cf0c413dac7551 \
                    sha256  5c3c2ece74acac4059f3411c30bf6e9166525b3dcb5bf0701e18fb189d790839

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
}
