summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-02-18 05:31:48 +0000
committerZac Medico <zmedico@gentoo.org>2012-02-18 05:31:48 +0000
commitc6f2ea571c25ca0eaf3c1481202789205e59895e (patch)
treed4e18bcf6c972ca2dd5137cd9f38cddced685afc /sys-apps
parent2.1.10.47 version bump. This fixes bug #402339 (repoman check for env-update (diff)
downloadgentoo-2-c6f2ea571c25ca0eaf3c1481202789205e59895e.tar.gz
gentoo-2-c6f2ea571c25ca0eaf3c1481202789205e59895e.tar.bz2
gentoo-2-c6f2ea571c25ca0eaf3c1481202789205e59895e.zip
2.2.0_alpha87 version bump. This includes all of the fixes in
portage-2.1.10.47. Bug #210077 tracks all bugs fixed since portage-2.1.x. (Portage version: 2.2.0_alpha87/cvs/Linux i686)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage/ChangeLog9
-rw-r--r--sys-apps/portage/portage-2.2.0_alpha87.ebuild (renamed from sys-apps/portage/portage-2.2.0_alpha85.ebuild)37
2 files changed, 34 insertions, 12 deletions
diff --git a/sys-apps/portage/ChangeLog b/sys-apps/portage/ChangeLog
index dca2c8704c86..4d4edbb1a306 100644
--- a/sys-apps/portage/ChangeLog
+++ b/sys-apps/portage/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/portage
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.962 2012/02/18 05:29:01 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.963 2012/02/18 05:31:48 zmedico Exp $
+
+*portage-2.2.0_alpha87 (18 Feb 2012)
+
+ 18 Feb 2012; Zac Medico <zmedico@gentoo.org> +portage-2.2.0_alpha87.ebuild,
+ -portage-2.2.0_alpha85.ebuild:
+ 2.2.0_alpha87 version bump. This includes all of the fixes in
+ portage-2.1.10.47. Bug #210077 tracks all bugs fixed since portage-2.1.x.
*portage-2.1.10.47 (18 Feb 2012)
diff --git a/sys-apps/portage/portage-2.2.0_alpha85.ebuild b/sys-apps/portage/portage-2.2.0_alpha87.ebuild
index 46f70cc4cbea..55d6eee93135 100644
--- a/sys-apps/portage/portage-2.2.0_alpha85.ebuild
+++ b/sys-apps/portage/portage-2.2.0_alpha87.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha85.ebuild,v 1.2 2012/02/05 15:28:51 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.2.0_alpha87.ebuild,v 1.1 2012/02/18 05:31:48 zmedico Exp $
# Require EAPI 2 since we now require at least python-2.6 (for python 3
# syntax support) which also requires EAPI 2.
@@ -12,15 +12,16 @@ HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
LICENSE="GPL-2"
KEYWORDS="~sparc-fbsd ~x86-fbsd"
SLOT="0"
-IUSE="build doc epydoc +ipc linguas_pl python2 python3 selinux xattr"
+IUSE="build doc epydoc +ipc linguas_pl pypy1_8 python2 python3 selinux xattr"
# Import of the io module in python-2.6 raises ImportError for the
# thread module if threading is disabled.
python_dep="python3? ( =dev-lang/python-3* )
- !python2? ( !python3? (
+ !pypy1_8? ( !python2? ( !python3? (
build? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) )
- !build? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] >=dev-lang/python-3 ) )
- ) )
+ !build? ( || ( >=dev-lang/python-2.7 dev-lang/python:2.6[threads] ) )
+ ) ) )
+ pypy1_8? ( !python2? ( !python3? ( dev-python/pypy:1.8[bzip2] ) ) )
python2? ( !python3? ( || ( dev-lang/python:2.7 dev-lang/python:2.6[threads] ) ) )"
# The pysqlite blocker is for bug #282760.
@@ -66,7 +67,7 @@ prefix_src_archives() {
PV_PL="2.1.2"
PATCHVER_PL=""
-TARBALL_PV=2.2.0_alpha84
+TARBALL_PV=2.2.0_alpha86
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)
linguas_pl? ( mirror://gentoo/${PN}-man-pl-${PV_PL}.tar.bz2
@@ -83,11 +84,12 @@ S="${WORKDIR}"/${PN}-${TARBALL_PV}
S_PL="${WORKDIR}"/${PN}-${PV_PL}
compatible_python_is_selected() {
- [[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]]
+ [[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x2060000 and "good" or "bad")') = good ]]
}
current_python_has_xattr() {
- [[ $(/usr/bin/python -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]]
+ [[ $("${EPREFIX}/usr/bin/python" -c 'import sys ; sys.stdout.write(sys.hexversion >= 0x3030000 and "yes" or "no")') = yes ]] || \
+ "${EPREFIX}/usr/bin/python" -c 'import xattr' 2>/dev/null
}
pkg_setup() {
@@ -99,7 +101,16 @@ pkg_setup() {
ewarn "Both python2 and python3 USE flags are enabled, but only one"
ewarn "can be in the shebangs. Using python3."
fi
- if ! use python2 && ! use python3 && ! compatible_python_is_selected ; then
+ if use pypy1_8 && use python3 ; then
+ ewarn "Both pypy1_8 and python3 USE flags are enabled, but only one"
+ ewarn "can be in the shebangs. Using python3."
+ fi
+ if use pypy1_8 && use python2 ; then
+ ewarn "Both pypy1_8 and python2 USE flags are enabled, but only one"
+ ewarn "can be in the shebangs. Using python2"
+ fi
+ if ! use pypy1_8 && ! use python2 && ! use python3 && \
+ ! compatible_python_is_selected ; then
ewarn "Attempting to select a compatible default python interpreter"
local x success=0
for x in /usr/bin/python2.* ; do
@@ -123,6 +134,8 @@ pkg_setup() {
python_set_active_version 3
elif use python2; then
python_set_active_version 2
+ elif use pypy1_8; then
+ python_set_active_version 2.7-pypy-1.8
fi
}
@@ -161,6 +174,9 @@ src_prepare() {
elif use python2; then
einfo "Converting shebangs for python2..."
python_convert_shebangs -r 2 .
+ elif use pypy1_8; then
+ einfo "Converting shebangs for pypy-c1.8..."
+ python_convert_shebangs -r 2.7-pypy-1.8 .
fi
if [[ -n ${EPREFIX} ]] ; then
@@ -356,8 +372,7 @@ pkg_preinst() {
fi
fi
- if use xattr && ! current_python_has_xattr && \
- ! has_version dev-python/pyxattr ; then
+ if use xattr && ! current_python_has_xattr ; then
ewarn "For optimal performance in xattr handling, install"
ewarn "dev-python/pyxattr, or install >=dev-lang/python-3.3 and"
ewarn "enable USE=python3 for $CATEGORY/$PN."