[55038] trunk/dports/gnome/gnome-doc-utils/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Thu Aug 6 01:48:19 PDT 2009


Revision: 55038
          http://trac.macports.org/changeset/55038
Author:   jeremyhu at macports.org
Date:     2009-08-06 01:48:18 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
gnome-doc-utils: Allow a choice between pyton25 and python26

Modified Paths:
--------------
    trunk/dports/gnome/gnome-doc-utils/Portfile

Modified: trunk/dports/gnome/gnome-doc-utils/Portfile
===================================================================
--- trunk/dports/gnome/gnome-doc-utils/Portfile	2009-08-06 08:44:31 UTC (rev 55037)
+++ trunk/dports/gnome/gnome-doc-utils/Portfile	2009-08-06 08:48:18 UTC (rev 55038)
@@ -41,7 +41,6 @@
     port:iso-codes
 
 configure.env-append  INTLTOOL_PERL=${prefix}/bin/perl
-configure.python      ${prefix}/bin/python2.5
 configure.args         --disable-scrollkeeper \
                        --mandir=${prefix}/share/man
 
@@ -49,6 +48,21 @@
     system "${prefix}/bin/scrollkeeper-update"
 }
 
+variant python25 conflicts python26 description {Use python 2.5} {
+    depends_run-append      port:python25 port:py25-libxml2
+    configure.python        ${prefix}/bin/python2.5
+}
+
+variant python26 conflicts python25 description {Use python 2.6} {
+    depends_run-append      port:python26 port:py26-libxml2
+    configure.python        ${prefix}/bin/python2.6
+}
+
+# Default to 2.6 since 2.5 fails universal for me on Leopard... Ticket #17501
+if {![variant_isset python25]} {
+    default_variants +python26
+}
+
 universal_variant   no
 
 livecheck.check     regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090806/75822241/attachment.html>


More information about the macports-changes mailing list