[91741] trunk/dports/sysutils/zeroinstall-injector/Portfile

afb at macports.org afb at macports.org
Mon Apr 9 05:06:05 PDT 2012


Revision: 91741
          https://trac.macports.org/changeset/91741
Author:   afb at macports.org
Date:     2012-04-09 05:06:01 -0700 (Mon, 09 Apr 2012)
Log Message:
-----------
zeroinstall-injector: use python2.7 instead

Modified Paths:
--------------
    trunk/dports/sysutils/zeroinstall-injector/Portfile

Modified: trunk/dports/sysutils/zeroinstall-injector/Portfile
===================================================================
--- trunk/dports/sysutils/zeroinstall-injector/Portfile	2012-04-09 11:20:08 UTC (rev 91740)
+++ trunk/dports/sysutils/zeroinstall-injector/Portfile	2012-04-09 12:06:01 UTC (rev 91741)
@@ -4,6 +4,7 @@
 
 name		zeroinstall-injector
 version		1.7
+revision	1
 platforms	darwin freebsd linux
 categories	sysutils
 license		LGPL
@@ -24,35 +25,37 @@
 		sha1 eabe6d1284522be4a5c2675807646f247a33ffac \
 		rmd160 46ac65794f57146afed45582d4ff43f05ffe5bb9
 
-depends_lib	port:python26 bin:gpg:gnupg
-depends_run	port:py26-gtk port:py26-xml bin:sudo:sudo
+depends_lib	port:python27 bin:gpg:gnupg
+depends_run	port:py27-gtk port:py27-xml bin:sudo:sudo
 
+set python.bin	${prefix}/bin/python2.7
+
 post-patch   {
 	reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
-	reinplace "s|local_0launch,|'${prefix}/bin/python2.6', local_0launch,|" ${worksrcpath}/tests/testrun.py
+	reinplace "s|local_0launch,|'${python.bin}', local_0launch,|" ${worksrcpath}/tests/testrun.py
 }
 
 use_configure	no
 supported_archs	noarch
 
-build.cmd	${prefix}/bin/python2.6 setup.py
+build.cmd	${python.bin} setup.py
 build.target		build
 
-destroot.cmd	${prefix}/bin/python2.6 setup.py
+destroot.cmd	${python.bin} setup.py
 destroot.destdir	--prefix=${prefix} --skip-build --root=${destroot}
 
 post-destroot   {
-	reinplace "s|/usr/bin/env python|${prefix}/bin/python2.6|" \
+	reinplace "s|/usr/bin/env python|${python.bin}|" \
 	          ${destroot}${prefix}/lib/python2.6/site-packages/zeroinstall/0launch-gui/0launch-gui
 
 	# move site-packages to wherever python is looking for it
-	file mkdir ${destroot}[exec ${prefix}/bin/python2.6 -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
+	file mkdir ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
 	file rename ${destroot}${prefix}/lib/python2.6/site-packages \
-	            ${destroot}[exec ${prefix}/bin/python2.6 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
+	            ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
 }
 
 test.run	yes
-test.cmd	${prefix}/bin/python2.6
+test.cmd	${python.bin}
 test.dir	${worksrcpath}/tests
 test.target	testall.py
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120409/af78e547/attachment.html>


More information about the macports-changes mailing list