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/files/, app-shells/autojump/
Date: Wed, 19 Aug 2020 04:39:05
Message-Id: 1597811896.93ec289e60f1a74adc57bef9dc673b6af2f8dff2.mattst88@gentoo
1 commit: 93ec289e60f1a74adc57bef9dc673b6af2f8dff2
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 19 04:36:34 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 19 04:38:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ec289e
7
8 app-shells/autojump: Drop old versions
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 app-shells/autojump/Manifest | 2 -
13 app-shells/autojump/autojump-22.2.4-r4.ebuild | 83 ----------------------
14 app-shells/autojump/autojump-22.5.1.ebuild | 76 --------------------
15 .../autojump-22.2.4-fix-__aj_error-typo.patch | 22 ------
16 .../autojump-22.2.4-fix-autojump.fish-bugs.patch | 67 -----------------
17 5 files changed, 250 deletions(-)
18
19 diff --git a/app-shells/autojump/Manifest b/app-shells/autojump/Manifest
20 index 6127b32c7a8..02b5487c4db 100644
21 --- a/app-shells/autojump/Manifest
22 +++ b/app-shells/autojump/Manifest
23 @@ -1,3 +1 @@
24 -DIST autojump-22.2.4.tar.gz 52724 BLAKE2B 42d5db90d4a29c63f5cd79437ca005f9f6382a607ab9284244fd6bbcf539509c5043df71ab305a5e8420ec225f8d651411d327833762737e0a5ad828ac021d2b SHA512 bdfca07bb57b3a2733a2085af14f23c3e980b1b00db1c90247c2341ac73f60f171bdde29dd9917aac0808d0b8f2902d48096c990e09281745a71755f5abc921c
25 -DIST autojump-22.5.1.tar.gz 54721 BLAKE2B ea3a852dddc13ece5ff177be0b3f384e5dcb19795d31d22edae90dba19fe3e78a4b78f48f08c338521d89d57af6251d5690c62eab445229812adb154286b0d5c SHA512 ed1bb28b62d14a481d5c8ee8ebbfc286d21ca54c961904f81ac123c784e17810217dfe1689bdd4b50fd7a9d72509c0cb13583a9817074f6afe26dc3144f64243
26 DIST autojump-22.5.3.tar.gz 55429 BLAKE2B 3a2773669f81d1a54c01cce9fe75bc01609265998b035b4ba1aa064f1132acf852b59eb04ebfa744e628152f0ab478cbef24e5aff326bf84cec6e2c9348e8360 SHA512 d1dd3cbb67fda4e0a17ec5028b947faf46be8a95a6cd8418127b927f42bc95b71538a06658b38b479c77d147a6cd5e8cef77639ef538c7d449414c469c13f140
27
28 diff --git a/app-shells/autojump/autojump-22.2.4-r4.ebuild b/app-shells/autojump/autojump-22.2.4-r4.ebuild
29 deleted file mode 100644
30 index cbaa265735d..00000000000
31 --- a/app-shells/autojump/autojump-22.2.4-r4.ebuild
32 +++ /dev/null
33 @@ -1,83 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=5
38 -
39 -PYTHON_COMPAT=( python3_6 )
40 -
41 -inherit bash-completion-r1 python-r1 vcs-snapshot
42 -
43 -DESCRIPTION="change directory command that learns"
44 -HOMEPAGE="https://github.com/joelthelion/autojump"
45 -SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="GPL-3"
48 -SLOT="0"
49 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
50 -IUSE="ipython test"
51 -REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
52 -
53 -# Not all tests pass. Need investigation.
54 -RESTRICT="test"
55 -RDEPEND="ipython? ( ${PYTHON_DEPS} )"
56 -DEPEND="test? ( dev-python/flake8 dev-python/tox )"
57 -
58 -PATCHES=(
59 - "${FILESDIR}/${P}-fix-autojump.fish-bugs.patch"
60 - "${FILESDIR}/${P}-fix-__aj_error-typo.patch"
61 -)
62 -
63 -src_prepare() {
64 - sed -e "s: \(/etc/profile.d\): \"${EPREFIX}\1\":" \
65 - -e "s:/usr/local/share:/usr/share:" \
66 - -i bin/autojump.sh || die
67 -
68 - # autojump_argparse is only there for Python 2.6 compatibility
69 - sed -e "s:autojump_argparse:argparse:" \
70 - -i bin/autojump || die
71 -
72 - # upstream fixes to the autojump.fish script; the first patch is needed for
73 - # the second patch to apply
74 - epatch "${PATCHES[@]}"
75 -}
76 -
77 -src_compile() {
78 - :
79 -}
80 -
81 -src_install() {
82 - dobin bin/"${PN}"
83 - python_replicate_script "${ED}"/usr/bin/"${PN}"
84 -
85 - insinto /etc/profile.d
86 - doins bin/"${PN}".sh
87 -
88 - insinto /usr/share/"${PN}"/
89 - doins bin/"${PN}.bash"
90 - doins bin/"${PN}.zsh"
91 - doins bin/"${PN}.fish"
92 - insinto /usr/share/zsh/site-functions
93 - doins bin/_j
94 -
95 - python_foreach_impl python_domodule bin/autojump_data.py bin/autojump_utils.py
96 - if use ipython; then
97 - python_foreach_impl python_domodule tools/autojump_ipython.py
98 - fi
99 -
100 - doman docs/"${PN}.1"
101 - dodoc README.md
102 -}
103 -
104 -pkg_postinst() {
105 - if use ipython; then
106 - elog 'This tool provides "j" for ipython, please add'
107 - elog '"import autojump_ipython" to your ipy_user_conf.py.'
108 - elog
109 - fi
110 -
111 - elog 'If you use app-shells/fish, add the following code to your'
112 - elog 'config.fish to get autojump support:'
113 - elog 'if test -f /usr/share/autojump/autojump.fish'
114 - elog ' source /usr/share/autojump/autojump.fish'
115 - elog 'end'
116 -}
117
118 diff --git a/app-shells/autojump/autojump-22.5.1.ebuild b/app-shells/autojump/autojump-22.5.1.ebuild
119 deleted file mode 100644
120 index 245a0758bb7..00000000000
121 --- a/app-shells/autojump/autojump-22.5.1.ebuild
122 +++ /dev/null
123 @@ -1,76 +0,0 @@
124 -# Copyright 1999-2020 Gentoo Authors
125 -# Distributed under the terms of the GNU General Public License v2
126 -
127 -EAPI=6
128 -
129 -PYTHON_COMPAT=( python3_6 )
130 -
131 -inherit bash-completion-r1 python-r1 vcs-snapshot
132 -
133 -DESCRIPTION="change directory command that learns"
134 -HOMEPAGE="https://github.com/wting/autojump"
135 -SRC_URI="https://github.com/wting/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
136 -
137 -LICENSE="GPL-3"
138 -SLOT="0"
139 -KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~x86 ~x64-macos"
140 -IUSE="ipython test"
141 -REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
142 -
143 -# Not all tests pass. Need investigation.
144 -RESTRICT="test"
145 -RDEPEND="ipython? ( ${PYTHON_DEPS} )"
146 -DEPEND="${PYTHON_DEPS}"
147 -
148 -src_prepare() {
149 - eapply_user
150 - sed -e "s: \(/etc/profile.d\): \"${EPREFIX}\1\":" \
151 - -e "s:/usr/local/share:/usr/share:" \
152 - -i bin/autojump.sh || die
153 -
154 - # autojump_argparse is only there for Python 2.6 compatibility
155 - sed -e "s:autojump_argparse:argparse:" \
156 - -i bin/autojump || die
157 -}
158 -
159 -src_compile() {
160 - :
161 -}
162 -
163 -src_install() {
164 - dobin bin/"${PN}"
165 - python_replicate_script "${ED}"/usr/bin/"${PN}"
166 -
167 - insinto /etc/profile.d
168 - doins bin/"${PN}".sh
169 -
170 - insinto /usr/share/"${PN}"/
171 - doins bin/"${PN}.bash"
172 - doins bin/"${PN}.zsh"
173 - doins bin/"${PN}.fish"
174 - insinto /usr/share/zsh/site-functions
175 - doins bin/_j
176 -
177 - python_foreach_impl python_domodule bin/autojump_argparse.py bin/autojump_data.py \
178 - bin/autojump_match.py bin/autojump_utils.py
179 - if use ipython; then
180 - python_foreach_impl python_domodule tools/autojump_ipython.py
181 - fi
182 -
183 - doman docs/"${PN}.1"
184 - einstalldocs
185 -}
186 -
187 -pkg_postinst() {
188 - if use ipython; then
189 - elog 'This tool provides "j" for ipython, please add'
190 - elog '"import autojump_ipython" to your ipy_user_conf.py.'
191 - elog
192 - fi
193 -
194 - elog 'If you use app-shells/fish, add the following code to your'
195 - elog 'config.fish to get autojump support:'
196 - elog 'if test -f /usr/share/autojump/autojump.fish'
197 - elog ' source /usr/share/autojump/autojump.fish'
198 - elog 'end'
199 -}
200
201 diff --git a/app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch b/app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch
202 deleted file mode 100644
203 index 6a9ac3c83c8..00000000000
204 --- a/app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch
205 +++ /dev/null
206 @@ -1,22 +0,0 @@
207 -From d188d7e6757a4d0cad619b6d5ab729fdc59b1593 Mon Sep 17 00:00:00 2001
208 -From: Scott Olson <scott@×××××××××××.org>
209 -Date: Mon, 6 Jul 2015 23:12:35 -0400
210 -Subject: [PATCH] Fix typo (__aj_error -> __aj_err).
211 -
212 ----
213 - bin/autojump.fish | 2 +-
214 - 1 file changed, 1 insertion(+), 1 deletion(-)
215 -
216 -diff --git a/bin/autojump.fish b/bin/autojump.fish
217 -index ead7ea1..b16ef01 100644
218 ---- a/bin/autojump.fish
219 -+++ b/bin/autojump.fish
220 -@@ -91,7 +91,7 @@ function jo
221 - case cygwin
222 - cygstart "" (cygpath -w -a (pwd))
223 - case '*'
224 -- __aj_error "Unknown operating system: \"$OSTYPE\""
225 -+ __aj_err "Unknown operating system: \"$OSTYPE\""
226 - end
227 - else
228 - __aj_err "autojump: directory '"$argv"' not found"
229
230 diff --git a/app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch b/app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch
231 deleted file mode 100644
232 index 6048ca98937..00000000000
233 --- a/app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch
234 +++ /dev/null
235 @@ -1,67 +0,0 @@
236 -From f09d23e30d3159db18872a3e8f8f579ed9e77231 Mon Sep 17 00:00:00 2001
237 -From: David Frascone <David.Frascone@×××××××××××.com>
238 -Date: Tue, 9 Jun 2015 14:32:38 -0600
239 -Subject: [PATCH] Fixed some bugs in fish script
240 -
241 -OSTYPE was not being set correctly. It is in bash, not sh.
242 - Since the value is unlikely to change, I read it once and
243 - stored it globally
244 -Test logic was backward in jo function, causing error to always
245 - be printed, unless you did NOT specify a directory name.
246 ----
247 - bin/autojump.fish | 20 ++++++++++++--------
248 - 1 file changed, 12 insertions(+), 8 deletions(-)
249 -
250 -diff --git a/bin/autojump.fish b/bin/autojump.fish
251 -index 2cf5001..19cb27e 100644
252 ---- a/bin/autojump.fish
253 -+++ b/bin/autojump.fish
254 -@@ -5,6 +5,11 @@ if test -d ~/.autojump
255 - set -x PATH ~/.autojump/bin $PATH
256 - end
257 -
258 -+# Set ostype, if not set
259 -+if not set -q OSTYPE
260 -+ set -gx OSTYPE (bash -c 'echo ${OSTYPE}')
261 -+end
262 -+
263 -
264 - # enable tab completion
265 - complete -x -c j -a '(autojump --complete (commandline -t))'
266 -@@ -34,7 +39,7 @@ end
267 - # misc helper functions
268 - function __aj_err
269 - # TODO(ting|#247): set error file location
270 -- echo $argv 1>&2; false
271 -+ echo -e $argv 1>&2; false
272 - end
273 -
274 - # default autojump command
275 -@@ -73,11 +78,7 @@ end
276 - function jo
277 - set -l output (autojump $argv)
278 - if test -d "$output"
279 -- __aj_err "autojump: directory '"$argv"' not found"
280 -- __aj_err "\n$output\n"
281 -- __aj_err "Try `autojump --help` for more information."
282 -- else
283 -- switch (sh -c 'echo ${OSTYPE}')
284 -+ switch $OSTYPE
285 - case 'linux*'
286 - xdg-open (autojump $argv)
287 - case 'darwin*'
288 -@@ -85,9 +86,12 @@ function jo
289 - case cygwin
290 - cygstart "" (cygpath -w -a (pwd))
291 - case '*'
292 -- __aj_error "Unknown operating system: '"$OSTYPE"'"
293 -+ __aj_error "Unknown operating system: \"$OSTYPE\""
294 - end
295 -- echo end
296 -+ else
297 -+ __aj_err "autojump: directory '"$argv"' not found"
298 -+ __aj_err "\n$output\n"
299 -+ __aj_err "Try `autojump --help` for more information."
300 - end
301 - end
302 -