[91742] trunk/dports/sysutils/zeroinstall-injector/Portfile
afb at macports.org
afb at macports.org
Mon Apr 9 05:14:22 PDT 2012
Revision: 91742
https://trac.macports.org/changeset/91742
Author: afb at macports.org
Date: 2012-04-09 05:14:22 -0700 (Mon, 09 Apr 2012)
Log Message:
-----------
zeroinstall-injector: oops, missed site-packages
Modified Paths:
--------------
trunk/dports/sysutils/zeroinstall-injector/Portfile
Modified: trunk/dports/sysutils/zeroinstall-injector/Portfile
===================================================================
--- trunk/dports/sysutils/zeroinstall-injector/Portfile 2012-04-09 12:06:01 UTC (rev 91741)
+++ trunk/dports/sysutils/zeroinstall-injector/Portfile 2012-04-09 12:14:22 UTC (rev 91742)
@@ -28,7 +28,8 @@
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
+set python.branch 2.7
+set python.bin ${prefix}/bin/python${python.branch}
post-patch {
reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
@@ -46,11 +47,11 @@
post-destroot {
reinplace "s|/usr/bin/env python|${python.bin}|" \
- ${destroot}${prefix}/lib/python2.6/site-packages/zeroinstall/0launch-gui/0launch-gui
+ ${destroot}${prefix}/lib/python${python.branch}/site-packages/zeroinstall/0launch-gui/0launch-gui
# move site-packages to wherever python is looking for it
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 \
+ file rename ${destroot}${prefix}/lib/python${python.branch}/site-packages \
${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120409/db04af7e/attachment.html>
More information about the macports-changes
mailing list