Ticket #40297: py-robotframework-ride.Portfile

File py-robotframework-ride.Portfile, 2.1 KB (added by mojca (Mojca Miklavec), 11 years ago)
Line 
1# -*- 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
2# $Id: Portfile 116071 2014-01-17 10:18:45Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           wxWidgets 1.0
7
8name                py-robotframework-ride
9set internal_name   robotframework-ride
10
11version             1.2.3
12revision            4
13
14license             Apache-2
15
16categories-append   devel
17maintainers         jwa
18description         Robot Framework test case editor
19long_description    ${description}
20
21homepage            http://code.google.com/p/${internal_name}
22
23platforms           darwin
24python.versions     26 27
25python.default_version 27
26
27master_sites        googlecode:${internal_name}
28distname            ${internal_name}-${version}
29
30checksums           rmd160  9d481289f4a1fb0f29daff929de779dde4975675 \
31                    sha256  b2f4a28400b206358c9b48c3378388f1ffc8ba16a1cfba064aed38803a71c5d1
32
33if {${name} ne ${subport}} {
34    build.cmd           ${python.bin} setup.py
35    destroot.cmd        ${python.bin} setup.py
36    depends_lib-append  port:py${python.version}-robotframework \
37                        port:py${python.version}-paver
38
39    post-extract {
40        reinplace "s/pybot/pybot-${python.branch}/g" $worksrcpath/src/robotide/contrib/testrunner/runprofiles.py
41    }
42
43    variant wxpython30 conflicts wxpython28 description {Use wxPython 3.0 with Cocoa (experimental)} {
44        depends_lib-append  port:py${python.version}-wxpython-3.0
45        notes-append "Warning: wxPython 3.0 is not fully compatible with robotframework-ride.\n"
46    }
47
48    variant wxpython28 conflicts wxpython28 description {Use wxPython 2.8 with GTK} {
49        depends_lib-append  port:py${python.version}-wxpython-2.8
50    }
51
52    if {![variant_isset wxpython30] && ![variant_isset wxpython28]} {
53        default_variants    +wxpython28
54    }
55}
56
57if {${name} eq ${subport}} {
58    livecheck.type      regex
59    livecheck.url       ${homepage}
60    livecheck.regex     ${internal_name}-(\[0-9.\]+)\\.tar\\.\[bg\]z
61} else {
62    livecheck.type      none
63}