Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/vgrep/files/, app-text/vgrep/
Date: Sun, 01 Nov 2020 23:41:17
Message-Id: 1604274067.de6d7838925e9b1e49eb7ce695d6068470e71367.whissi@gentoo
1 commit: de6d7838925e9b1e49eb7ce695d6068470e71367
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 1 23:16:35 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 1 23:41:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de6d7838
7
8 app-text/vgrep: bump to v2.5.0
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-text/vgrep/Manifest | 1 +
14 app-text/vgrep/files/vgrep-2.5.0-remove-sudo.patch | 15 +++++++++
15 app-text/vgrep/vgrep-2.5.0.ebuild | 37 ++++++++++++++++++++++
16 3 files changed, 53 insertions(+)
17
18 diff --git a/app-text/vgrep/Manifest b/app-text/vgrep/Manifest
19 index b83fb59f87b..392fc95ec72 100644
20 --- a/app-text/vgrep/Manifest
21 +++ b/app-text/vgrep/Manifest
22 @@ -1,3 +1,4 @@
23 DIST vgrep-2.3.1.tar.gz 1149421 BLAKE2B c4c9a414bba5e509d57faa9ca6f6ce5cae1dbb001ff8b410ad54691ec6bf39f41c535fd25bdd5d93fdf89b4e4b49acf4dfa9a8956653e5c5e2ce39bd7da8d484 SHA512 0fa65151ae40f7fefc4e5b1af8e6ea332b50b1136849ec0902dd110786ca14204441e27c65a036b08fa56bf04a6325d8aa8ef2d4d02cdb0e0fe219896e24d694
24 DIST vgrep-2.3.3.tar.gz 1149769 BLAKE2B 59f15e0f2d9fd069b4926cb26a0517cb1d201dccce53d7c6b3ec1954693a3286396e8d4d72e2c3bcc4bb8e70083ba1ea349dfc4bec244caa112fcc2289063c25 SHA512 b745ec24bb5c329a3d0e4e756e54432f3acf9c24f9492339b69850d5a8e688074323d7e56c584e59f3aedf3a41b84997497791512dae2950424eaed56d6b7329
25 DIST vgrep-2.4.0.tar.gz 1196159 BLAKE2B f8b6b8166feb17ddeea7978ff14fd729ee395feb9658cbfc838f978f33169c7ca15dcd4008af54582aca25a0803924c508da11603d02e42d1e597a5813f78c3b SHA512 c614b52fe7fa720d3d2bb57830805c1ebb7c47db549aadda9309676b9c286447e693e51f74f969ccd0450934510bfe79c1603717022dd69c9f7f2709cbfd4465
26 +DIST vgrep-2.5.0.tar.gz 1355064 BLAKE2B 7a724fed16ec4589ace159dd5dcbea8e4450393f2c356430d9e8e87b799191b06137e20f2d0c32c53b71ff79d5abaa5551f6254ef6989631d9f6b9d771a5fe18 SHA512 95ee8ff1ca705cec8deaabf8e20d39df23dbac1ab797d025ca253904bcb7f4cbedda3ef052d006064c8d652c06b50cc3e5e532108b23a95511ee7b85b8abb3d4
27
28 diff --git a/app-text/vgrep/files/vgrep-2.5.0-remove-sudo.patch b/app-text/vgrep/files/vgrep-2.5.0-remove-sudo.patch
29 new file mode 100644
30 index 00000000000..25764d199b4
31 --- /dev/null
32 +++ b/app-text/vgrep/files/vgrep-2.5.0-remove-sudo.patch
33 @@ -0,0 +1,15 @@
34 +https://github.com/vrothberg/vgrep/issues/130
35 +
36 +--- a/Makefile
37 ++++ b/Makefile
38 +@@ -113,7 +113,8 @@ install: install-docs
39 +
40 + .PHONY: install-docs
41 + install-docs: docs
42 +- sudo cp docs/*.1 ${MAN_DIR}/man1/
43 ++ mkdir -p ${MAN_DIR}/man1/
44 ++ cp docs/*.1 ${MAN_DIR}/man1/
45 +
46 + .PHONY: uninstall
47 + uninstall:
48 +
49
50 diff --git a/app-text/vgrep/vgrep-2.5.0.ebuild b/app-text/vgrep/vgrep-2.5.0.ebuild
51 new file mode 100644
52 index 00000000000..3875d547820
53 --- /dev/null
54 +++ b/app-text/vgrep/vgrep-2.5.0.ebuild
55 @@ -0,0 +1,37 @@
56 +# Copyright 1999-2020 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI="7"
60 +
61 +inherit go-module
62 +
63 +DESCRIPTION="A pager for grep, git-grep and similar grep implementations"
64 +HOMEPAGE="https://github.com/vrothberg/vgrep"
65 +SRC_URI="https://github.com/vrothberg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
66 +
67 +LICENSE="BSD GPL-3+ MIT MIT-with-advertising"
68 +SLOT="0"
69 +KEYWORDS="~amd64"
70 +
71 +# Uses golangci-lint
72 +RESTRICT="test"
73 +
74 +BDEPEND="dev-go/go-md2man"
75 +
76 +DOCS=( README.md )
77 +
78 +PATCHES=( "${FILESDIR}"/vgrep-2.5.0-remove-sudo.patch )
79 +
80 +# go binary
81 +QA_PRESTRIPPED="usr/bin/vgrep"
82 +
83 +src_compile() {
84 + emake build
85 +}
86 +
87 +src_install() {
88 + local prefix="${D}/usr"
89 + mkdir -p "${prefix}"/bin || die
90 +
91 + emake PREFIX="${prefix}" install
92 +}