Revision
116582
Author
raimue@macports.org
Date
2014-01-29 03:46:14 -0800 (Wed, 29 Jan 2014)

Log Message

audio/xmms2:
Fix default variant handling and mark the different python variants conflicting

Modified Paths

Diff

Modified: trunk/dports/audio/xmms2/Portfile (116581 => 116582)


--- trunk/dports/audio/xmms2/Portfile	2014-01-29 10:12:06 UTC (rev 116581)
+++ trunk/dports/audio/xmms2/Portfile	2014-01-29 11:46:14 UTC (rev 116582)
@@ -107,18 +107,20 @@
     configure.args-append --without-plugins=jack
 }
 
-variant python26 description {Support for Python 2.6} {
+variant python26 description {Support for Python 2.6} conflicts python27 {
     depends_lib-append      port:py26-pyrex
     configure.args-delete   --without-optionals python
     configure.python        ${prefix}/bin/python2.6
 }
 
-variant python27 description {Support for Python 2.7} {
+variant python27 description {Support for Python 2.7} conflicts python27 {
     depends_lib-append      port:py27-pyrex
     configure.args-delete   --without-optionals python
     configure.python        ${prefix}/bin/python2.7
 }
 
-default_variants    +python27
+if {![variant_isset python26]} {
+    default_variants +python27
+}
 
 livecheck.regex         /${name}-(.+)${extract.suffix}