diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
commit | feb0daf81d888e9160f9f94502de09b66f2a63fd (patch) | |
tree | b6e5c40ce2abef3da27ed50a023153f475e0ddef /app-misc/grc/grc-1.11.3.ebuild | |
parent | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff) |
gentoo resync : 21.06.2020
Diffstat (limited to 'app-misc/grc/grc-1.11.3.ebuild')
-rw-r--r-- | app-misc/grc/grc-1.11.3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-misc/grc/grc-1.11.3.ebuild b/app-misc/grc/grc-1.11.3.ebuild new file mode 100644 index 000000000000..a3ff83965e44 --- /dev/null +++ b/app-misc/grc/grc-1.11.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) + +inherit eutils 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}" +DEPEND="${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.bashrc \ + grc.fish \ + grc.zsh + + insinto /etc + doins grc.conf + doman *.1 +} + +pkg_postinst() { + elog + elog "Shell specific configurations can be found in ${ROOT}/usr/share/grc" + elog "Be sure to symlink one to use grc globally:" + elog + elog " ln -s ${ROOT}/usr/share/grc.SHELL ${ROOT}/etc/profile.d/grc.sh" + elog + elog "Replace 'SHELL' in the above command with one of: bashrc, fish, zsh." + elog "Afterwards, use '. ${ROOT}/etc/profile' to activate grc in existing" + elog "shell sessions." + elog +} |