app-shells/rc - 1.7.4 (gentoo)

Search

Install

Install this version:

emerge -a =app-shells/rc-1.7.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-shells/rc-1.7.4

Or alternatively:

emerge --autounmask-write -a =app-shells/rc-1.7.4

Package Information

Description:
A reimplementation of the Plan 9 shell
Homepage:
http://static.tobold.org/
License:
rc

Ebuild Details

Version EAPI Keywords Slot
1.7.4 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

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="sys-libs/ncurses:=
	readline? ( sys-libs/readline:= )
	libedit? ( dev-libs/libedit )"
DEPEND="${RDEPEND}"

DOCS=( AUTHORS ChangeLog NEWS README )

PATCHES=(
	"${FILESDIR}"/"${P}"-libedit.patch
	"${FILESDIR}"/"${P}"-C23.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local myconf="--with-history"
	use readline && myconf="--with-edit=readline"
	use libedit && myconf="--with-edit=edit"

	econf "${myconf}"
}

src_install() {
	into /usr
	newbin "${PN}" "${PN}sh"
	newman "${PN}.1" "${PN}sh.1"
	einstalldocs
}

pkg_postinst() {
	if ! grep -q '^/usr/bin/rcsh$' "${EROOT}"/etc/shells ; then
		ebegin "Updating /etc/shells"
		echo "/usr/bin/rcsh" >> "${EROOT}"/etc/shells
		eend $?
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-shells/rc | euse -E <flag> -p app-shells/rc | euse -D <flag> -p app-shells/rc

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

sys-libs/ncurses:=
	readline? ( sys-libs/readline:= )
	libedit? ( dev-libs/libedit )

RDEPEND

sys-libs/ncurses:=
	readline? ( sys-libs/readline:= )
	libedit? ( dev-libs/libedit )

Manifest for 1.7.4

Type File Size Source URLs
DIST rc-1.7.4.tar.gz 215206 bytes http://static.tobold.org/rc/rc-1.7.4.tar.gz