summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2018-01-16 17:01:49 +0100
committerPatrick Lauer <patrick@gentoo.org>2018-01-16 17:02:11 +0100
commit09fe37cca47e5858f927f18069a1b21564d2f165 (patch)
treed416d073c1677ca7afc566463210de9ea463151f /app-shells/mksh
parentnet-analyzer/prometheus-alertmanager: Remove old (diff)
downloadgentoo-09fe37cca47e5858f927f18069a1b21564d2f165.tar.gz
gentoo-09fe37cca47e5858f927f18069a1b21564d2f165.tar.bz2
gentoo-09fe37cca47e5858f927f18069a1b21564d2f165.zip
app-shells/mksh: Bump
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-shells/mksh')
-rw-r--r--app-shells/mksh/Manifest1
-rw-r--r--app-shells/mksh/mksh-56c.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/app-shells/mksh/Manifest b/app-shells/mksh/Manifest
index aea7d10dacb9..92c1d1219e90 100644
--- a/app-shells/mksh/Manifest
+++ b/app-shells/mksh/Manifest
@@ -4,3 +4,4 @@ DIST mksh-R52c.tgz 386254 BLAKE2B 027cf8e2bff4b8cc00ccd574a8a11b0e5d0164d9e59a9a
DIST mksh-R53a.tgz 393344 BLAKE2B 4dd331eea194ffa354359134677272aeca07cbbec45a07198d75bee623285f368f2887042faa5f7f5a58a935f53dd2e1b4cd930bed6b48c13cda0a82305ae58e SHA512 634e1cbdba7eaa3b6a7d75d9ade23e6465c8874ef616adb708867f6c46e5722bd2e4818f92350aeb7908872678fb446635224fff990d4dcdd4cf4f666cf2e91c
DIST mksh-R56.tgz 414865 BLAKE2B b50ff737efd899ff3a8d588717492c37b06f8f8dca147f34a974ccd15563259457472188886f0b1a73b78cf11531585c0bad40b86eec7841c4058a0572fb3355 SHA512 33839ed112b1b80eb6090f7fd3027d136e5b7c57ff5b3bd16f76f76fe1f39c8c0d49a0b43381ecfd3b20366c5edec515e554535151fe17021ab3dfaa70e84d82
DIST mksh-R56b.tgz 415088 BLAKE2B fef8baf664cb61ddfb312e2ec1c81f192478bfdc889ad82e7dc51f50517ec54c13fb32586c70f3d3a276ac739a93ac64ee1a511492e1e592d015b4882f4107f3 SHA512 a6f9061b2bfd19e9f4fdf3212a1c5a53a53cdb52650c95287cd380530c08f4a65a1ccec4bdcbba5e7c34e4764bf04eb43abb01742bcbf83107847a6996cc77a8
+DIST mksh-R56c.tgz 417218 BLAKE2B 3512855dd177be8432fe503716ca571a3c06ab3eeb6b44de923ab7d9eb9246087f627b7d7a3e9bb29a849da126b88c223864f140b136e922776ec7bd4a04e96d SHA512 7e4cd2d24c6bca2ebad7c6b02d158188e766bd4693d93f5bed198d69238aef078d42ce911431ad4e419e4af55083047d823bfad53973db5c6d8a685482770135
diff --git a/app-shells/mksh/mksh-56c.ebuild b/app-shells/mksh/mksh-56c.ebuild
new file mode 100644
index 000000000000..fe3b54c6ab82
--- /dev/null
+++ b/app-shells/mksh/mksh-56c.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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\\\""
+ sh Build.sh -r || 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 $?
+}