Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-shells/fzf-tab/
Date: Fri, 30 Sep 2022 02:12:34
Message-Id: 1664460986.1c2ae1df6ff5441c0b9c036f54ae7195d3a5d52b.lanodan@gentoo
1 commit: 1c2ae1df6ff5441c0b9c036f54ae7195d3a5d52b
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Thu Sep 29 14:16:26 2022 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Thu Sep 29 14:16:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c2ae1df
7
8 app-shells/fzf-tab: add 0_pre20220815
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11
12 app-shells/fzf-tab/Manifest | 1 +
13 app-shells/fzf-tab/fzf-tab-0_pre20220815.ebuild | 75 +++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/app-shells/fzf-tab/Manifest b/app-shells/fzf-tab/Manifest
17 index 159ffd9e3..a051eae8e 100644
18 --- a/app-shells/fzf-tab/Manifest
19 +++ b/app-shells/fzf-tab/Manifest
20 @@ -1 +1,2 @@
21 DIST fzf-tab-0_pre20220331.tar.gz 774324 BLAKE2B 59ef88380952dce19e615faf9317a2b71e414bc8320d47da94d62cdfbe9eed9485e002d55bc987f0bf77ace2c6ed3d875b6d7bd1e020db26f15df97b544da676 SHA512 3a350af319f5dbb4405988c7bf7372ca17710199000a6807e5d5dfdc5bf8d97b2e93c7a668f33c6341687aebc9115fff6fe3bd312d473a34db12de51dc5c703f
22 +DIST fzf-tab-0_pre20220815.tar.gz 774621 BLAKE2B d945b8a206505972fe23f9339c470386d8cdd3b71336372ccf5bf0599fc0569813bcd577e290323f803e9d99cbfc0c275941a4710ee8dfe45002271cbee89bf0 SHA512 0fa16dbcc755717ae3f7873b5a62da28d620493eaf679f74e5f77187a5253f7c0dab55fbcdfceb0fd895be5e080a773bc1a75670551fc3ef7755ce976fa94591
23
24 diff --git a/app-shells/fzf-tab/fzf-tab-0_pre20220815.ebuild b/app-shells/fzf-tab/fzf-tab-0_pre20220815.ebuild
25 new file mode 100644
26 index 000000000..94aec83ca
27 --- /dev/null
28 +++ b/app-shells/fzf-tab/fzf-tab-0_pre20220815.ebuild
29 @@ -0,0 +1,75 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit readme.gentoo-r1
36 +
37 +MY_COMMIT="938eef72e93ddb0609205a663bf0783f4e1b5fae"
38 +DESCRIPTION="Replace zsh's default completion selection menu with fzf"
39 +HOMEPAGE="https://github.com/Aloxaf/fzf-tab"
40 +SRC_URI="https://github.com/Aloxaf/fzf-tab/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
41 +S="${WORKDIR}/${PN}-${MY_COMMIT}"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +IUSE="test"
47 +
48 +RDEPEND="
49 + app-shells/fzf
50 + app-shells/zsh
51 +"
52 +BDEPEND="
53 + test? (
54 + app-shells/zsh
55 + dev-vcs/git
56 + )
57 +"
58 +
59 +RESTRICT="test" # bug 861638
60 +
61 +DISABLE_AUTOFORMATTING="true"
62 +DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
63 +. /usr/share/zsh/site-functions/${PN}.zsh
64 +to your ~/.zshrc after compinit, but before plugins which will wrap
65 +widgets, such as zsh-autosuggestions or fast-syntax-highlighting"
66 +
67 +src_configure() {
68 + # Test fails if we modify FZF_TAB_HOME in place
69 + sed -E "s|^(FZF_TAB_HOME=\"[^\"]+)\"$|\1/${PN}\"|" \
70 + ${PN}.zsh > ${PN}-patched.zsh || die "Modifying FZF_TAB_HOME failed"
71 +
72 + pushd modules || die "Changing directory failed"
73 + default_src_configure
74 +}
75 +
76 +src_compile() {
77 + pushd modules || die "Changing directory failed"
78 + default_src_compile
79 +}
80 +
81 +src_test() {
82 + pushd test || die "Changing directory failed"
83 + ZTST_verbose=1 zsh -f ./runtests.zsh fzftab.ztst || die "One or more tests failed"
84 +}
85 +
86 +src_install() {
87 + local zsh_libdir="/usr/share/zsh/site-functions"
88 +
89 + insinto ${zsh_libdir}
90 + newins ${PN}{-patched,}.zsh
91 +
92 + insinto ${zsh_libdir}/${PN}
93 + doins -r lib
94 +
95 + insinto ${zsh_libdir}/${PN}/modules/Src/aloxaf
96 + doins modules/Src/aloxaf/fzftab.so
97 +
98 + readme.gentoo_create_doc
99 + einstalldocs
100 +}
101 +
102 +pkg_postinst() {
103 + readme.gentoo_print_elog
104 +}