forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc-1.7.4-r1.ebuild
44 lines (35 loc) · 931 Bytes
/
rc-1.7.4-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A reimplementation of the Plan 9 shell"
HOMEPAGE="http://static.tobold.org/"
SRC_URI="http://static.tobold.org/${PN}/${P}.tar.gz"
LICENSE="rc"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="libedit readline"
RDEPEND="readline? ( sys-libs/readline:0 )
libedit? ( dev-libs/libedit )"
DEPEND="${RDEPEND}"
DOCS=( AUTHORS ChangeLog NEWS README )
src_configure() {
local myconf="--with-history"
use readline && myconf="--with-edit=readline"
use libedit && myconf="--with-edit=edit"
econf \
--disable-dependency-tracking \
"${myconf}"
}
src_install() {
into /usr
newbin "${PN}" "${PN}sh"
newman "${PN}.1" "${PN}sh.1"
einstalldocs
}
pkg_postinst() {
if ! grep -q '^/bin/rcsh$' "${EROOT}"/etc/shells ; then
ebegin "Updating /etc/shells"
echo "/bin/rcsh" >> "${EROOT}"/etc/shells
eend $?
fi
}