diff options
author | Wynn Wolf Arbor | 2020-01-13 15:59:49 +0100 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-01-13 15:59:49 +0100 |
commit | 90b60b5044587535e792ed5410acbf10a76963e7 (patch) | |
tree | 316d681581cb2b3a4218f31e72cab376e70b8252 /app-shells/fzf | |
download | pramantha-90b60b5044587535e792ed5410acbf10a76963e7.tar.gz |
Initial import
Diffstat (limited to 'app-shells/fzf')
-rw-r--r-- | app-shells/fzf/Manifest | 9 | ||||
-rw-r--r-- | app-shells/fzf/fzf-0.20.0.ebuild | 81 | ||||
-rw-r--r-- | app-shells/fzf/metadata.xml | 15 |
3 files changed, 105 insertions, 0 deletions
diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest new file mode 100644 index 0000000..780bf8f --- /dev/null +++ b/app-shells/fzf/Manifest @@ -0,0 +1,9 @@ +DIST fzf-0.20.0.tar.gz 152255 BLAKE2B 666f0ad77bbbd9bd24329d8562862aaf781672dfbb319a964d3495dbc80f3837f0d74b453bdfd56b81147a2a092d7aa573c1c159f9f88f2b3af1d81c166d37d2 SHA512 a65294d29c59353d17468a919878f965934540eea27441292a7219aea7509c18ea31ed1d58453f890a43026e4ae58946e0122d49475e734bd9354a0e520d99e7 +DIST github.com-gdamore-tcell-0a0db94084df.tar.gz 165802 BLAKE2B 624ae63194868cd2c92629da0dcfcc5b2a356e19a57b6574173441be6dbf283424025441f90a2f91768f6a755409b673a741b46d90032a46f3f75420ebe99d86 SHA512 9a8bc18840f5f4bd5c25d36fee18051907aaedce81fb53c2440911e0296b861d923ce7eef6ef88d77f43f7461c66fd3c1c4f242c26c80d46937e9a3063c276d9 +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 1864 BLAKE2B 4b9d471e2b5d3553afc85741175b9d1f7bb97446a4b94195a6b6cf2d8c06125dcae48abe0dd867de4e274da550bb4476c10c93b63610a8f7a8abecf134cf1eaa SHA512 a2fba4d057b8a4178afd9680ce39a01474c27ec86be5fa89aa911c230d2a333624b394de6cbbdcfda47ab02540de1e32424c3e60be0af488b35930bcfe04764c +MISC metadata.xml 479 BLAKE2B 35362b48670823e112d4f9995939f085f2e8e58ce7d5299f794d935fb91f345de50c5675c189b3448aa3ef8f7bdf58a5eb780b487a21acc35723f4d9922f0b8f SHA512 7d4db6eb0394aa226fc3d225cb4ddc7cab01660ff33dc0e4501f289818bc2fceaf53a63038e34e3320d5475e567dca4b86dba18779d0b45e6debbe716787f6b9 diff --git a/app-shells/fzf/fzf-0.20.0.ebuild b/app-shells/fzf/fzf-0.20.0.ebuild new file mode 100644 index 0000000..2522421 --- /dev/null +++ b/app-shells/fzf/fzf-0.20.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +GIT_COMMIT="${PV}" +EGO_PN="github.com/junegunn/${PN}" +EGO_VENDOR=( + "github.com/gdamore/tcell 0a0db94084df" + "github.com/mattn/go-isatty 66b8e73f3f5c" + "github.com/mattn/go-runewidth 14207d285c6c" + "github.com/mattn/go-shellwords v1.0.3" + "golang.org/x/crypto 558b6879de74 github.com/golang/crypto" + "golang.org/x/sys a5b02f93d862 github.com/golang/sys" +) + +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" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64" +IUSE="debug tmux" + +RDEPEND="tmux? ( app-misc/tmux )" + +DOCS=( CHANGELOG.md README.md ) +QA_PRESTRIPPED="usr/bin/.*" + +S="${WORKDIR}/${P}/src/${EGO_PN}" + +src_compile() { + local mygoargs=( + -v + -work + -x + -tags release + -ldflags "-X main.version=${PV}" + -asmflags "-trimpath=${S}" + -gcflags "-trimpath=${S}" + ) + GO111MODULE=off GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \ + go build "${mygoargs[@]}" || die +} + +src_test() { + GO111MODULE=off GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \ + go test -timeout 30m -v -work ./src{,/algo,/tui,/util} || die +} + +src_install() { + dobin fzf + use debug && dostrip -x /usr/bin/fzf + einstalldocs + + doman man/man1/fzf.1 + + newbashcomp shell/completion.bash fzf + + 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/fzf-tmux + doman man/man1/fzf-tmux.1 + fi +} diff --git a/app-shells/fzf/metadata.xml b/app-shells/fzf/metadata.xml new file mode 100644 index 0000000..a4409f5 --- /dev/null +++ b/app-shells/fzf/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>wolf@oriole.systems</email> + </maintainer> + <upstream> + <remote-id type="github">junegunn/fzf</remote-id> + <bugs-to>https://github.com/junegunn/fzf/issues</bugs-to> + <doc>https://github.com/junegunn/fzf/wiki</doc> + </upstream> + <use> + <flag name="tmux">Install extra tooling for tmux</flag> + </use> +</pkgmetadata> |