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

afb at macports.org afb at macports.org
Sun Jul 31 02:11:36 PDT 2011


Revision: 81462
          http://trac.macports.org/changeset/81462
Author:   afb at macports.org
Date:     2011-07-31 02:11:32 -0700 (Sun, 31 Jul 2011)
Log Message:
-----------
zeroinstall-injector: upgrade to version 1.2, now requires python 2.6
(and add workaround, for silly framework-only installation of python)

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

Modified: trunk/dports/sysutils/zeroinstall-injector/Portfile
===================================================================
--- trunk/dports/sysutils/zeroinstall-injector/Portfile	2011-07-31 07:03:52 UTC (rev 81461)
+++ trunk/dports/sysutils/zeroinstall-injector/Portfile	2011-07-31 09:11:32 UTC (rev 81462)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name		zeroinstall-injector
-version		0.54
+version		1.2
 platforms	darwin freebsd linux
 categories	sysutils
 license		LGPL
@@ -20,28 +20,34 @@
 master_sites	sourceforge
 master_sites.mirror_subdir	zero-install
 use_bzip2	yes
-checksums	md5 6cc84fe9d66dfb63a604ee618b44c51a \
-		sha1 b5ac5ed03373f4cc63ce6503a5e1a7e067d335a1 \
-		rmd160 bf435dfa5a01631f57da78a52f9fb03f3b3c418f
+checksums	md5 4f1cb7cb2a86f0b7d01add5991af2640 \
+		sha1 4cdef3471f50a9e249373a3f155d7453a282b241 \
+		rmd160 e709aaeb5f0d80e281961d628cf912ecc6d57f18
 
-depends_lib	port:python25 bin:gpg:gnupg
-depends_run	port:py25-gtk port:py25-xml bin:sudo:sudo
+depends_lib	port:python26 bin:gpg:gnupg
+depends_run	port:py26-gtk port:py26-xml bin:sudo:sudo
 
 post-patch   {
 	reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
 }
 
 use_configure	no
+supported_archs	noarch
 
-build.cmd	${prefix}/bin/python2.5 setup.py
+build.cmd	${prefix}/bin/python2.6 setup.py
 build.target		build
 
-destroot.cmd	${prefix}/bin/python2.5 setup.py
+destroot.cmd	${prefix}/bin/python2.6 setup.py
 destroot.destdir	--prefix=${prefix} --skip-build --root=${destroot}
 
 post-destroot   {
-	reinplace "s|/usr/bin/env python|${prefix}/bin/python2.5|" \
-	          ${destroot}${prefix}/lib/python2.5/site-packages/zeroinstall/0launch-gui/0launch-gui
+	reinplace "s|/usr/bin/env python|${prefix}/bin/python2.6|" \
+	          ${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 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()"]
 }
 
 livecheck.name	zero-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110731/e06a2649/attachment.html>


More information about the macports-changes mailing list