Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/peco/
Date: Wed, 13 Nov 2019 07:33:40
Message-Id: 1573630410.9e152dd2359e88f2033a84029fdfc5aa58553174.mgorny@gentoo
1 commit: 9e152dd2359e88f2033a84029fdfc5aa58553174
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Tue Nov 12 22:51:08 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 13 07:33:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e152dd2
7
8 app-shells/peco: remove revdep glide (wrt 694384), restrict test
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
12 Closes: https://github.com/gentoo/gentoo/pull/13625
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 app-shells/peco/peco-0.5.3-r2.ebuild | 49 ++++++++++++++++++++++++++++++++++++
16 1 file changed, 49 insertions(+)
17
18 diff --git a/app-shells/peco/peco-0.5.3-r2.ebuild b/app-shells/peco/peco-0.5.3-r2.ebuild
19 new file mode 100644
20 index 00000000000..4bf612fe18c
21 --- /dev/null
22 +++ b/app-shells/peco/peco-0.5.3-r2.ebuild
23 @@ -0,0 +1,49 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +EGO_VENDOR=( "github.com/google/btree 0c3044bc8bada22db67b93f5760fe3f05d6a5c25"
30 + "github.com/jessevdk/go-flags 8bc97d602c3bfeb5fc6fc9b5a9c898f245495637"
31 + "github.com/lestrrat/go-pdebug 2e6eaaa5717f81bda41d27070d3c966f40a1e75f"
32 + "github.com/mattn/go-runewidth 737072b4e32b7a5018b4a7125da8d12de90e8045"
33 + "github.com/nsf/termbox-go e2050e41c8847748ec5288741c0b19a8cb26d084"
34 + "github.com/pkg/errors 248dadf4e9068a0b3e79f02ed0a610d935de5302"
35 + "github.com/stretchr/testify 18a02ba4a312f95da08ff4cfc0055750ce50ae9e" )
36 +
37 +EGO_PN="github.com/peco/${PN}"
38 +
39 +inherit golang-vcs-snapshot
40 +
41 +DESCRIPTION="Simplistic interactive filtering tool"
42 +HOMEPAGE="https://github.com/peco/peco"
43 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
44 + ${EGO_VENDOR_URI}"
45 +
46 +LICENSE="Apache-2.0 BSD BSD-2 MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE=""
50 +RESTRICT="test"
51 +
52 +DOCS=( src/"${EGO_PN}"/{Changes,README.md} )
53 +
54 +src_prepare() {
55 + default
56 +
57 + # Don't install dependencies, make build verbose
58 + sed -i -e '/peco\$(SUFFIX):/s/ installdeps//' \
59 + -e '/test:/s/ installdeps//' \
60 + -e '/go build/s/-o/-v -x -o/' \
61 + -e '/go test -v/s#$(INTERNAL_BIN_DIR)/$(THIS_GOOS)/$(THIS_GOARCH)/##' \
62 + src/"${EGO_PN}"/Makefile || die "sed failed"
63 +}
64 +
65 +src_compile() {
66 + GOPATH="${S}:$(get_golibdir_gopath)" emake -C src/"${EGO_PN}" build
67 +}
68 +
69 +src_install() {
70 + einstalldocs
71 + dobin src/"${EGO_PN}"/releases/peco_linux_amd64/peco
72 +}