summaryrefslogtreecommitdiff
path: root/app-shells/autojump
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-10 22:36:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-10 22:36:46 +0100
commit783da4542a9c3e0e1ec703644212707cde610679 (patch)
tree3e0cf56ac37ddf9d5fdc6ff0ced9135b1c7fc5e0 /app-shells/autojump
parentd0041c590ed45bbfeae458ea926e36bc64e41dd7 (diff)
gentoo auto-resync : 10:09:2023 - 22:36:45
Diffstat (limited to 'app-shells/autojump')
-rw-r--r--app-shells/autojump/Manifest3
-rw-r--r--app-shells/autojump/autojump-22.5.3-r1.ebuild2
-rw-r--r--app-shells/autojump/autojump-22.5.3-r2.ebuild88
3 files changed, 91 insertions, 2 deletions
diff --git a/app-shells/autojump/Manifest b/app-shells/autojump/Manifest
index 3876f2cd4f48..070057b95c61 100644
--- a/app-shells/autojump/Manifest
+++ b/app-shells/autojump/Manifest
@@ -1,4 +1,5 @@
AUX 22.5.3-Use-mock-from-unittest.patch 689 BLAKE2B b0d518d66efb7511b8bbd8d31f5ce00c7561e90e259289a4dff051665c19bc9f3537cb04ed77e89d18c9b3fd6edcb6e0b912f0b9dfc9db1fc491b11a21957828 SHA512 a15cf9369527535dd475db53aa014108af2fe6cc72b04b166589c2c9d7464dd2eb999998aa8d55fc306bd6432b3926dc11caf00009b7b45562221957dc748dcd
DIST autojump-22.5.3.tar.gz 55429 BLAKE2B 3a2773669f81d1a54c01cce9fe75bc01609265998b035b4ba1aa064f1132acf852b59eb04ebfa744e628152f0ab478cbef24e5aff326bf84cec6e2c9348e8360 SHA512 d1dd3cbb67fda4e0a17ec5028b947faf46be8a95a6cd8418127b927f42bc95b71538a06658b38b479c77d147a6cd5e8cef77639ef538c7d449414c469c13f140
-EBUILD autojump-22.5.3-r1.ebuild 2029 BLAKE2B 6276b4294da2691e5df403385ab807f8f46e12a6a7318c9f820e8a5fa0decff3ed42c3abeddefdbb91fc452e544fdeda0ff099fd58db5f83d90989654dace5ea SHA512 09649947a9ea6ebb0cf7a630f614319fd18ba056e5a757f8e44cfa312e49b794db3c5ee77ccad30599b8c8457bc49e6c0e574742470bdc6199d7557f0b7b10f2
+EBUILD autojump-22.5.3-r1.ebuild 2036 BLAKE2B b8f387ddfc0cecdbe04de04f9678fcca564c43178300ba0663365f861b769356784286762c1b84f2431551b4072354e79e9062ed64c12c31a6e43a5f9481e8bc SHA512 b306246b9c865b7cea20564d952cd2ce06b56539683c64c6426ce904b5eaeb3008ec919109e5a9a84eef4971dbbe3f85d7bcb72c88c6f218fe03a038807c4822
+EBUILD autojump-22.5.3-r2.ebuild 2043 BLAKE2B 25b8c97f450836b7b4d854c379eac3ba8749a4ee9856c5dab9fa533bc31c10a610328c62eeded3e33954593ce4b5056bab20d25e3e55d5e37c3f59a4934cf7da SHA512 0705f816b54528d58da31c8efd210990b894dfea5c36de09704a84d72c2e51ba55ba3a885c189289f0326eed3712eaab2a8820983e43590d29712c39ff6b53f5
MISC metadata.xml 491 BLAKE2B 775beb745c9218ed955dca11149ccb5b17c3efacc8f916ca15a65f67632e01feac271d5a36c39316de8024f352427b658cf35e54f5d03682d681920b730af4bb SHA512 d26e3c132c90c94bae47c1f7a4af71eaf873a12546d429632736885c515764aa612fb8155003643678d2156b42e94a692b0e3174d2b4825b559426c29eaa863c
diff --git a/app-shells/autojump/autojump-22.5.3-r1.ebuild b/app-shells/autojump/autojump-22.5.3-r1.ebuild
index 70ebc4038f03..f9eccb7b88fa 100644
--- a/app-shells/autojump/autojump-22.5.3-r1.ebuild
+++ b/app-shells/autojump/autojump-22.5.3-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="https://github.com/wting/${PN}/archive/release-v${PV}.tar.gz -> ${P}.ta
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="amd64 ~hppa ~ppc ~ppc64 x86 ~x64-macos"
+KEYWORDS="amd64 ~arm64 ~hppa ~ppc ~ppc64 x86 ~x64-macos"
IUSE="ipython test"
REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
diff --git a/app-shells/autojump/autojump-22.5.3-r2.ebuild b/app-shells/autojump/autojump-22.5.3-r2.ebuild
new file mode 100644
index 000000000000..709493ffca2a
--- /dev/null
+++ b/app-shells/autojump/autojump-22.5.3-r2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1 vcs-snapshot prefix
+
+DESCRIPTION="change directory command that learns"
+HOMEPAGE="https://github.com/wting/autojump"
+SRC_URI="https://github.com/wting/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~x64-macos"
+IUSE="ipython test"
+REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
+
+RESTRICT="!test? ( test )"
+RDEPEND="ipython? ( ${PYTHON_DEPS} )"
+DEPEND="${PYTHON_DEPS}
+ test? (
+ >=dev-vcs/pre-commit-0.7.0[${PYTHON_SINGLE_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-Use-mock-from-unittest.patch
+)
+
+src_prepare() {
+ default
+ sed -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
+
+ hprefixify -q '"' -w '/usr\/share/' bin/autojump.sh
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dobin bin/"${PN}"
+ python_doscript "${ED}"/usr/bin/"${PN}"
+
+ insinto /etc/profile.d
+ doins bin/"${PN}".sh
+
+ insinto /usr/share/"${PN}"/
+ doins bin/"${PN}.bash"
+ doins bin/"${PN}.zsh"
+ doins bin/"${PN}.fish"
+ insinto /usr/share/zsh/site-functions
+ doins bin/_j
+
+ python_domodule bin/autojump_argparse.py bin/autojump_data.py \
+ bin/autojump_match.py bin/autojump_utils.py
+ if use ipython; then
+ python_domodule tools/autojump_ipython.py
+ fi
+
+ doman docs/"${PN}.1"
+ einstalldocs
+}
+
+pkg_postinst() {
+ if use ipython; then
+ elog 'This tool provides "j" for ipython, please add'
+ elog '"import autojump_ipython" to your ipy_user_conf.py.'
+ elog
+ fi
+
+ elog 'If you use app-shells/fish, add the following code to your'
+ elog 'config.fish to get autojump support:'
+ elog 'if test -f /usr/share/autojump/autojump.fish'
+ elog ' source /usr/share/autojump/autojump.fish'
+ elog 'end'
+}