summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2019-10-22 00:07:12 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2019-10-22 00:07:12 +0800
commit2419be44f4e62d72ac862d5cb75d42a54e1e1f9e (patch)
tree26fe7b89501694d5088b5fdbf487e24ea9dded3e
parentAdd net-misc/BaiduPCS-Go 3.6 (diff)
downloadpigfoot-2419be44f4e62d72ac862d5cb75d42a54e1e1f9e.tar.gz
pigfoot-2419be44f4e62d72ac862d5cb75d42a54e1e1f9e.tar.bz2
pigfoot-2419be44f4e62d72ac862d5cb75d42a54e1e1f9e.zip
Add app-shells/fzf 0.18.0
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
-rw-r--r--app-shells/fzf/Manifest6
-rw-r--r--app-shells/fzf/fzf-0.18.0.ebuild92
-rw-r--r--app-shells/fzf/metadata.xml16
3 files changed, 114 insertions, 0 deletions
diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest
new file mode 100644
index 0000000..c5f1341
--- /dev/null
+++ b/app-shells/fzf/Manifest
@@ -0,0 +1,6 @@
+DIST fzf-0.18.0.tar.gz 143243 BLAKE2B 39b9d5ce1c41a8d29def0a9a896a930532e2cc54b831ae5b718ed0588a178dce0fcde0b8d916181791340f1c067e6b81006023d020ee74cac2ee893170581dc3 SHA512 70dcda693ed6706f232874550f89cfcdbce1d28360244a728dd0640a4cfbbbd0899601f42c9096197c159cde86e89d287a06905cb5d665bd09b9d01cca2cb754
+DIST github.com-golang-crypto-558b6879de74.tar.gz 1429113 BLAKE2B cd33d89bfe06fdc00a36b0c4012a46c199c580eaddcad6c74f9e60b31d9bcc7296c6fcb35de7ba108a8541d39595e0b1506aeb67b8b919dfd669b6b1c5f13445 SHA512 1e971a0bd21cd5b8fcf1d2c8093e7ab6b041ed66c48333dc2df16551bb48765928cf16e4115ee6c2ea8d3c26c5d4a79129b15d888601af1e416df3bdf67ee5c6
+DIST github.com-golang-sys-b90f89a1e7a9.tar.gz 716209 BLAKE2B bf758ec8331d2e587f5593abbf9bb1fd153db05de69d1bde50437d12db7772c9a120860834587cf36e075bf545dffe8fcb1e781264465c3b0e3d378eda51dea6 SHA512 ac99f0e2147ef37eb9c27f2f90554b257d0ca3e179a3981ee6d1779bfeeb96c1b6b0d0e3f8e9c6958635f5e4e3329a169983cce40e33d29152b6b371d94bbffa
+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
diff --git a/app-shells/fzf/fzf-0.18.0.ebuild b/app-shells/fzf/fzf-0.18.0.ebuild
new file mode 100644
index 0000000..31e3fea
--- /dev/null
+++ b/app-shells/fzf/fzf-0.18.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_PN="github.com/junegunn/${PN}"
+EGO_VENDOR=(
+ "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 b90f89a1e7a9 github.com/golang/sys"
+)
+
+inherit golang-build golang-vcs-snapshot bash-completion-r1
+
+DESCRIPTION="A general-purpose command-line fuzzy finder, written in GoLang"
+ARCHIVE_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+SRC_URI="${ARCHIVE_URI}"
+RESTRICT="mirror"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86 arm"
+IUSE="bash-completion fish-completion neovim +pie tmux vim zsh-completion"
+
+RDEPEND="bash-completion? ( app-shells/bash )
+ fish-completion? ( app-shells/fish )
+ tmux? ( app-misc/tmux )
+ vim? ( app-editors/vim )
+ zsh-completion? ( app-shells/zsh )"
+
+src_compile() {
+ use pie && local build_pie="-buildmode=pie"
+ local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )"
+
+ set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ GOCACHE="${T}/go-cache" \
+ CGO_ENABLED=0 \
+ GO111MODULE=off \
+ go install -v -work -x ${build_flags} ${EGO_PN}
+ echo "$@"
+ "$@" || die
+
+ local go_srcpath="${WORKDIR}/${P}/src/${EGO_PN}"
+
+ doman ${go_srcpath}/man/man1/${PN}.1
+
+ # Install bash completion files
+ if use bash-completion; then
+ newbashcomp ${go_srcpath}/shell/completion.bash ${PN}
+ insinto /etc/profile.d/
+ newins ${go_srcpath}/shell/key-bindings.bash ${PN}.sh
+ fi
+
+ # Install fish completion files
+ if use fish-completion; then
+ insinto /usr/share/fish/functions/
+ newins ${go_srcpath}/shell/key-bindings.fish fzf_key_bindings.fish
+ fi
+
+ # Install Neovim plugin
+ if use neovim; then
+ insinto /usr/share/nvim/runtime/plugin
+ doins ${go_srcpath}/plugin/${PN}.vim
+ fi
+
+ # Install TMUX utils
+ if use tmux; then
+ dobin ${go_srcpath}/bin/${PN}-tmux
+ doman ${go_srcpath}/man/man1/${PN}-tmux.1
+ fi
+
+ # Install VIM plugin
+ if use vim; then
+ insinto /usr/share/vim/vimfiles/plugin
+ doins ${go_srcpath}/plugin/${PN}.vim
+ fi
+
+ # Install zsh completion files
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ newins ${go_srcpath}/shell/completion.zsh _${PN}
+ insinto /usr/share/zsh/site-contrib/
+ newins ${go_srcpath}/shell/key-bindings.zsh ${PN}.zsh
+ fi
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-shells/fzf/metadata.xml b/app-shells/fzf/metadata.xml
new file mode 100644
index 0000000..9fc1839
--- /dev/null
+++ b/app-shells/fzf/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pigfoot@gmail.com</email>
+ <name>Chen, Chih-Chia</name>
+ </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</doc>
+ </upstream>
+ <longdescription lang="en">
+ fzf is a general-purpose command-line fuzzy finder.
+ </longdescription>
+</pkgmetadata>