diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2017-07-07 11:31:38 +0300 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-07-30 16:55:09 +0200 |
commit | 4f14138ee08d83565b03ff2862c9afd60d9bbbf6 (patch) | |
tree | 2a0064164955341fca41e277b9b451f19856a7d0 /app-shells/peco/peco-0.5.1.ebuild | |
parent | x11-misc/libinput-gestures: version bump for dependency compatibility (diff) | |
download | gentoo-4f14138ee08d83565b03ff2862c9afd60d9bbbf6.tar.gz gentoo-4f14138ee08d83565b03ff2862c9afd60d9bbbf6.tar.bz2 gentoo-4f14138ee08d83565b03ff2862c9afd60d9bbbf6.zip |
app-shells/peco: new ebuild
peco (pronounced peh-koh) is a tool to filter stuff like logs, process stats,
find files, because unlike grep, you can type as you think and
look through the current results.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/5060
Diffstat (limited to 'app-shells/peco/peco-0.5.1.ebuild')
-rw-r--r-- | app-shells/peco/peco-0.5.1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-shells/peco/peco-0.5.1.ebuild b/app-shells/peco/peco-0.5.1.ebuild new file mode 100644 index 000000000000..3d8169733f2d --- /dev/null +++ b/app-shells/peco/peco-0.5.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_VENDOR=( + "github.com/google/btree 0c3044bc8bada22db67b93f5760fe3f05d6a5c25" + "github.com/jessevdk/go-flags 8bc97d602c3bfeb5fc6fc9b5a9c898f245495637" + "github.com/lestrrat/go-pdebug 2e6eaaa5717f81bda41d27070d3c966f40a1e75f" + "github.com/mattn/go-runewidth 737072b4e32b7a5018b4a7125da8d12de90e8045" + "github.com/nsf/termbox-go abe82ce5fb7a42fbd6784a5ceb71aff977e09ed8" + "github.com/pkg/errors 248dadf4e9068a0b3e79f02ed0a610d935de5302" + "github.com/stretchr/testify 18a02ba4a312f95da08ff4cfc0055750ce50ae9e" +) + +EGO_PN="github.com/peco/${PN}" + +inherit golang-vcs-snapshot + +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +DESCRIPTION="Simplistic interactive filtering tool" +HOMEPAGE="https://github.com/peco/peco" +SRC_URI=" + ${ARCHIVE_URI} + ${EGO_VENDOR_URI}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=" + dev-go/glide + dev-go/go-spew" + +src_prepare() { + default + + # Don't install dependencies + sed -i '/peco\$(SUFFIX):/s/ installdeps//' \ + src/${EGO_PN}/Makefile || die "sed failed" +} + +src_compile() { + GOPATH="${S}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build +} + +src_install() { + dobin src/${EGO_PN}/releases/peco_linux_amd64/peco + + local DOCS=( src/${EGO_PN}/Changes src/${EGO_PN}/README.md ) + einstalldocs +} |