# -*- 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 92861 2012-05-09 06:37:15Z jwa@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name				py-robotframework-ride
set internal_name	robotframework-ride

version             0.44
categories-append   devel
maintainers         jwa
description         Robot Framework test case editor
long_description    ${description}

homepage	http://code.google.com/p/${internal_name}

platforms           darwin
python.versions		26 27
python.default_version	27

universal_variant	no
configure.build_arch	i386

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

checksums           rmd160  f39d42fed4245bfb6ca2c9abf1c8e1783b3d1c51 \
                    sha256  6798121b56b40d6bc62177e0bb35aa778122aca50d51f517fc69ea0e1648e57c

#python.link_binaries no

if {$subport != $name} {
    build.cmd           ${python.bin} setup.py
    destroot.cmd        ${python.bin} setup.py
    depends_lib-append	port:py${python.version}-robotframework \
        port:py${python.version}-wxpython \
        port:py${python.version}-paver

    notes "To run, use 'arch -i386 ride.py-${python.branch}' to use 32bit architecture"
}

if {$subport == $name} {
    livecheck.type     regex
    livecheck.url      https://github.com/robotframework/RIDE/downloads
    livecheck.regex    ${internal_name}-(0\\.\[0-9.\]+)\\.tar\\.\[bg\]z
} else {
    livecheck.type		none
}
