summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-09 04:52:02 +0100
committerSam James <sam@gentoo.org>2021-08-09 04:52:45 +0100
commitbfcef00e621fbe93cf1ea6511a01d8519568b864 (patch)
treeb9fbf252756a96fbf0a21d8a23654447a823f763 /app-misc
parentapp-text/lesspipe: restore mistakenly dropped RESTRICT="test" (diff)
downloadgentoo-bfcef00e621fbe93cf1ea6511a01d8519568b864.tar.gz
gentoo-bfcef00e621fbe93cf1ea6511a01d8519568b864.tar.bz2
gentoo-bfcef00e621fbe93cf1ea6511a01d8519568b864.zip
app-misc/grc: add 1.13
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/grc/Manifest1
-rw-r--r--app-misc/grc/grc-1.13.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/app-misc/grc/Manifest b/app-misc/grc/Manifest
index 03a331fdbcf7..e828e0ec813d 100644
--- a/app-misc/grc/Manifest
+++ b/app-misc/grc/Manifest
@@ -1,2 +1,3 @@
DIST grc-1.11.3.tar.gz 45205 BLAKE2B 852f58145fe11ceab3e6222b61c18cdb18a09f0666f28df4b8b8a8bc42a22dd01ae7e2bcf6232a6aa0d1f42ac233148f694a0eafbd995fbd5d147e06480f7abf SHA512 abc756a21e039c136bbf9be1ef7c1890aa2415ac21e87fb7377c90ced1def2dcaf9ce5cce22edeac68db20f6d6ccea31a2ec57044a37ba200ff79273bf11d8cf
DIST grc-1.12.tar.gz 48744 BLAKE2B dd7ab01739dfe637c4bf8b1d877e606869f9d11fed33112b499f72714ebb383e7dcbf80f160ac87d07bdc079ff7d589b9ad10b2f005c801fd13bb305466f1f8c SHA512 37ada5c7293bd0240c18b60cd7c60990e26e91b93fe9fb3ba1198c9d665647570191e985ab29de2b6554166ef703d81f449b486e83178b35df302836b5abb8c7
+DIST grc-1.13.tar.gz 49224 BLAKE2B d2c32d42ad1bd20c7d2b2aa68da114410e625463d30f0b93644cec4ddc69241d7f3c7a5f7edaed9fe42a1d21e8a0e5668403491d09679995558c94649b9d6fa8 SHA512 d8a7e78f84f5cb925a0205a81a9564ffe3d688eaa1f90d335a6f40e17757866374b6927f223e888a358586830b3feb4779f60faa01097b0c9703793ceea3de43
diff --git a/app-misc/grc/grc-1.13.ebuild b/app-misc/grc/grc-1.13.ebuild
new file mode 100644
index 000000000000..5ec1c2f54211
--- /dev/null
+++ b/app-misc/grc/grc-1.13.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{3..10} )
+inherit python-r1
+
+DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
+HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
+SRC_URI="https://github.com/garabik/grc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="${RDEPEND}"
+
+DOCS=( README.markdown INSTALL TODO debian/changelog CREDITS Regexp.txt )
+
+src_prepare() {
+ sed \
+ -e 's:#! :#!:g' \
+ -e 's:3$::g' \
+ -i grc grcat || die
+ default
+}
+
+src_install() {
+ python_foreach_impl python_doscript grc grcat
+
+ einstalldocs
+
+ insinto /usr/share/grc
+ doins \
+ contrib/mrsmith/conf.* \
+ colourfiles/conf.* \
+ grc.sh \
+ grc.fish \
+ grc.zsh
+
+ insinto /etc
+ doins grc.conf
+ doman *.1
+}
+
+pkg_postinst() {
+ elog
+ elog "Shell specific configurations can be found in ${EROOT}/usr/share/grc"
+ elog "Be sure to symlink one to use grc globally:"
+ elog
+ elog " ln -s ${EROOT}/usr/share/grc/grc.SHELL ${EROOT}/etc/profile.d/grc.sh"
+ elog
+ elog "Replace 'SHELL' in the above command with one of: bashrc, fish, zsh."
+ elog "Afterwards, use '. ${EROOT}/etc/profile' to activate grc in existing"
+ elog "shell sessions."
+ elog
+}