public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-shells/fzf-tab/
Date: Tue, 30 Jan 2024 11:33:27 +0000 (UTC)	[thread overview]
Message-ID: <1706557816.43ec8073a54032c5852287b7d37a32f06e0508a3.davidroman@gentoo> (raw)

commit:     43ec8073a54032c5852287b7d37a32f06e0508a3
Author:     tastytea <gentoo <AT> tastytea <DOT> de>
AuthorDate: Mon Jan 29 19:42:39 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jan 29 19:50:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=43ec8073

app-shells/fzf-tab: add 0_pre20230611

add workaround for >=clang-16

Bug: https://github.com/Aloxaf/fzf-tab/issues/337
Closes: https://bugs.gentoo.org/887281
Closes: https://bugs.gentoo.org/901157
Signed-off-by: tastytea <gentoo <AT> tastytea.de>

 app-shells/fzf-tab/Manifest                     |  1 +
 app-shells/fzf-tab/fzf-tab-0_pre20230611.ebuild | 76 +++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/app-shells/fzf-tab/Manifest b/app-shells/fzf-tab/Manifest
index 0a9d2d9807..0143c2ab0b 100644
--- a/app-shells/fzf-tab/Manifest
+++ b/app-shells/fzf-tab/Manifest
@@ -1,2 +1,3 @@
 DIST fzf-tab-0_pre20220815.tar.gz 774621 BLAKE2B d945b8a206505972fe23f9339c470386d8cdd3b71336372ccf5bf0599fc0569813bcd577e290323f803e9d99cbfc0c275941a4710ee8dfe45002271cbee89bf0 SHA512 0fa16dbcc755717ae3f7873b5a62da28d620493eaf679f74e5f77187a5253f7c0dab55fbcdfceb0fd895be5e080a773bc1a75670551fc3ef7755ce976fa94591
 DIST fzf-tab-0_pre20221124.tar.gz 774711 BLAKE2B eb2b5ade1bc50f1fe06265084fe5b675fa54e85d0b2590b84bb542217c1cffd1d676bba3e279009614da587a302d017dafbd5ed8f349887d23e5f1e93c68fc84 SHA512 b12e21d1cd5752801aa738b9b8b20c2627f15e1f8d8d1e169e4379ee1de662c62c9c1edb8d7c298d71009c3fd9c10c537dae683b4e087934969e0aa116ec9c72
+DIST fzf-tab-0_pre20230611.tar.gz 774797 BLAKE2B 81c1bdb6d5a6fbb2d8ac686821a5b80e953e4cbf4072853190a9c7bb370edc2e87cff1ce17d632c5554f46906335ed1e6cda8ff8c46cb8fbe2177f6da50afc71 SHA512 091fbc1a185a51ee74025d3b431e225ee0d2ffaa1e8c5a7c45ba4fe629ccc335cab118989f2bfc0e143ce3424cc290f97a78ad3da7ae1ed19500c27b6d4e0267

diff --git a/app-shells/fzf-tab/fzf-tab-0_pre20230611.ebuild b/app-shells/fzf-tab/fzf-tab-0_pre20230611.ebuild
new file mode 100644
index 0000000000..5cccc4a221
--- /dev/null
+++ b/app-shells/fzf-tab/fzf-tab-0_pre20230611.ebuild
@@ -0,0 +1,76 @@
+# Copyright 2022,2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic readme.gentoo-r1
+
+MY_COMMIT="c2b4aa5ad2532cca91f23908ac7f00efb7ff09c9"
+DESCRIPTION="Replace zsh's default completion selection menu with fzf"
+HOMEPAGE="https://github.com/Aloxaf/fzf-tab"
+SRC_URI="https://github.com/Aloxaf/fzf-tab/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_COMMIT}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+	app-shells/fzf
+	app-shells/zsh
+"
+BDEPEND="
+	test? (
+		app-shells/zsh
+		dev-vcs/git
+	)
+"
+
+RESTRICT="!test? ( test )"
+
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
+. /usr/share/zsh/site-functions/${PN}.zsh
+to your ~/.zshrc after compinit, but before plugins which will wrap
+widgets, such as zsh-autosuggestions or fast-syntax-highlighting"
+
+src_configure() {
+	# Test fails if we modify FZF_TAB_HOME in place
+	sed -E "s|^(FZF_TAB_HOME=\"[^\"]+)\"$|\1/${PN}\"|" \
+		${PN}.zsh > ${PN}-patched.zsh || die "Modifying FZF_TAB_HOME failed"
+
+	pushd modules || die "Changing directory failed"
+	append-cflags -Wno-error=implicit-function-declaration -Wno-error=implicit-int
+	default_src_configure
+}
+
+src_compile() {
+	pushd modules || die "Changing directory failed"
+	default_src_compile
+}
+
+src_test() {
+	pushd test || die "Changing directory failed"
+	ZTST_verbose=1 zsh -f ./runtests.zsh fzftab.ztst || die "One or more tests failed"
+}
+
+src_install() {
+	local zsh_libdir="/usr/share/zsh/site-functions"
+
+	insinto ${zsh_libdir}
+	newins ${PN}{-patched,}.zsh
+
+	insinto ${zsh_libdir}/${PN}
+	doins -r lib
+
+	insinto ${zsh_libdir}/${PN}/modules/Src/aloxaf
+	doins modules/Src/aloxaf/fzftab.so
+
+	readme.gentoo_create_doc
+	einstalldocs
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
+}


             reply	other threads:[~2024-01-30 11:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-30 11:33 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-30 11:33 [gentoo-commits] repo/proj/guru:master commit in: app-shells/fzf-tab/ David Roman
2022-11-26 10:54 Florian Schmaus
2022-11-26 10:54 Florian Schmaus
2022-09-30  2:12 Haelwenn Monnier
2022-09-30  2:12 Haelwenn Monnier
2022-04-06 21:25 Ronny Gutbrod
2022-04-06 19:50 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-04-06 21:25 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-04-06  0:07 Ronny Gutbrod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1706557816.43ec8073a54032c5852287b7d37a32f06e0508a3.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox