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 7A68F158094 for ; Fri, 22 Jul 2022 22:02:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BD5AE0BD0; Fri, 22 Jul 2022 22:02:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 247E0E0BD0 for ; Fri, 22 Jul 2022 22:02:07 +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 BBCBF340BE0 for ; Fri, 22 Jul 2022 22:02:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 093A3545 for ; Fri, 22 Jul 2022 22:02:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1658527318.a72d3a5c263c55405b76cdc1721d76df23212d97.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/fzf/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/fzf/Manifest app-shells/fzf/fzf-0.31.0.ebuild X-VCS-Directories: app-shells/fzf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a72d3a5c263c55405b76cdc1721d76df23212d97 X-VCS-Branch: master Date: Fri, 22 Jul 2022 22:02:04 +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: 13e9e724-7558-4c74-8da2-56d437e4902a X-Archives-Hash: e3d3808657681439d6c092139fb35432 commit: a72d3a5c263c55405b76cdc1721d76df23212d97 Author: Sam James gentoo org> AuthorDate: Fri Jul 22 22:00:57 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jul 22 22:01:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a72d3a5c app-shells/fzf: add 0.31.0 Signed-off-by: Sam James gentoo.org> app-shells/fzf/Manifest | 2 ++ app-shells/fzf/fzf-0.31.0.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest index d14e6f86c4cc..aebcc868f831 100644 --- a/app-shells/fzf/Manifest +++ b/app-shells/fzf/Manifest @@ -1,2 +1,4 @@ DIST fzf-0.30.0-deps.tar.xz 20315772 BLAKE2B 8664b82f5e837bde97251f64e6d8637f20231138123a23626da5811dca12b3a0fcca9c0ad84dfa4f335c4d5667ef1a23b30d5c2624ab7d67541902f7b493fbb3 SHA512 2adb3b36a5f059a623a64eb89678d03686be0d1ceb7628b55ef8ffa7db024f69484361c3f0e04d915016ce7318a386d0c606180120cf30dce41fd2be2a5c6495 DIST fzf-0.30.0.tar.gz 209750 BLAKE2B ee21726dac11cddc29839c1c2368e46497b4b5172e8896914b8fda602ecb28a7179f27cb3c63d9841f42e87e7d3589b37427b348b9e59cf531797c487e3fdc2d SHA512 cebb685a7fa00bdff07751d0021edde82f0ff3bf705eff82f94f6bf57c5e008eb6894d023ed7b14378f1d92fa2394192c12b720c6f711b1a414438fe3f8b4ec3 +DIST fzf-0.31.0-deps.tar.xz 16051640 BLAKE2B 9aac02a1df4d9db7cf11c77dead32fb13b74965e0c38b4d5d650daff123a697091db93235c3a3f3325c91351cbaf4b5401cdeee8d5120a59bc83fa9a0ca763da SHA512 bd88603ce059cac3c10bcf4face50f8097d7efcc26ef8b61870f93e7405b849293c80e9d39e124a63103080b6bab0cc28225b85470bc650fc53c61aa5ae9f33d +DIST fzf-0.31.0.tar.gz 210779 BLAKE2B 013ba0689e661a2497ffd3a6046ae330930aca295ad9b9620ab70474d34d969a78fccebb59daf45b278a76f33093db1fcd6838fb785aa63008755ce693b15967 SHA512 e0d281fe771a51d4bd617227daa9533e0d219cc047233ca9f342683591bc09843aad1d3686d58ddef71c317e69b2ccaf4a3d6175959cf81aaec50914fe51dea0 diff --git a/app-shells/fzf/fzf-0.31.0.ebuild b/app-shells/fzf/fzf-0.31.0.ebuild new file mode 100644 index 000000000000..0ca870be1c60 --- /dev/null +++ b/app-shells/fzf/fzf-0.31.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 go-module + +DESCRIPTION="General-purpose command-line fuzzy finder, written in Golang" +HOMEPAGE="https://github.com/junegunn/fzf" + +# For fancy versioning only. Bump on the next release! +# MY_GIT_REV is the first 7 characters of release commit, we truncate it +# after to make it easier to copy/paste. +MY_GIT_REV=a0ef8987fb5374452d08f32352cfa6933371ee54 +MY_GIT_REV=${MY_GIT_REV:0:7} + +SRC_URI="https://github.com/junegunn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="MIT BSD-with-disclosure" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" + +src_prepare() { + default + sed -i 's/-s -w //' Makefile || die # bug 795225 +} + +src_compile() { + emake PREFIX="${EPREFIX}"/usr VERSION=${PV} REVISION=${MY_GIT_REV} bin/${PN} +} + +src_install() { + dobin bin/${PN} + doman man/man1/${PN}.1 + + dobin bin/${PN}-tmux + doman man/man1/${PN}-tmux.1 + + insinto /usr/share/vim/vimfiles/plugin + doins plugin/${PN}.vim + + insinto /usr/share/nvim/runtime/plugin + doins plugin/${PN}.vim + + newbashcomp shell/completion.bash ${PN} + + insinto /usr/share/zsh/site-functions + newins shell/completion.zsh _${PN} + + insinto /usr/share/fzf + doins shell/key-bindings.bash + doins shell/key-bindings.fish + doins shell/key-bindings.zsh +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "To add fzf support to your shell, make sure to use the right file" + elog "from /usr/share/fzf." + elog + elog "For bash, add the following line to ~/.bashrc:" + elog + elog " # source ${EROOT}/usr/share/bash-completion/completions/fzf" + elog " # source ${EROOT}/usr/share/fzf/key-bindings.bash" + elog + elog "Plugins for Vim and Neovim are installed to respective directories" + elog "and will work out of the box." + elog + elog "For fzf support in tmux see fzf-tmux(1)." + fi +}