commit: 9d64afcd90d2d368c663743e0787c66ab51d4826 parent: e312f91de8f8aab8007a125fbbf6aa2bd1ea76a1 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Sun, 17 Mar 2019 11:03:10 +0100 app-shells/mksh: Import from ::gentooDiffstat:
A | app-shells/mksh/Manifest | 2 | ++ |
A | app-shells/mksh/metadata.xml | 8 | ++++++++ |
A | app-shells/mksh/mksh-56c.ebuild | 47 | +++++++++++++++++++++++++++++++++++++++++++++++ |
A | app-shells/mksh/mksh-57.ebuild | 47 | +++++++++++++++++++++++++++++++++++++++++++++++ |
A | app-shells/mksh/mksh-9999.ebuild | 56 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
5 files changed, 160 insertions(+), 0 deletions(-)
diff --git a/app-shells/mksh/Manifest b/app-shells/mksh/Manifest @@ -0,0 +1,2 @@ +DIST mksh-R56c.tgz 417218 BLAKE2B 3512855dd177be8432fe503716ca571a3c06ab3eeb6b44de923ab7d9eb9246087f627b7d7a3e9bb29a849da126b88c223864f140b136e922776ec7bd4a04e96d SHA512 7e4cd2d24c6bca2ebad7c6b02d158188e766bd4693d93f5bed198d69238aef078d42ce911431ad4e419e4af55083047d823bfad53973db5c6d8a685482770135 +DIST mksh-R57.tgz 419604 BLAKE2B 11af09535ace3fdd982189fb7d7f3e5961776c3bdbf6b981f4f1506a66ebdbd893efb9aa50a5a36fd8b3b7bd3e149021aad154888dc81e0de29f41e91eeb583c SHA512 7d7fa557c17da4f1f62f82877a136439efb6d4f9fde52b2df39214db09868982e756df6e4fe83498f9013cbcf3252dc383b00ddfafaa4c9f143ffded7cd255b3 diff --git a/app-shells/mksh/metadata.xml b/app-shells/mksh/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> +</pkgmetadata> diff --git a/app-shells/mksh/mksh-56c.ebuild b/app-shells/mksh/mksh-56c.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Authors +# 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 $? +} diff --git a/app-shells/mksh/mksh-57.ebuild b/app-shells/mksh/mksh-57.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# 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 $? +} diff --git a/app-shells/mksh/mksh-9999.ebuild b/app-shells/mksh/mksh-9999.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +if [[ $PV = 9999 ]]; then + inherit cvs + ECVS_SERVER="anoncvs.mirbsd.org:/cvs" + ECVS_MODULE="mksh" + ECVS_USER="_anoncvs" + ECVS_AUTH="ext" + KEYWORDS="" + DEPEND="static? ( dev-libs/klibc )" +else + inherit unpacker + DEPEND="app-arch/cpio + static? ( dev-libs/klibc )" + SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.cpio.gz" + KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux" +fi + +DESCRIPTION="MirBSD Korn Shell" +HOMEPAGE="http://mirbsd.de/mksh" +LICENSE="BSD" +SLOT="0" +IUSE="static" +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 -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 $? +}