app-shells/autojump: Stable for amd64+x86.
authorPatrice Clement <monsieurp@gentoo.org>
Wed, 17 Feb 2016 10:31:00 +0000 (10:31 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 17 Feb 2016 10:35:44 +0000 (10:35 +0000)
Package-Manager: portage-2.2.26

app-shells/autojump/autojump-22.2.4-r4.ebuild
app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch [moved from app-shells/autojump/files/autojump-22.4.4-fix-__aj_error-typo.patch with 100% similarity]
app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch [moved from app-shells/autojump/files/autojump-22.4.4-fix-autojump.fish-bugs.patch with 100% similarity]

index 84bf29112be305805483956d6d88fabe64147279..8ba85aaf46a4bde507a3956ca9187ae6fbc5de27 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> $
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
 IUSE="ipython test"
 
 # Not all tests pass. Need investigation.
@@ -22,6 +22,11 @@ RESTRICT="test"
 RDEPEND="ipython? ( ${PYTHON_DEPS} )"
 DEPEND="test? ( dev-python/flake8 dev-python/tox )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-fix-autojump.fish-bugs.patch"
+       "${FILESDIR}/${P}-fix-__aj_error-typo.patch"
+)
+
 src_prepare() {
        sed -e "s: \(/etc/profile.d\): \"${EPREFIX}\1\":" \
                -e "s:/usr/local/share:/usr/share:" \
@@ -33,8 +38,7 @@ src_prepare() {
 
        # upstream fixes to the autojump.fish script; the first patch is needed for
        # the second patch to apply
-       epatch "${FILESDIR}/autojump-22.4.4-fix-autojump.fish-bugs.patch"
-       epatch "${FILESDIR}/autojump-22.4.4-fix-__aj_error-typo.patch"
+       epatch "${PATCHES[@]}"
 }
 
 src_compile() {
@@ -42,8 +46,8 @@ src_compile() {
 }
 
 src_install() {
-       dobin bin/autojump
-       python_replicate_script "${ED}"/usr/bin/autojump
+       dobin bin/"${PN}"
+       python_replicate_script "${ED}"/usr/bin/"${PN}"
 
        insinto /etc/profile.d
        doins bin/"${PN}".sh