Commit: bd196ebde1fd1052dbd87667f5f1c00862e71a8c Parent: 27fbbc99770315e378484c85aaddbb3f7037d0b0 Author: opask Date: Tue, 8 Jan 2019 08:46:08 -0700 add app-shells/oksh to overlay Diffstat:
A | app-shells/oksh/Manifest | | | 1 | + |
A | app-shells/oksh/oksh-9999.ebuild | | | 33 | +++++++++++++++++++++++++++++++++ |
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/app-shells/oksh/Manifest b/app-shells/oksh/Manifest @@ -0,0 +1 @@ +EBUILD oksh-9999.ebuild 636 BLAKE2B bf75c8251dccaeea4eef30edc82cf92393de77901dc4ac28f09703e15b4b357550d6e2d913fa70060627647a8996ba070d7596ee209aad4781358a8aa59df38a SHA512 3f9404a79a417cf5077ba141525caaf3d329331b12f63b777b6cc978238a4365ab3b5d8272fc8827dd3ebb3a60cd0e4c72024d1b892ce74f35bdeb71028bd4b8 diff --git a/app-shells/oksh/oksh-9999.ebuild b/app-shells/oksh/oksh-9999.ebuild @@ -0,0 +1,33 @@ +EAPI=7 + +inherit git-r3 + +DESCRIPTION="Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh)" +HOMEPAGE="https://github.com/ibara/oksh" +EGIT_REPO_URI="https://github.com/ibara/oksh.git" + +LICENSE="public-domain" +SLOT=0 +IUSE="+static +ksh curses" + +src_configure() { + econf CC=${CC} \ + $(use_enable static) \ + $(use_enable ksh) \ + $(use_enable curses) \ + --prefix=/ \ + --mandir=/usr/share/man +} + +src_install() { + emake DESTDIR="${D}" install + einstalldocs +} + +pkg_postinst() { + if ! grep -q '^/bin/ksh$' "${EROOT}"/etc/shells ; then + ebegin "Updating /etc/shells" + echo "/bin/ksh" >> "${EROOT}"/etc/shells + eend $? + fi +}