aboutsummaryrefslogtreecommitdiffstats
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dev-python/virtualenvwrapper/Manifest3
-rw-r--r--dev-python/virtualenvwrapper/files/python-3.patch24
-rw-r--r--dev-python/virtualenvwrapper/virtualenvwrapper-2.3.ebuild32
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/virtualenvwrapper/Manifest b/dev-python/virtualenvwrapper/Manifest
new file mode 100644
index 0000000..4d9c49f
--- /dev/null
+++ b/dev-python/virtualenvwrapper/Manifest
@@ -0,0 +1,3 @@
+AUX python-3.patch 1027 RMD160 7b640a40ee5ec7b23b72e98bff874ad1e0b4ca89 SHA1 1f2f84a304189f15331489fd84987c665f126bc2 SHA256 3467df56fb064eb59c3aea7a1e01d8d611aac65004d48f7b08188dbf01638484
+DIST virtualenvwrapper-2.3.tar.gz 219201 RMD160 69927244d7834d7b3ac2e6d1a91e56292f5ebdfa SHA1 ac8f414f870b0e8567167a7e43410db546030cb0 SHA256 fdd0fc508bfe9580ef6a6554b17485171240c608a6ad8e3df38e8dfcf68ad0a0
+EBUILD virtualenvwrapper-2.3.ebuild 760 RMD160 e026ceb1941b0ffec0f7fd8d8f0edb6e8f6091a6 SHA1 8337feaaeab9247246a7502510effde56097fcda SHA256 52cf1fc6544788484f8f43980a107a22a243c1199edb88ef4606cc8e80500d41
diff --git a/dev-python/virtualenvwrapper/files/python-3.patch b/dev-python/virtualenvwrapper/files/python-3.patch
new file mode 100644
index 0000000..1fe8005
--- /dev/null
+++ b/dev-python/virtualenvwrapper/files/python-3.patch
@@ -0,0 +1,24 @@
+--- a/virtualenvwrapper/hook_loader.py Sun Feb 27 09:24:38 2011 -0500
++++ b/virtualenvwrapper/hook_loader.py Mon Feb 28 01:05:11 2011 +0000
+@@ -125,7 +125,7 @@
+ continue
+ plugin = ep.load()
+ if options.listing:
+- print ' {0:10} -- {1}'.format(ep.name, inspect.getdoc(plugin) or '')
++ print(' {0:10} -- {1}'.format(ep.name, inspect.getdoc(plugin) or ''))
+ continue
+ if options.sourcing:
+ # Show the shell commands so they can
+--- a/virtualenvwrapper/user_scripts.py Sun Feb 27 09:24:38 2011 -0500
++++ b/virtualenvwrapper/user_scripts.py Mon Feb 28 01:05:11 2011 +0000
+@@ -28,7 +28,9 @@
+ log.debug('running %s', str(cmd))
+ try:
+ return_code = subprocess.call(cmd)
+- except OSError, msg:
++ except OSError:
++ import sys
++ msg = sys.exc_info()[1]
+ log.error('ERROR: Could not run %s. %s', script_path, str(msg))
+ #log.debug('Returned %s', return_code)
+ return
diff --git a/dev-python/virtualenvwrapper/virtualenvwrapper-2.3.ebuild b/dev-python/virtualenvwrapper/virtualenvwrapper-2.3.ebuild
new file mode 100644
index 0000000..0f5fdba
--- /dev/null
+++ b/dev-python/virtualenvwrapper/virtualenvwrapper-2.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
+
+inherit distutils eutils
+
+DESCRIPTION="Enhancements to virtualenv"
+HOMEPAGE="http://pypi.python.org/pypi/virtualenvwrapper"
+SRC_URI="http://www.doughellmann.com/downloads/${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-python/virtualenv"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ python_copy_sources
+
+ patching() {
+ [[ "${PYTHON_ABI}" != 3.* ]] && return
+ epatch "${FILESDIR}/python-3.patch"
+ }
+ python_execute_function --action-message 'Applying patches with $(python_get_implementation) $(python_get_version)' -s patching
+}
+