Revision: 80029 http://trac.macports.org/changeset/80029 Author: ryandesign@macports.org Date: 2011-07-02 22:06:26 -0700 (Sat, 02 Jul 2011) Log Message: ----------- ola: allow the user to select which python to use; see #30003 Modified Paths: -------------- trunk/dports/net/ola/Portfile Modified: trunk/dports/net/ola/Portfile =================================================================== --- trunk/dports/net/ola/Portfile 2011-07-03 01:46:27 UTC (rev 80028) +++ trunk/dports/net/ola/Portfile 2011-07-03 05:06:26 UTC (rev 80029) @@ -5,6 +5,7 @@ name ola version 0.8.11 +revision 1 categories net comms platforms darwin license GPL-2+ LGPL-2.1+ @@ -33,10 +34,16 @@ configure.args --disable-http \ --disable-libusb -variant python description {Enable the Python API} { - configure.args-append --enable-python-libs +variant python26 conflicts python27 description {Enable the Python 2.6 API} { + depends_lib-append port:protobuf-python26 + configure.args-append PYTHON=python2.6 --enable-python-libs } +variant python27 conflicts python26 description {Enable the Python 2.7 API} { + depends_lib-append port:protobuf-python27 + configure.args-append PYTHON=python2.7 --enable-python-libs +} + variant http description {Build with embedded web server} { depends_lib-append port:libmicrohttpd configure.args-delete --disable-http @@ -47,7 +54,11 @@ configure.args-delete --disable-libusb } -default_variants +http +python +libusb +default_variants +http +libusb +if {![variant_isset python26]} { + default_variants +python27 +} + test.run yes test.target check
participants (1)
-
ryandesign@macports.org