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/
Date: Sun, 28 Jun 2020 22:58:53
Message-Id: 1593385098.24d5a90e18b43177b7a423caac93f6a25e62993f.whissi@gentoo
1 commit: 24d5a90e18b43177b7a423caac93f6a25e62993f
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 28 22:58:07 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 28 22:58:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d5a90e
7
8 app-text/vgrep: new package
9
10 Package-Manager: Portage-2.3.101, Repoman-2.3.22
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-text/vgrep/Manifest | 1 +
14 app-text/vgrep/metadata.xml | 12 ++++++++++++
15 app-text/vgrep/vgrep-2.3.1.ebuild | 33 +++++++++++++++++++++++++++++++++
16 3 files changed, 46 insertions(+)
17
18 diff --git a/app-text/vgrep/Manifest b/app-text/vgrep/Manifest
19 new file mode 100644
20 index 00000000000..6de74d93406
21 --- /dev/null
22 +++ b/app-text/vgrep/Manifest
23 @@ -0,0 +1 @@
24 +DIST vgrep-2.3.1.tar.gz 1149421 BLAKE2B c4c9a414bba5e509d57faa9ca6f6ce5cae1dbb001ff8b410ad54691ec6bf39f41c535fd25bdd5d93fdf89b4e4b49acf4dfa9a8956653e5c5e2ce39bd7da8d484 SHA512 0fa65151ae40f7fefc4e5b1af8e6ea332b50b1136849ec0902dd110786ca14204441e27c65a036b08fa56bf04a6325d8aa8ef2d4d02cdb0e0fe219896e24d694
25
26 diff --git a/app-text/vgrep/metadata.xml b/app-text/vgrep/metadata.xml
27 new file mode 100644
28 index 00000000000..4965843d0e8
29 --- /dev/null
30 +++ b/app-text/vgrep/metadata.xml
31 @@ -0,0 +1,12 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>whissi@g.o</email>
37 + <name>Thomas Deutschmann</name>
38 + </maintainer>
39 + <upstream>
40 + <bugs-to>https://github.com/vrothberg/vgrep/issues</bugs-to>
41 + <remote-id type="github">vrothberg/vgrep</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/app-text/vgrep/vgrep-2.3.1.ebuild b/app-text/vgrep/vgrep-2.3.1.ebuild
46 new file mode 100644
47 index 00000000000..0ccd06c8eb5
48 --- /dev/null
49 +++ b/app-text/vgrep/vgrep-2.3.1.ebuild
50 @@ -0,0 +1,33 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI="7"
55 +
56 +inherit go-module
57 +
58 +DESCRIPTION="A pager for grep, git-grep and similar grep implementations"
59 +HOMEPAGE="https://github.com/vrothberg/vgrep"
60 +SRC_URI="https://github.com/vrothberg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
61 +
62 +LICENSE="GPL-3+ MIT MIT-with-advertising"
63 +SLOT="0"
64 +KEYWORDS="~amd64"
65 +
66 +# Uses golangci-lint
67 +RESTRICT="test"
68 +
69 +DOCS=( README.md )
70 +
71 +# go binary
72 +QA_PRESTRIPPED="usr/bin/vgrep"
73 +
74 +src_compile() {
75 + emake build
76 +}
77 +
78 +src_install() {
79 + local prefix="${D}/usr"
80 + mkdir -p "${prefix}"/bin || die
81 +
82 + emake PREFIX="${prefix}" install
83 +}