logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 4823913f599e79236b79986166d644f83a73c6c5
parent 4fc7dc79fc71fa2d29811100a43053d0cce0dc5c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 20 Mar 2021 04:39:22 +0100

app-shells/mksh: Superseeded by ::gentoo

Diffstat:

Dapp-shells/mksh/Manifest1-
Dapp-shells/mksh/metadata.xml11-----------
Dapp-shells/mksh/mksh-57-r2.ebuild74--------------------------------------------------------------------------
Dapp-shells/mksh/mksh-9999.ebuild53-----------------------------------------------------
4 files changed, 0 insertions(+), 139 deletions(-)

diff --git a/app-shells/mksh/Manifest b/app-shells/mksh/Manifest @@ -1 +0,0 @@ -DIST mksh-R57.tgz 419604 BLAKE2B 11af09535ace3fdd982189fb7d7f3e5961776c3bdbf6b981f4f1506a66ebdbd893efb9aa50a5a36fd8b3b7bd3e149021aad154888dc81e0de29f41e91eeb583c SHA512 7d7fa557c17da4f1f62f82877a136439efb6d4f9fde52b2df39214db09868982e756df6e4fe83498f9013cbcf3252dc383b00ddfafaa4c9f143ffded7cd255b3 diff --git a/app-shells/mksh/metadata.xml b/app-shells/mksh/metadata.xml @@ -1,11 +0,0 @@ -<?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> - <use> - <flag name="lksh">Builds the POSIX-Compliant arithmetics (host’s long) variant</flag> - </use> -</pkgmetadata> diff --git a/app-shells/mksh/mksh-57-r2.ebuild b/app-shells/mksh/mksh-57-r2.ebuild @@ -1,74 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# 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="" -else - SRC_URI="https://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz" - KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" -fi - -DESCRIPTION="MirBSD Korn Shell" -HOMEPAGE="http://mirbsd.de/mksh" -LICENSE="BSD" -SLOT="0" -IUSE="static +lksh" -S="${WORKDIR}/${PN}" - -src_prepare() { - default - - if use lksh; then - cp "${S}" "${S}"_lksh - fi -} - -src_compile() { - tc-export CC - if use static; then - export LDSTATIC="-static" - fi - - export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" - - # TODO: Add lksh to `/etc/shells (sys-apps/baselayout)` and `app-eselect/eselect-sh` - if use lksh; then - cd "${S}"_lksh - CPPFLAGS="${CPPFLAGS} -DMKSH_BINSHPOSIX -DMKSH_BINSHREDUCED" \ - sh Build.sh -r -L || die - fi - - sh Build.sh -r || die -} - -src_install() { - exeinto /bin - doexe mksh - doman mksh.1 - dodoc dot.mkshrc - - if use lksh; then - cd "${S}"_lksh - - doexe lksh - doman lksh.1 - fi -} - -src_test() { - ./test.sh -v || die - - if use lksh; then - cd "${S}"_lksh - ./test.sh -v || die - fi -} diff --git a/app-shells/mksh/mksh-9999.ebuild b/app-shells/mksh/mksh-9999.ebuild @@ -1,53 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# 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="" -else - SRC_URI="https://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz" - KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" -fi - -DESCRIPTION="MirBSD Korn Shell" -HOMEPAGE="http://mirbsd.de/mksh" -LICENSE="BSD" -SLOT="0" -IUSE="static +lksh" -RDEPEND="" -S="${WORKDIR}/${PN}" - -src_compile() { - tc-export CC - if use static; then export LDSTATIC="-static"; fi - export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" - - # Note: lksh should be used as a replacement to /bin/sh instead of mksh - if use lksh - then - export CPPFLAGS="${CPPFLAGS} -DMKSH_BINSHPOSIX -DMKSH_BINSHREDUCED" - sh Build.sh -r -L || die - fi - - sh Build.sh -r || die -} - -src_install() { - exeinto /bin - use lksh && doexe lksh - doexe mksh - doman mksh.1 - dodoc dot.mkshrc -} - -src_test() { - ./test.sh -v || die -}