summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Joliet <marcec@gmx.de>2015-11-29 09:25:18 +0100
committerMarc Joliet <marcec@gmx.de>2015-12-04 22:00:20 +0100
commit58d63506e2747f0b734485340f3c29b7d723ee06 (patch)
tree3b4e32a815617fce37935146bf5014dd854effe3 /app-shells
parentapp-shells/autojump-22.2.4-r4: use python_replicate_script (diff)
downloadgentoo-58d63506e2747f0b734485340f3c29b7d723ee06.tar.gz
gentoo-58d63506e2747f0b734485340f3c29b7d723ee06.tar.bz2
gentoo-58d63506e2747f0b734485340f3c29b7d723ee06.zip
app-shells/autojump-22.2.4-r4: rm bundled argparse
Upstream only includes the bundled argparse module for Python 2.6 support. Patch bin/autojump to use the built-in argparse module instead. Signed-off-by: Marc Joliet <marcec@gmx.de>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/autojump/autojump-22.2.4-r4.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/app-shells/autojump/autojump-22.2.4-r4.ebuild b/app-shells/autojump/autojump-22.2.4-r4.ebuild
index 3b216104a294..af56c093c198 100644
--- a/app-shells/autojump/autojump-22.2.4-r4.ebuild
+++ b/app-shells/autojump/autojump-22.2.4-r4.ebuild
@@ -27,6 +27,10 @@ src_prepare() {
-e "s:/usr/local/share:/usr/share:" \
-i bin/autojump.sh || die
+ # autojump_argparse is only there for Python 2.6 compatibility
+ sed -e "s:autojump_argparse:argparse:" \
+ -i bin/autojump || die
+
# 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"
@@ -51,7 +55,7 @@ src_install() {
insinto /usr/share/zsh/site-functions
doins bin/_j
- python_foreach_impl python_domodule bin/autojump_argparse.py bin/autojump_data.py bin/autojump_utils.py
+ python_foreach_impl python_domodule bin/autojump_data.py bin/autojump_utils.py
if use python; then
python_foreach_impl python_domodule tools/autojump_ipython.py
einfo 'This tool provides "j" for ipython, please add'