From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0C33415808C for ; Wed, 6 Apr 2022 19:50:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CC8FE0CE9; Wed, 6 Apr 2022 19:50:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2DC66E0CE9 for ; Wed, 6 Apr 2022 19:50:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1FCE7341206 for ; Wed, 6 Apr 2022 19:50:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7623D38D for ; Wed, 6 Apr 2022 19:50:51 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1649274414.1c18c0e5d6da69d999a281f4587d882d6436fa6a.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-shells/fzf-tab/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild X-VCS-Directories: app-shells/fzf-tab/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: 1c18c0e5d6da69d999a281f4587d882d6436fa6a X-VCS-Branch: dev Date: Wed, 6 Apr 2022 19:50:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5ab22176-c738-423a-a848-a77ffcd3e7ff X-Archives-Hash: ab779a049cbd58e97d522a0ff8798cca commit: 1c18c0e5d6da69d999a281f4587d882d6436fa6a Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Wed Apr 6 19:43:24 2022 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Wed Apr 6 19:46:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c18c0e5 app-shells/fzf-tab: Fix FZF_TAB_HOME modification >From absolute to relative path. Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild b/app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild new file mode 100644 index 000000000..4bf956b44 --- /dev/null +++ b/app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit readme.gentoo-r1 + +MY_COMMIT="103330fdbeba07416d5f90b391eee680cd20d2d6" +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" + +MY_ZSH_LIBDIR="/usr/share/zsh/site-functions" + +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" + 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() { + insinto ${MY_ZSH_LIBDIR} + newins ${PN}{-patched,}.zsh + + insinto ${MY_ZSH_LIBDIR}/${PN} + doins -r lib + + insinto ${MY_ZSH_LIBDIR}/${PN}/modules/Src/aloxaf + doins modules/Src/aloxaf/fzftab.so + + readme.gentoo_create_doc + einstalldocs +} + +pkg_postinst() { + readme.gentoo_print_elog +} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1394215808B for ; Wed, 6 Apr 2022 21:25:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F4A4E097B; Wed, 6 Apr 2022 21:25:31 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C019BE0896 for ; Wed, 6 Apr 2022 21:25:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 634B6340EDE for ; Wed, 6 Apr 2022 21:25:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ADC9738D for ; Wed, 6 Apr 2022 21:25:27 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1649274414.1c18c0e5d6da69d999a281f4587d882d6436fa6a.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-shells/fzf-tab/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild X-VCS-Directories: app-shells/fzf-tab/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: 1c18c0e5d6da69d999a281f4587d882d6436fa6a X-VCS-Branch: master Date: Wed, 6 Apr 2022 21:25:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0873ceac-b4ae-4f59-b7ce-b4327ea07779 X-Archives-Hash: da822bdeefe7277bd27ce36c7a60510d Message-ID: <20220406212527.Ttgm3aBvxqCvlxQbE4VkCA2SFBUQMOGCQdV6RfeS-Fw@z> commit: 1c18c0e5d6da69d999a281f4587d882d6436fa6a Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Wed Apr 6 19:43:24 2022 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Wed Apr 6 19:46:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c18c0e5 app-shells/fzf-tab: Fix FZF_TAB_HOME modification >From absolute to relative path. Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild b/app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild new file mode 100644 index 000000000..4bf956b44 --- /dev/null +++ b/app-shells/fzf-tab/fzf-tab-0_pre20220331-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit readme.gentoo-r1 + +MY_COMMIT="103330fdbeba07416d5f90b391eee680cd20d2d6" +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" + +MY_ZSH_LIBDIR="/usr/share/zsh/site-functions" + +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" + 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() { + insinto ${MY_ZSH_LIBDIR} + newins ${PN}{-patched,}.zsh + + insinto ${MY_ZSH_LIBDIR}/${PN} + doins -r lib + + insinto ${MY_ZSH_LIBDIR}/${PN}/modules/Src/aloxaf + doins modules/Src/aloxaf/fzftab.so + + readme.gentoo_create_doc + einstalldocs +} + +pkg_postinst() { + readme.gentoo_print_elog +}