# -*- 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 103314 2013-02-21 13:29:21Z jwa@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name				py-robotframework-ride
set internal_name	robotframework-ride

version             1.1

license             Apache-2

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
supported_archs	i386

master_sites        googlecode:${internal_name}
distname            ${internal_name}-${version}

checksums           rmd160  8b299cf3876e109664b89b94fe24c4845a279061 \
                    sha256  5e4f3ecaba03d520db6eacf99108732b12157a66cc94cd99475d5d879f94bd1b

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

    platform darwin 12 {
        supported_archs    x86_64
        depends_lib-delete port:py${python.version}-wxpython
        depends_lib-append port:py${python.version}-wxpython30
    }

    post-extract {
        reinplace "s/pybot/pybot-${python.branch}/g" $worksrcpath/src/robotide/contrib/testrunner/runprofiles.py
    }

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

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