summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-12-11 01:34:12 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-12-11 01:34:12 +0000
commitb26b4729baa78fb90ae25ca81ec441ce0dc1b1d5 (patch)
treedbbe934eb3c31a06f010c87afce6c204d0ab645d
parentVersion bump. (diff)
downloadgentoo-2-b26b4729baa78fb90ae25ca81ec441ce0dc1b1d5.tar.gz
gentoo-2-b26b4729baa78fb90ae25ca81ec441ce0dc1b1d5.tar.bz2
gentoo-2-b26b4729baa78fb90ae25ca81ec441ce0dc1b1d5.zip
Install for Python 3 (bug #295340).
(Portage version: 15027-svn/cvs/Linux x86_64)
-rw-r--r--dev-python/snakeoil/ChangeLog6
-rw-r--r--dev-python/snakeoil/snakeoil-0.3.3.ebuild14
2 files changed, 13 insertions, 7 deletions
diff --git a/dev-python/snakeoil/ChangeLog b/dev-python/snakeoil/ChangeLog
index 176eaffcfae0..deab2d352d26 100644
--- a/dev-python/snakeoil/ChangeLog
+++ b/dev-python/snakeoil/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/snakeoil
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v 1.24 2009/12/05 21:22:18 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v 1.25 2009/12/11 01:34:12 arfrever Exp $
+
+ 11 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ snakeoil-0.3.3.ebuild:
+ Install for Python 3 (bug #295340).
05 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
snakeoil-0.3.2.ebuild, snakeoil-0.3.3.ebuild:
diff --git a/dev-python/snakeoil/snakeoil-0.3.3.ebuild b/dev-python/snakeoil/snakeoil-0.3.3.ebuild
index 76a457c7eea2..5b34ee3d74a2 100644
--- a/dev-python/snakeoil/snakeoil-0.3.3.ebuild
+++ b/dev-python/snakeoil/snakeoil-0.3.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/snakeoil-0.3.3.ebuild,v 1.2 2009/12/05 21:22:18 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/snakeoil-0.3.3.ebuild,v 1.3 2009/12/11 01:34:12 arfrever Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
@@ -25,12 +25,14 @@ DOCS="AUTHORS NEWS"
pkg_setup() {
validate_PYTHON_ABIS
- # A hack to install for all versions of Python 2 in the system.
+ # A hack to install for all versions of Python in the system.
# pkgcore needs it to support upgrading to a different Python slot.
PYTHON_ABIS=""
- local python_version
- for python_version in /usr/bin/python2.[4-9]; do
- PYTHON_ABIS+=" ${python_version#/usr/bin/python}"
+ local python_interpreter
+ for python_interpreter in /usr/bin/python{2.[4-9],3.[0-9]}; do
+ if [[ -x "${python_interpreter}" ]]; then
+ PYTHON_ABIS+=" ${python_interpreter#/usr/bin/python}"
+ fi
done
export PYTHON_ABIS="${PYTHON_ABIS# }"
}
@@ -42,7 +44,7 @@ src_test() {
mkdir -p "${tempdir}" || die "tempdir creation failed"
cp -r "${S}" "${tempdir}" || die "test copy failed"
cd "${tempdir}/${P}"
- PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
+ PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
}
python_execute_function testing
}