[80064] trunk/dports/comms/telepathy-gabble/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jul 3 10:32:45 PDT 2011


Revision: 80064
          http://trac.macports.org/changeset/80064
Author:   jeremyhu at macports.org
Date:     2011-07-03 10:32:44 -0700 (Sun, 03 Jul 2011)
Log Message:
-----------
telepathy-gabble: Add variants to choose python25, python26, or python27

Modified Paths:
--------------
    trunk/dports/comms/telepathy-gabble/Portfile

Modified: trunk/dports/comms/telepathy-gabble/Portfile
===================================================================
--- trunk/dports/comms/telepathy-gabble/Portfile	2011-07-03 17:25:49 UTC (rev 80063)
+++ trunk/dports/comms/telepathy-gabble/Portfile	2011-07-03 17:32:44 UTC (rev 80064)
@@ -5,6 +5,7 @@
 
 name            telepathy-gabble
 version         0.10.5
+revision        1
 set branch      [join [lrange [split ${version} .] 0 1] .]
 description     The ${name} component of Telepathy - a Flexible Communications Framework
 long_description \
@@ -25,17 +26,33 @@
 
 depends_lib     port:telepathy-glib \
                 port:libxslt \
-                port:py26-twisted \
                 port:libsoup \
                 port:libnice \
                 port:cyrus-sasl2
 
 patchfiles      patch-configure.diff
 
-configure.python ${prefix}/bin/python2.6
-
 configure.args  --disable-silent-rules
 
+variant python25 conflicts python26 python27 description {Use python 2.5} {
+    configure.python          ${prefix}/bin/python2.5
+    depends_lib-append        port:py25-twisted
+}
+
+variant python26 conflicts python25 python27 description {Use python 2.6} {
+    configure.python          ${prefix}/bin/python2.6
+    depends_lib-append        port:py26-twisted
+}
+
+variant python27 conflicts python25 python26 description {Use python 2.7} {
+    configure.python          ${prefix}/bin/python2.7
+    depends_lib-append        port:py27-twisted
+}
+
+if {![variant_isset python25] && ![variant_isset python26]} {
+    default_variants +python27
+}
+
 livecheck.type  regex
 livecheck.url   ${master_sites}
 livecheck.regex "${name}-(${branch}(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110703/1d6f58ad/attachment.html>


More information about the macports-changes mailing list