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-shells/rc/
Date: Sun, 27 Feb 2022 00:58:38
Message-Id: 1645923345.a9ae0068e8500b97d36b85efde823cdaed35be61.sam@gentoo
1 commit: a9ae0068e8500b97d36b85efde823cdaed35be61
2 Author: Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
3 AuthorDate: Sat Feb 26 22:16:06 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 00:55:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9ae0068
7
8 app-shells/rc: fix bug preventing rc becoming login shell
9
10 Previously the path /bin/rcsh was appended to /etc/shells
11 despite the ebuild installing to /usr/bin/rcsh.
12 This new revision appends the proper path in /etc/shells
13
14 Closes: https://bugs.gentoo.org/830633
15 Package-Manager: Portage-3.0.30, Repoman-3.0.3
16 Signed-off-by: Richard Rogalski <rrogalski <AT> tutanota.com>
17 Closes: https://github.com/gentoo/gentoo/pull/24366
18 Signed-off-by: Sam James <sam <AT> gentoo.org>
19
20 app-shells/rc/rc-1.7.4-r2.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++
21 1 file changed, 42 insertions(+)
22
23 diff --git a/app-shells/rc/rc-1.7.4-r2.ebuild b/app-shells/rc/rc-1.7.4-r2.ebuild
24 new file mode 100644
25 index 000000000000..1f68bd85ca1b
26 --- /dev/null
27 +++ b/app-shells/rc/rc-1.7.4-r2.ebuild
28 @@ -0,0 +1,42 @@
29 +# Copyright 1999-2022 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=8
33 +
34 +DESCRIPTION="A reimplementation of the Plan 9 shell"
35 +HOMEPAGE="http://static.tobold.org/"
36 +SRC_URI="http://static.tobold.org/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="rc"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="libedit readline"
42 +
43 +RDEPEND="readline? ( sys-libs/readline:0 )
44 + libedit? ( dev-libs/libedit )"
45 +DEPEND="${RDEPEND}"
46 +
47 +DOCS=( AUTHORS ChangeLog NEWS README )
48 +
49 +src_configure() {
50 + local myconf="--with-history"
51 + use readline && myconf="--with-edit=readline"
52 + use libedit && myconf="--with-edit=edit"
53 +
54 + econf "${myconf}"
55 +}
56 +
57 +src_install() {
58 + into /usr
59 + newbin "${PN}" "${PN}sh"
60 + newman "${PN}.1" "${PN}sh.1"
61 + einstalldocs
62 +}
63 +
64 +pkg_postinst() {
65 + if ! grep -q '^/usr/bin/rcsh$' "${EROOT}"/etc/shells ; then
66 + ebegin "Updating /etc/shells"
67 + echo "/usr/bin/rcsh" >> "${EROOT}"/etc/shells
68 + eend $?
69 + fi
70 +}