Add app-shells/fzf
This commit is contained in:
parent
2e9f05d657
commit
7c000e025d
7
app-shells/fzf/Manifest
Normal file
7
app-shells/fzf/Manifest
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
DIST fzf-0.20.0.tar.gz 152255 BLAKE2B 666f0ad77bbbd9bd24329d8562862aaf781672dfbb319a964d3495dbc80f3837f0d74b453bdfd56b81147a2a092d7aa573c1c159f9f88f2b3af1d81c166d37d2 SHA512 a65294d29c59353d17468a919878f965934540eea27441292a7219aea7509c18ea31ed1d58453f890a43026e4ae58946e0122d49475e734bd9354a0e520d99e7
|
||||||
|
DIST github.com-golang-crypto-558b6879de74.tar.gz 1429113 BLAKE2B cd33d89bfe06fdc00a36b0c4012a46c199c580eaddcad6c74f9e60b31d9bcc7296c6fcb35de7ba108a8541d39595e0b1506aeb67b8b919dfd669b6b1c5f13445 SHA512 1e971a0bd21cd5b8fcf1d2c8093e7ab6b041ed66c48333dc2df16551bb48765928cf16e4115ee6c2ea8d3c26c5d4a79129b15d888601af1e416df3bdf67ee5c6
|
||||||
|
DIST github.com-golang-sys-a5b02f93d862.tar.gz 1417914 BLAKE2B 08a150a673de6c4c3429c4107622e4a507fd56c20069a31bff7d2f4a384b064b351f3f955c8f240667ff04c168587b7726db7113e8f8eabc004570bb886a7e10 SHA512 7b8932eeb15037a671997a462b6551dc023a969d33ef6a3d4726ea7b8d68fe976160cd967f6b851138761927bb82c5683ea8c99347de02fb8c60ca933c97f8fc
|
||||||
|
DIST github.com-mattn-go-isatty-66b8e73f3f5c.tar.gz 1959 BLAKE2B e767e44d5470cfa0feac4f48f3698911005667ef5b3ec46c17e12978a3106fca9de4120ce8ebaf49b283b620d02a57f3a9275eefdc4c0f5ceab42cf44dc4b573 SHA512 a43484c6d87d54bbea7bd8b76d5eb35217023097b07ac2956a809e123c13811280bd2ee5b8f604ff2ce54ecaa6a19358422fd2a7f981e63260ffdad97cfe1ae1
|
||||||
|
DIST github.com-mattn-go-runewidth-14207d285c6c.tar.gz 22394 BLAKE2B 56f5f68b1414f994d09252ab3a4637799daef2411ba56c8451e9570bb4425fb6a9e428b38b4e5c8568dbcddaffc0cbedc5c3ca6e6b27c77914f374978b4311f9 SHA512 faefba59ea5148b68a62910e55a7fe7621430fb085bc213ac15bb6d4f29dfcfbae42071f7c7afc50540836142a1412624602ee333970b4a5c94bf620b473a88a
|
||||||
|
DIST github.com-mattn-go-shellwords-v1.0.3.tar.gz 3276 BLAKE2B 37422e11e71992e032d4dcfcdd8146c7867cf6f995185b2a405f0c9ccb5723a25b3420c092312c2643a87ab6d10037523b672ad8b8870ba2db8bc5c49a1e9902 SHA512 ca6616b72b5fd5a632285e748844acddc9082dcb5d52c6f6d9580acc392a45ff4e28c4e22346198288ff3feeccc6aa141346c9656d6755e8b330f36a47d6a0f2
|
||||||
|
EBUILD fzf-0.20.0.ebuild 2627 BLAKE2B dac62c4153e7f0d74ca899f9986d80c4164e653e93f071b2b0b96cb662e04ae3a3361d9db60259d6f00069322dad123d7f3bfe73c6a5a167bdda390c4a0369d3 SHA512 8f9d2871dc01081a9908024d76eeb63b68dfcab3786bb481796ec859932490933704899071ed68f4009200d62084756846133a24b4e4edb5fbc4434a4240ebd1
|
98
app-shells/fzf/fzf-0.20.0.ebuild
Normal file
98
app-shells/fzf/fzf-0.20.0.ebuild
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Change this when you update the ebuild
|
||||||
|
GIT_COMMIT="${PV}"
|
||||||
|
EGO_PN="github.com/junegunn/${PN}"
|
||||||
|
# Note: Keep EGO_VENDOR in sync with glide.lock
|
||||||
|
EGO_VENDOR=(
|
||||||
|
#"github.com/codegangsta/cli c6af8847eb2b"
|
||||||
|
#"github.com/gdamore/encoding b23993cbb635"
|
||||||
|
#"github.com/gdamore/tcell 0a0db94084df"
|
||||||
|
#"github.com/lucasb-eyer/go-colorful c900de9dbbc7"
|
||||||
|
#"github.com/Masterminds/semver 15d8430ab864"
|
||||||
|
#"github.com/Masterminds/vcs 6f1c6d150500"
|
||||||
|
"github.com/mattn/go-isatty 66b8e73f3f5c"
|
||||||
|
"github.com/mattn/go-runewidth 14207d285c6c"
|
||||||
|
"github.com/mattn/go-shellwords v1.0.3"
|
||||||
|
#"github.com/mitchellh/go-homedir b8bc1bf76747"
|
||||||
|
"golang.org/x/crypto 558b6879de74 github.com/golang/crypto"
|
||||||
|
"golang.org/x/sys a5b02f93d862 github.com/golang/sys"
|
||||||
|
#"golang.org/x/text 4ee4af566555 github.com/golang/text"
|
||||||
|
#"gopkg.in/yaml.v2 287cf08546ab github.com/go-yaml/yaml"
|
||||||
|
)
|
||||||
|
|
||||||
|
inherit bash-completion-r1 golang-vcs-snapshot
|
||||||
|
|
||||||
|
DESCRIPTION="A general-purpose command-line fuzzy finder"
|
||||||
|
HOMEPAGE="https://github.com/junegunn/fzf"
|
||||||
|
ARCHIVE_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
SRC_URI="${ARCHIVE_URI} ${EGO_VENDOR_URI}"
|
||||||
|
RESTRICT="mirror network-sandbox"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86" # Untested: arm arm64 x86
|
||||||
|
IUSE="debug tmux"
|
||||||
|
|
||||||
|
RDEPEND="tmux? ( app-misc/tmux )"
|
||||||
|
|
||||||
|
DOCS=( CHANGELOG.md README.md )
|
||||||
|
QA_PRESTRIPPED="usr/bin/.*"
|
||||||
|
|
||||||
|
G="${WORKDIR}/${P}"
|
||||||
|
S="${G}/src/${EGO_PN}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
export GOPATH="${G}"
|
||||||
|
local myldflags=(
|
||||||
|
"$(usex !debug '-s -w' '')"
|
||||||
|
-X "main.revision=${GIT_COMMIT:0:7}"
|
||||||
|
)
|
||||||
|
local mygoargs=(
|
||||||
|
-v
|
||||||
|
#"-buildmode=$(usex pie pie exe)"
|
||||||
|
"-buildmode=pie"
|
||||||
|
"-asmflags=all=-trimpath=${S}"
|
||||||
|
"-gcflags=all=-trimpath=${S}"
|
||||||
|
-ldflags "${myldflags[*]}"
|
||||||
|
)
|
||||||
|
go build "${mygoargs[@]}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
go test -v ./src{,/algo,/tui,/util} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin fzf
|
||||||
|
use debug && dostrip -x /usr/bin/fzf
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
doman man/man1/fzf.1
|
||||||
|
|
||||||
|
insinto /etc/bash/bashrc.d
|
||||||
|
newins shell/key-bindings.bash fzf.bash
|
||||||
|
echo 'complete -o default -F _fzf_opts_completion fzf' >> shell/completion.bash # QA-workaround
|
||||||
|
newbashcomp shell/completion.bash "${PN}"
|
||||||
|
|
||||||
|
insinto /usr/share/nvim/runtime/plugin
|
||||||
|
doins plugin/fzf.vim
|
||||||
|
|
||||||
|
insinto /usr/share/vim/vimfiles/plugin
|
||||||
|
doins plugin/fzf.vim
|
||||||
|
dodoc README-VIM.md
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins shell/completion.zsh _fzf
|
||||||
|
insinto /usr/share/zsh/site-contrib/
|
||||||
|
newins shell/key-bindings.zsh fzf.zsh
|
||||||
|
|
||||||
|
if use tmux; then
|
||||||
|
dobin bin/"${PN}"-tmux
|
||||||
|
bashcomp_alias "${PN}" "${PN}"-tmux
|
||||||
|
doman man/man1/"${PN}"-tmux.1
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user