diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
commit | d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch) | |
tree | 4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /app-shells/autojump | |
parent | e748ba9741f6540f4675c23e3e37b73e822c13a4 (diff) |
gentoo resync : 15.06.2021
Diffstat (limited to 'app-shells/autojump')
-rw-r--r-- | app-shells/autojump/Manifest | 1 | ||||
-rw-r--r-- | app-shells/autojump/autojump-22.5.3-r1.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/app-shells/autojump/Manifest b/app-shells/autojump/Manifest index eedda1ee7106..e65a838cf9c9 100644 --- a/app-shells/autojump/Manifest +++ b/app-shells/autojump/Manifest @@ -1,3 +1,4 @@ DIST autojump-22.5.3.tar.gz 55429 BLAKE2B 3a2773669f81d1a54c01cce9fe75bc01609265998b035b4ba1aa064f1132acf852b59eb04ebfa744e628152f0ab478cbef24e5aff326bf84cec6e2c9348e8360 SHA512 d1dd3cbb67fda4e0a17ec5028b947faf46be8a95a6cd8418127b927f42bc95b71538a06658b38b479c77d147a6cd5e8cef77639ef538c7d449414c469c13f140 +EBUILD autojump-22.5.3-r1.ebuild 1973 BLAKE2B dc81d398100adbe54cd9bd7c838f1752ff7561eba3b63573a99918463a3bdd7ee30efad01316dd3bc0cfea243e93cc3dc4e01600b7feffd65de9754f54ffcdfb SHA512 cec85f2406aebbdf51ff51063493a9aa6caed244f011fdb51e3c8cfea8baacbbb139c48e58cfb68f8c13663f3fbea327de8d385eeddfcc65cf286f8d6eff969a EBUILD autojump-22.5.3.ebuild 1920 BLAKE2B 5ce4f10233f3c6e54124724ebc8ea3bb4ac41d377c870081ab68a614bdf10c7f81160e6eee1b62a0ec5198df4049f32112f31ed01fcd89c7637048829f1a1427 SHA512 beb84dfaa1c1dab86555fbb8421b0c12c38bb00124291dc4d10db14ade392440a65e5a45793ffb520d5ebca21d3dd58dc11a168a14c0cabfdcf849cddf77031b MISC metadata.xml 490 BLAKE2B 33ef64a70f2b0d3211861a9ae667a4ed930f850a0198661cd3371024ac6193c80d3121ca188f48cac4732741fdea08e918c8ef78161a921127ec82b1064dd1c1 SHA512 c7742421c4211de2b774bb6136261863bd69a93debe3f1ab4b921e9f19a7581ef2711fbe2090ada92b60f799cd6683368e48d974ab9698ae3c2b5f768cd34db9 diff --git a/app-shells/autojump/autojump-22.5.3-r1.ebuild b/app-shells/autojump/autojump-22.5.3-r1.ebuild new file mode 100644 index 000000000000..a8d2faf130c3 --- /dev/null +++ b/app-shells/autojump/autojump-22.5.3-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 bash-completion-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 ~hppa ~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 + +src_prepare() { + eapply_user + 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' +} |