[73043] trunk/dports/python/py26-virtualenvwrapper
jmr at macports.org
jmr at macports.org
Mon Nov 1 16:49:24 PDT 2010
Revision: 73043
http://trac.macports.org/changeset/73043
Author: jmr at macports.org
Date: 2010-11-01 16:49:20 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
py26-virtualenvwrapper: run the right virtualenv (#19387)
Modified Paths:
--------------
trunk/dports/python/py26-virtualenvwrapper/Portfile
Added Paths:
-----------
trunk/dports/python/py26-virtualenvwrapper/files/
trunk/dports/python/py26-virtualenvwrapper/files/virtualenvwrapper_bashrc.diff
Modified: trunk/dports/python/py26-virtualenvwrapper/Portfile
===================================================================
--- trunk/dports/python/py26-virtualenvwrapper/Portfile 2010-11-01 23:42:19 UTC (rev 73042)
+++ trunk/dports/python/py26-virtualenvwrapper/Portfile 2010-11-01 23:49:20 UTC (rev 73043)
@@ -25,3 +25,9 @@
depends_lib-append port:py26-distribute\
port:py26-virtualenv
+
+patchfiles virtualenvwrapper_bashrc.diff
+post-patch {
+ reinplace s|__VIRTUALENV_BIN__|${python.prefix}/bin/virtualenv| \
+ ${worksrcpath}/virtualenvwrapper_bashrc
+}
Added: trunk/dports/python/py26-virtualenvwrapper/files/virtualenvwrapper_bashrc.diff
===================================================================
--- trunk/dports/python/py26-virtualenvwrapper/files/virtualenvwrapper_bashrc.diff (rev 0)
+++ trunk/dports/python/py26-virtualenvwrapper/files/virtualenvwrapper_bashrc.diff 2010-11-01 23:49:20 UTC (rev 73043)
@@ -0,0 +1,11 @@
+--- virtualenvwrapper_bashrc.orig 2009-08-13 22:32:24.000000000 +1000
++++ virtualenvwrapper_bashrc 2010-11-02 10:44:22.000000000 +1100
+@@ -91,7 +91,7 @@
+ eval "envname=\$$#"
+ virtualenvwrapper_verify_workon_home || return 1
+ (cd "$WORKON_HOME" &&
+- virtualenv "$@" &&
++ __VIRTUALENV_BIN__ "$@" &&
+ virtualenvwrapper_run_hook "./premkvirtualenv" "$envname"
+ )
+ # If they passed a help option or got an error from virtualenv,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101101/8591be33/attachment-0001.html>
More information about the macports-changes
mailing list