From c7f0491bea4a7ab3ff006b29d68c0c7e6eacc3e3 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 10 Jan 2012 00:57:53 +0100 Subject: dev-python/virtualenvwrapper: added python3 compatible ebuild --- dev-python/virtualenvwrapper/Manifest | 3 ++ dev-python/virtualenvwrapper/files/python-3.patch | 24 ++++++++++++++++ .../virtualenvwrapper/virtualenvwrapper-2.3.ebuild | 32 ++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 dev-python/virtualenvwrapper/Manifest create mode 100644 dev-python/virtualenvwrapper/files/python-3.patch create mode 100644 dev-python/virtualenvwrapper/virtualenvwrapper-2.3.ebuild 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 +} + -- cgit v1.2.3 From 2d79a5aff238ec5c30a80cbef8a43f5bbc88fa58 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 25 Jan 2012 02:31:47 +0100 Subject: gentwoo: added package, fix install with python3.x as system default --- app-portage/gentwoo/Manifest | 3 ++ app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild | 34 ++++++++++++++++++++++ app-portage/gentwoo/metadata.xml | 7 +++++ 3 files changed, 44 insertions(+) create mode 100644 app-portage/gentwoo/Manifest create mode 100644 app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild create mode 100644 app-portage/gentwoo/metadata.xml diff --git a/app-portage/gentwoo/Manifest b/app-portage/gentwoo/Manifest new file mode 100644 index 0000000..a9bed24 --- /dev/null +++ b/app-portage/gentwoo/Manifest @@ -0,0 +1,3 @@ +DIST gentwoo-0.0.20120122.tar.gz 1889 RMD160 0df13678294bbb234cdb80875666a169808a7cd8 SHA1 e86e82320b88d10b790a4dd6ced74398a354e057 SHA256 58dd564507b06c4521a4156ad960346cb8ef534c26e17a7fbdcb180df5c9757f +EBUILD gentwoo-0.0.20120122-r1.ebuild 746 RMD160 f9e0f00040c5d13417c6926abd8a76219f0a758c SHA1 fe330d5a8e5a71c3960921e9cfd3cde0199f46d6 SHA256 62fb5498930816be12df8151d6fee041bc49b25efb3304163cca221968b01c16 +MISC metadata.xml 200 RMD160 167c9687aa3fd25296ece5f3afedd8c789d8a1bf SHA1 7f57447652103281759d384144f3ab11d082b0dd SHA256 18465d6d340f50cd04424fa8fae519ab58e37da2a4c4bdf318a9467e5362292d diff --git a/app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild b/app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild new file mode 100644 index 0000000..8fcc01d --- /dev/null +++ b/app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +PYTHON_NEEDED="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3*" + +inherit eutils python + +DESCRIPTION="Client program for Social Compiling site GenTwoo" +HOMEPAGE="http://gentwoo.elisp.net" +SRC_URI="http://gentwoo.elisp.net/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="dev-python/simplejson" + +src_install() { + gentwoo_install() { + python_convert_shebangs -- ${PYTHON_ABI} gentwoo.py + newbin gentwoo.py gentwoo-${PYTHON_ABI} + } + python_execute_function gentwoo_install + python_generate_wrapper_scripts "${ED}"usr/bin/gentwoo + + insinto /etc + doins gentwoo.conf +} diff --git a/app-portage/gentwoo/metadata.xml b/app-portage/gentwoo/metadata.xml new file mode 100644 index 0000000..ac07e85 --- /dev/null +++ b/app-portage/gentwoo/metadata.xml @@ -0,0 +1,7 @@ + + + + + naota@gentoo.org + + -- cgit v1.2.3 From 0b5ce281fedef012c1d3a937d3251ab05741d9f2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 27 Jan 2012 00:37:48 +0100 Subject: gentwoo: removing ebuild, patches are upstream in the betagarden overlay --- app-portage/gentwoo/Manifest | 3 -- app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild | 34 ---------------------- app-portage/gentwoo/metadata.xml | 7 ----- 3 files changed, 44 deletions(-) delete mode 100644 app-portage/gentwoo/Manifest delete mode 100644 app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild delete mode 100644 app-portage/gentwoo/metadata.xml diff --git a/app-portage/gentwoo/Manifest b/app-portage/gentwoo/Manifest deleted file mode 100644 index a9bed24..0000000 --- a/app-portage/gentwoo/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST gentwoo-0.0.20120122.tar.gz 1889 RMD160 0df13678294bbb234cdb80875666a169808a7cd8 SHA1 e86e82320b88d10b790a4dd6ced74398a354e057 SHA256 58dd564507b06c4521a4156ad960346cb8ef534c26e17a7fbdcb180df5c9757f -EBUILD gentwoo-0.0.20120122-r1.ebuild 746 RMD160 f9e0f00040c5d13417c6926abd8a76219f0a758c SHA1 fe330d5a8e5a71c3960921e9cfd3cde0199f46d6 SHA256 62fb5498930816be12df8151d6fee041bc49b25efb3304163cca221968b01c16 -MISC metadata.xml 200 RMD160 167c9687aa3fd25296ece5f3afedd8c789d8a1bf SHA1 7f57447652103281759d384144f3ab11d082b0dd SHA256 18465d6d340f50cd04424fa8fae519ab58e37da2a4c4bdf318a9467e5362292d diff --git a/app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild b/app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild deleted file mode 100644 index 8fcc01d..0000000 --- a/app-portage/gentwoo/gentwoo-0.0.20120122-r1.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 -PYTHON_NEEDED="2" -SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3*" - -inherit eutils python - -DESCRIPTION="Client program for Social Compiling site GenTwoo" -HOMEPAGE="http://gentwoo.elisp.net" -SRC_URI="http://gentwoo.elisp.net/download/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="" -RDEPEND="dev-python/simplejson" - -src_install() { - gentwoo_install() { - python_convert_shebangs -- ${PYTHON_ABI} gentwoo.py - newbin gentwoo.py gentwoo-${PYTHON_ABI} - } - python_execute_function gentwoo_install - python_generate_wrapper_scripts "${ED}"usr/bin/gentwoo - - insinto /etc - doins gentwoo.conf -} diff --git a/app-portage/gentwoo/metadata.xml b/app-portage/gentwoo/metadata.xml deleted file mode 100644 index ac07e85..0000000 --- a/app-portage/gentwoo/metadata.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - naota@gentoo.org - - -- cgit v1.2.3