Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/grc/
Date: Tue, 01 Jun 2021 11:44:12
Message-Id: 1622547832.21f641804155c7207670a2e5e814657d5089d619.sam@gentoo
1 commit: 21f641804155c7207670a2e5e814657d5089d619
2 Author: Douglas Agbeve <douglas <AT> agbeve <DOT> com>
3 AuthorDate: Thu May 6 13:05:21 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 11:43:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21f64180
7
8 app-misc/grc: updating to version 1.12
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Douglas Agbeve <douglas <AT> agbeve.com>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 app-misc/grc/Manifest | 1 +
15 app-misc/grc/grc-1.12.ebuild | 61 ++++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 62 insertions(+)
17
18 diff --git a/app-misc/grc/Manifest b/app-misc/grc/Manifest
19 index bb840e7488a..03a331fdbcf 100644
20 --- a/app-misc/grc/Manifest
21 +++ b/app-misc/grc/Manifest
22 @@ -1 +1,2 @@
23 DIST grc-1.11.3.tar.gz 45205 BLAKE2B 852f58145fe11ceab3e6222b61c18cdb18a09f0666f28df4b8b8a8bc42a22dd01ae7e2bcf6232a6aa0d1f42ac233148f694a0eafbd995fbd5d147e06480f7abf SHA512 abc756a21e039c136bbf9be1ef7c1890aa2415ac21e87fb7377c90ced1def2dcaf9ce5cce22edeac68db20f6d6ccea31a2ec57044a37ba200ff79273bf11d8cf
24 +DIST grc-1.12.tar.gz 48744 BLAKE2B dd7ab01739dfe637c4bf8b1d877e606869f9d11fed33112b499f72714ebb383e7dcbf80f160ac87d07bdc079ff7d589b9ad10b2f005c801fd13bb305466f1f8c SHA512 37ada5c7293bd0240c18b60cd7c60990e26e91b93fe9fb3ba1198c9d665647570191e985ab29de2b6554166ef703d81f449b486e83178b35df302836b5abb8c7
25
26 diff --git a/app-misc/grc/grc-1.12.ebuild b/app-misc/grc/grc-1.12.ebuild
27 new file mode 100644
28 index 00000000000..7b18a5b7a6f
29 --- /dev/null
30 +++ b/app-misc/grc/grc-1.12.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{3..10} )
38 +inherit python-r1
39 +
40 +DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
41 +HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
42 +SRC_URI="https://github.com/garabik/grc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~x86"
47 +
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +
50 +RDEPEND="${PYTHON_DEPS}"
51 +DEPEND="${RDEPEND}"
52 +
53 +DOCS=( README.markdown INSTALL TODO debian/changelog CREDITS Regexp.txt )
54 +
55 +src_prepare() {
56 + sed \
57 + -e 's:#! :#!:g' \
58 + -e 's:3$::g' \
59 + -i grc grcat || die
60 + default
61 +}
62 +
63 +src_install() {
64 + python_foreach_impl python_doscript grc grcat
65 +
66 + einstalldocs
67 +
68 + insinto /usr/share/grc
69 + doins \
70 + contrib/mrsmith/conf.* \
71 + colourfiles/conf.* \
72 + grc.sh \
73 + grc.fish \
74 + grc.zsh
75 +
76 + insinto /etc
77 + doins grc.conf
78 + doman *.1
79 +}
80 +
81 +pkg_postinst() {
82 + elog
83 + elog "Shell specific configurations can be found in ${ROOT}/usr/share/grc"
84 + elog "Be sure to symlink one to use grc globally:"
85 + elog
86 + elog " ln -s ${ROOT}/usr/share/grc/grc.SHELL ${ROOT}/etc/profile.d/grc.sh"
87 + elog
88 + elog "Replace 'SHELL' in the above command with one of: bashrc, fish, zsh."
89 + elog "Afterwards, use '. ${ROOT}/etc/profile' to activate grc in existing"
90 + elog "shell sessions."
91 + elog
92 +}