Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/autojump/
Date: Tue, 09 Apr 2019 16:10:44
Message-Id: 1554826208.c455eb27b86e4cbc6e744535456419d899e39374.mattst88@gentoo
1 commit: c455eb27b86e4cbc6e744535456419d899e39374
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 9 15:51:26 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 16:10:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c455eb27
7
8 app-shells/autojump: Version bump to 22.5.3
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 app-shells/autojump/Manifest | 1 +
13 app-shells/autojump/autojump-22.5.3.ebuild | 76 ++++++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/app-shells/autojump/Manifest b/app-shells/autojump/Manifest
17 index 03334480107..6127b32c7a8 100644
18 --- a/app-shells/autojump/Manifest
19 +++ b/app-shells/autojump/Manifest
20 @@ -1,2 +1,3 @@
21 DIST autojump-22.2.4.tar.gz 52724 BLAKE2B 42d5db90d4a29c63f5cd79437ca005f9f6382a607ab9284244fd6bbcf539509c5043df71ab305a5e8420ec225f8d651411d327833762737e0a5ad828ac021d2b SHA512 bdfca07bb57b3a2733a2085af14f23c3e980b1b00db1c90247c2341ac73f60f171bdde29dd9917aac0808d0b8f2902d48096c990e09281745a71755f5abc921c
22 DIST autojump-22.5.1.tar.gz 54721 BLAKE2B ea3a852dddc13ece5ff177be0b3f384e5dcb19795d31d22edae90dba19fe3e78a4b78f48f08c338521d89d57af6251d5690c62eab445229812adb154286b0d5c SHA512 ed1bb28b62d14a481d5c8ee8ebbfc286d21ca54c961904f81ac123c784e17810217dfe1689bdd4b50fd7a9d72509c0cb13583a9817074f6afe26dc3144f64243
23 +DIST autojump-22.5.3.tar.gz 55429 BLAKE2B 3a2773669f81d1a54c01cce9fe75bc01609265998b035b4ba1aa064f1132acf852b59eb04ebfa744e628152f0ab478cbef24e5aff326bf84cec6e2c9348e8360 SHA512 d1dd3cbb67fda4e0a17ec5028b947faf46be8a95a6cd8418127b927f42bc95b71538a06658b38b479c77d147a6cd5e8cef77639ef538c7d449414c469c13f140
24
25 diff --git a/app-shells/autojump/autojump-22.5.3.ebuild b/app-shells/autojump/autojump-22.5.3.ebuild
26 new file mode 100644
27 index 00000000000..fe3883cf63e
28 --- /dev/null
29 +++ b/app-shells/autojump/autojump-22.5.3.ebuild
30 @@ -0,0 +1,76 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
37 +
38 +inherit bash-completion-r1 python-r1 vcs-snapshot
39 +
40 +DESCRIPTION="change directory command that learns"
41 +HOMEPAGE="https://github.com/wting/autojump"
42 +SRC_URI="https://github.com/wting/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~x86 ~x64-macos"
47 +IUSE="ipython test"
48 +REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
49 +
50 +# Not all tests pass. Need investigation.
51 +RESTRICT="test"
52 +RDEPEND="ipython? ( ${PYTHON_DEPS} )"
53 +DEPEND="${PYTHON_DEPS}"
54 +
55 +src_prepare() {
56 + eapply_user
57 + sed -e "s: \(/etc/profile.d\): \"${EPREFIX}\1\":" \
58 + -e "s:/usr/local/share:/usr/share:" \
59 + -i bin/autojump.sh || die
60 +
61 + # autojump_argparse is only there for Python 2.6 compatibility
62 + sed -e "s:autojump_argparse:argparse:" \
63 + -i bin/autojump || die
64 +}
65 +
66 +src_compile() {
67 + :
68 +}
69 +
70 +src_install() {
71 + dobin bin/"${PN}"
72 + python_replicate_script "${ED}"/usr/bin/"${PN}"
73 +
74 + insinto /etc/profile.d
75 + doins bin/"${PN}".sh
76 +
77 + insinto /usr/share/"${PN}"/
78 + doins bin/"${PN}.bash"
79 + doins bin/"${PN}.zsh"
80 + doins bin/"${PN}.fish"
81 + insinto /usr/share/zsh/site-functions
82 + doins bin/_j
83 +
84 + python_foreach_impl python_domodule bin/autojump_argparse.py bin/autojump_data.py \
85 + bin/autojump_match.py bin/autojump_utils.py
86 + if use ipython; then
87 + python_foreach_impl python_domodule tools/autojump_ipython.py
88 + fi
89 +
90 + doman docs/"${PN}.1"
91 + einstalldocs
92 +}
93 +
94 +pkg_postinst() {
95 + if use ipython; then
96 + elog 'This tool provides "j" for ipython, please add'
97 + elog '"import autojump_ipython" to your ipy_user_conf.py.'
98 + elog
99 + fi
100 +
101 + elog 'If you use app-shells/fish, add the following code to your'
102 + elog 'config.fish to get autojump support:'
103 + elog 'if test -f /usr/share/autojump/autojump.fish'
104 + elog ' source /usr/share/autojump/autojump.fish'
105 + elog 'end'
106 +}