diff options
author | Patrick Lauer <patrick@gentoo.org> | 2015-01-18 01:44:25 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2015-01-18 01:44:25 +0000 |
commit | c6872c54ca4412d55dd1673c0d286304bd0950e0 (patch) | |
tree | 57af940a5094ec01ce59a196855fd2f1623d4651 /app-shells | |
parent | Don't redefine HOMEPAGE. (diff) | |
download | gentoo-2-c6872c54ca4412d55dd1673c0d286304bd0950e0.tar.gz gentoo-2-c6872c54ca4412d55dd1673c0d286304bd0950e0.tar.bz2 gentoo-2-c6872c54ca4412d55dd1673c0d286304bd0950e0.zip |
Add mksh to /etc/shells
(Portage version: 2.2.15/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/mksh/ChangeLog | 8 | ||||
-rw-r--r-- | app-shells/mksh/mksh-50d-r1.ebuild | 49 | ||||
-rw-r--r-- | app-shells/mksh/mksh-9999.ebuild | 11 |
3 files changed, 65 insertions, 3 deletions
diff --git a/app-shells/mksh/ChangeLog b/app-shells/mksh/ChangeLog index 313ad5299384..8573d0b0104f 100644 --- a/app-shells/mksh/ChangeLog +++ b/app-shells/mksh/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-shells/mksh # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/ChangeLog,v 1.60 2015/01/01 10:31:00 zlogene Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/ChangeLog,v 1.61 2015/01/18 01:44:25 patrick Exp $ + +*mksh-50d-r1 (18 Jan 2015) + + 18 Jan 2015; Patrick Lauer <patrick@gentoo.org> +mksh-50d-r1.ebuild, + mksh-9999.ebuild: + Add mksh to /etc/shells 01 Jan 2015; Mikle Kolyada <zlogene@gentoo.org> -mksh-48b.ebuild, -mksh-49.ebuild, -mksh-50b.ebuild, -mksh-50c.ebuild: diff --git a/app-shells/mksh/mksh-50d-r1.ebuild b/app-shells/mksh/mksh-50d-r1.ebuild new file mode 100644 index 000000000000..72381dcb2a2b --- /dev/null +++ b/app-shells/mksh/mksh-50d-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-50d-r1.ebuild,v 1.1 2015/01/18 01:44:25 patrick Exp $ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="MirBSD KSH Shell" +HOMEPAGE="http://mirbsd.de/mksh" +SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="static" +DEPEND="static? ( dev-libs/klibc )" +RDEPEND="" +S="${WORKDIR}/${PN}" + +src_compile() { + tc-export CC + # we want to build static with klibc + if use static ; then + unset CC + export CC="/usr/bin/klcc" + export LDSTATIC="-static" + fi + export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" + # we can't assume lto existing/enabled, so we add a fallback + sh Build.sh -r -c lto || sh Rebuild.sh || die +} + +src_install() { + exeinto /bin + doexe mksh + doman mksh.1 + dodoc dot.mkshrc +} + +src_test() { + ./test.sh || die +} + +pkg_postinst() { + ebegin "Updating /etc/shells" + ( grep -v "^/bin/mksh$" "${ROOT}"etc/shells; echo "/bin/mksh" ) > "${T}"/shells + mv -f "${T}"/shells "${ROOT}"etc/shells + eend $? +} diff --git a/app-shells/mksh/mksh-9999.ebuild b/app-shells/mksh/mksh-9999.ebuild index 3cd2184d9674..f49c4dee0b1f 100644 --- a/app-shells/mksh/mksh-9999.ebuild +++ b/app-shells/mksh/mksh-9999.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-9999.ebuild,v 1.5 2013/04/07 06:05:24 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/mksh/mksh-9999.ebuild,v 1.6 2015/01/18 01:44:25 patrick Exp $ EAPI=4 @@ -48,3 +48,10 @@ src_install() { src_test() { ./test.sh || die } + +pkg_postinst() { + ebegin "Updating /etc/shells" + ( grep -v "^/bin/mksh$" "${ROOT}"etc/shells; echo "/bin/mksh" ) > "${T}"/shells + mv -f "${T}"/shells "${ROOT}"etc/shells + eend $? +} |