[116242] trunk/dports/python/py-robotframework-ride/Portfile

jwa at macports.org jwa at macports.org
Wed Jan 22 07:24:33 PST 2014


Revision: 116242
          https://trac.macports.org/changeset/116242
Author:   jwa at macports.org
Date:     2014-01-22 07:24:33 -0800 (Wed, 22 Jan 2014)
Log Message:
-----------
py-robotframework-ride: add features to close #40297

Modified Paths:
--------------
    trunk/dports/python/py-robotframework-ride/Portfile

Modified: trunk/dports/python/py-robotframework-ride/Portfile
===================================================================
--- trunk/dports/python/py-robotframework-ride/Portfile	2014-01-22 14:22:08 UTC (rev 116241)
+++ trunk/dports/python/py-robotframework-ride/Portfile	2014-01-22 15:24:33 UTC (rev 116242)
@@ -34,24 +34,24 @@
     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-2.8 \
-        port:py${python.version}-paver
+                        port:py${python.version}-paver
 
-    # TODO: this port probably needs a variant to switch between py-wxpython-2.8 and py-wxpython-3.0
-    #       until it starts working properly on py-wxpython-3.0
-    # Depending on 2.8 for now
-#    if {${os.major}>=12} {
-#        depends_lib-delete port:py${python.version}-wxpython-2.8
-#        depends_lib-append port:py${python.version}-wxpython-3.0
-#    }
-
     post-extract {
         reinplace "s/pybot/pybot-${python.branch}/g" $worksrcpath/src/robotide/contrib/testrunner/runprofiles.py
     }
 
-    # with 'py-wxpython-3.0' and 'py-wxpython-2.8 +gtk' this should not be needed
-    # this should only be issued when depending on 'py-wxpython-2.8 +carbon' on 64-bit OS or deleted
-    # notes "To run, use 'arch -i386 ride.py-${python.branch}' to use 32bit architecture"
+    variant wxpython30 conflicts wxpython28 description {Use wxPython 3.0 with Cocoa (experimental)} {
+        depends_lib-append  port:py${python.version}-wxpython-3.0
+        notes-append "Warning: wxPython 3.0 is not fully compatible with robotframework-ride.\n"
+    }
+
+    variant wxpython28 conflicts wxpython30 description {Use wxPython 2.8 with GTK} {
+        depends_lib-append  port:py${python.version}-wxpython-2.8
+    }
+
+    if {![variant_isset wxpython30] && ![variant_isset wxpython28]} {
+        default_variants    +wxpython28
+    }
 }
 
 if {${name} eq ${subport}} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140122/7f532951/attachment-0001.html>


More information about the macports-changes mailing list