logo

overlay

My (experimental) gentoo overlay
commit: bedd882e1950d088a2644b1a3cb0ac1e7780c2a2
parent: 0864c342ff954cf2efab60d230edd25cf7e8b95d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 14 May 2019 14:34:12 +0200

app-shells/mksh: drop klibc on release too

Diffstat:

Aapp-shells/mksh/mksh-57-r2.ebuild53+++++++++++++++++++++++++++++++++++++++++++++++++++++
Dapp-shells/mksh/mksh-57.ebuild55-------------------------------------------------------
2 files changed, 53 insertions(+), 55 deletions(-)

diff --git a/app-shells/mksh/mksh-57-r2.ebuild b/app-shells/mksh/mksh-57-r2.ebuild @@ -0,0 +1,53 @@ +# 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="http://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 +} diff --git a/app-shells/mksh/mksh-57.ebuild b/app-shells/mksh/mksh-57.ebuild @@ -1,55 +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="http://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" -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 export CC="/usr/bin/klcc"; 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 -}