[91794] trunk/dports/sysutils/zeroinstall-injector/Portfile
afb at macports.org
afb at macports.org
Tue Apr 10 11:26:34 PDT 2012
Revision: 91794
https://trac.macports.org/changeset/91794
Author: afb at macports.org
Date: 2012-04-10 11:26:33 -0700 (Tue, 10 Apr 2012)
Log Message:
-----------
zeroinstall-injector: add some python variants, default to python26 again
Modified Paths:
--------------
trunk/dports/sysutils/zeroinstall-injector/Portfile
Modified: trunk/dports/sysutils/zeroinstall-injector/Portfile
===================================================================
--- trunk/dports/sysutils/zeroinstall-injector/Portfile 2012-04-10 18:11:03 UTC (rev 91793)
+++ trunk/dports/sysutils/zeroinstall-injector/Portfile 2012-04-10 18:26:33 UTC (rev 91794)
@@ -4,7 +4,7 @@
name zeroinstall-injector
version 1.7
-revision 2
+revision 3
platforms darwin freebsd linux
categories sysutils
license LGPL
@@ -25,12 +25,32 @@
sha1 eabe6d1284522be4a5c2675807646f247a33ffac \
rmd160 46ac65794f57146afed45582d4ff43f05ffe5bb9
-depends_lib port:python27 bin:gpg:gnupg
-depends_run port:py27-gtk bin:sudo:sudo
+depends_lib bin:gpg:gnupg
+depends_run bin:sudo:sudo
+set python.branch 2.x
+set python.bin ${prefix}/bin/python
+
+variant python26 conflicts python27 description "use python 2.6" {
+depends_lib-append port:python26
+depends_run-append port:py26-gtk
+
+set python.branch 2.6
+set python.bin ${prefix}/bin/python${python.branch}
+}
+
+variant python27 conflicts python26 description "use python 2.7" {
+depends_lib-append port:python27
+depends_run-append port:py27-gtk
+
set python.branch 2.7
-set python.bin ${prefix}/bin/python${python.branch}
+set python.bin ${prefix}/bin/python${python.branch}
+}
+if {![variant_isset python27]} {
+ default_variants +python26
+}
+
post-patch {
reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
reinplace "s|local_0launch,|'${python.bin}', local_0launch,|" ${worksrcpath}/tests/testrun.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120410/cde951c2/attachment.html>
More information about the macports-changes
mailing list