Gentoo Archives: gentoo-commits

From: Daniel Campbell <zlg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/grc/
Date: Mon, 13 Nov 2017 20:46:12
Message-Id: 1510605953.73638c2c82b42bfa0eead47420de1cf6941fd19e.zlg@gentoo
1 commit: 73638c2c82b42bfa0eead47420de1cf6941fd19e
2 Author: Daniel Campbell <zlg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 13 20:45:27 2017 +0000
4 Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 13 20:45:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73638c2c
7
8 app-misc/grc: Install all shell-specific config
9
10 This commit fixes a regression in the previous ebuild that was
11 installing grc.bashrc into /etc/profile.d unconditionally. The new
12 version installs them all to /usr/share/grc and lets the user decide how
13 to integrate it with their system.
14
15 Thanks to Torbjörn Lönnemark, poncho, Andreas Porteus.
16
17 Closes: https://bugs.gentoo.org/620138
18 Package-Manager: Portage-2.3.13, Repoman-2.3.4
19
20 app-misc/grc/grc-1.11-r1.ebuild | 20 +++++++++++++++++---
21 1 file changed, 17 insertions(+), 3 deletions(-)
22
23 diff --git a/app-misc/grc/grc-1.11-r1.ebuild b/app-misc/grc/grc-1.11-r1.ebuild
24 index dd4b617a629..516d79b6b94 100644
25 --- a/app-misc/grc/grc-1.11-r1.ebuild
26 +++ b/app-misc/grc/grc-1.11-r1.ebuild
27 @@ -35,9 +35,10 @@ src_install() {
28 insinto /usr/share/grc
29 doins \
30 contrib/mrsmith/conf.* \
31 - colourfiles/conf.*
32 - insinto /etc/profile.d
33 - newins grc.bashrc grc.sh
34 + colourfiles/conf.* \
35 + grc.bashrc \
36 + grc.fish \
37 + grc.zsh
38
39 insinto /etc
40 doins grc.conf
41 @@ -45,3 +46,16 @@ src_install() {
42 dodoc README.markdown INSTALL TODO debian/changelog CREDITS Regexp.txt
43 doman *.1
44 }
45 +
46 +pkg_postinst() {
47 + elog
48 + elog "Shell specific configurations can be found in ${ROOT}usr/share/grc"
49 + elog "Be sure to symlink one to use grc globally:"
50 + elog
51 + elog " ln -s ${ROOT}usr/share/grc.SHELL ${ROOT}etc/profile.d/grc.sh"
52 + elog
53 + elog "Replace 'SHELL' in the above command with one of: bashrc, fish, zsh."
54 + elog "Afterwards, use '. ${ROOT}etc/profile' to activate grc in existing"
55 + elog "shell sessions."
56 + elog
57 +}