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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup wxWidgets 1.0 |
---|
7 | |
---|
8 | name py-robotframework-ride |
---|
9 | set internal_name robotframework-ride |
---|
10 | |
---|
11 | version 1.2.3 |
---|
12 | revision 4 |
---|
13 | |
---|
14 | license Apache-2 |
---|
15 | |
---|
16 | categories-append devel |
---|
17 | maintainers jwa |
---|
18 | description Robot Framework test case editor |
---|
19 | long_description ${description} |
---|
20 | |
---|
21 | homepage http://code.google.com/p/${internal_name} |
---|
22 | |
---|
23 | platforms darwin |
---|
24 | python.versions 26 27 |
---|
25 | python.default_version 27 |
---|
26 | |
---|
27 | master_sites googlecode:${internal_name} |
---|
28 | distname ${internal_name}-${version} |
---|
29 | |
---|
30 | checksums rmd160 9d481289f4a1fb0f29daff929de779dde4975675 \ |
---|
31 | sha256 b2f4a28400b206358c9b48c3378388f1ffc8ba16a1cfba064aed38803a71c5d1 |
---|
32 | |
---|
33 | if {${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 | |
---|
57 | if {${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 | } |
---|