Modified: trunk/dports/net/ola/Portfile (80028 => 80029)
--- 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