forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Haelwenn (lanodan) Monnier <[email protected]> Closes: gentoo#18589 Signed-off-by: Joonas Niilola <[email protected]>
- Loading branch information
Showing
3 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST mksh-R57.tgz 419604 BLAKE2B 11af09535ace3fdd982189fb7d7f3e5961776c3bdbf6b981f4f1506a66ebdbd893efb9aa50a5a36fd8b3b7bd3e149021aad154888dc81e0de29f41e91eeb583c SHA512 7d7fa557c17da4f1f62f82877a136439efb6d4f9fde52b2df39214db09868982e756df6e4fe83498f9013cbcf3252dc383b00ddfafaa4c9f143ffded7cd255b3 | ||
DIST mksh-R58.tgz 435617 BLAKE2B c5dd16effc8c08ac5f4a3986a14d786990b64d9da76b1b7d27de8a2dfbfa6fe172e9c58681df8f428a1e3548e54b5f6b037714a924f1053bfa3eedacc8eba173 SHA512 711351f8bbe8e44fcf9e7963f8e749938ec3ccb362fafd5350d44593841c2acb6d54ffa115dbb6b83c30865728a4c5274c05feedb063e293361e2830d263d80f | ||
DIST mksh-R59.tgz 438821 BLAKE2B 4a737b47ab58a99707d93b680ec5474b7b6e190241778010879d0b20028f97bfca9b526c807ed0b37d03b6aef9a2eaf2506d73d1a00ac14b60b21e57791d8d4f SHA512 be5009ce8f02eab1392f95d7f85f5aad57b1445684b4fe8cd0284a7d79386170979303ef19f039fdbb53bd2a791f3e3603d2fe57e015fed4cb4a24ab710bcfbb | ||
DIST mksh-R59c.tgz 442736 BLAKE2B 4e1b6e6fc69b27d01e262a5622191515fa71d29e81a3f10fb60458542506874b49f60f9af1e28c1cd266c63c91e3287579ab6bda00c39b7388445b19c969fa22 SHA512 f56b6956f9e1dd88ddce2294301a5eb698050d9d4f49286fdcd8f9df8554eabbcc71d37e2bf3eb7234e3968a17231cc6de8aa7efbf17768834a90b14e8cdf340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit toolchain-funcs | ||
|
||
if [[ ${PV} == *9999 ]] ; then | ||
inherit cvs | ||
ECVS_SERVER="anoncvs.mirbsd.org:/cvs" | ||
ECVS_MODULE="mksh" | ||
ECVS_USER="_anoncvs" | ||
ECVS_AUTH="ext" | ||
else | ||
SRC_URI="https://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" | ||
fi | ||
|
||
DESCRIPTION="MirBSD Korn Shell" | ||
# Host is TLSv1.0-only, keep to http for compatibility with modern browsers | ||
HOMEPAGE="http://mirbsd.de/mksh" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
IUSE="lksh static test" | ||
RESTRICT="!test? ( test )" | ||
|
||
DEPEND=" | ||
test? ( | ||
dev-lang/perl | ||
sys-apps/ed | ||
) | ||
" | ||
|
||
S="${WORKDIR}/${PN}" | ||
|
||
src_prepare() { | ||
default | ||
if use lksh; then | ||
cp -pr "${S}" "${S}"_lksh || die | ||
fi | ||
} | ||
|
||
src_compile() { | ||
tc-export CC | ||
use static && export LDSTATIC="-static" | ||
export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\"" | ||
|
||
if use lksh; then | ||
pushd "${S}"_lksh >/dev/null || die | ||
CPPFLAGS="${CPPFLAGS} -DMKSH_BINSHPOSIX -DMKSH_BINSHREDUCED" \ | ||
sh Build.sh -r -L || die | ||
popd >/dev/null || die | ||
fi | ||
|
||
sh Build.sh -r || die | ||
sh FAQ2HTML.sh || die | ||
} | ||
|
||
src_install() { | ||
into / | ||
dobin mksh | ||
dosym mksh /bin/rmksh | ||
doman mksh.1 | ||
dodoc dot.mkshrc | ||
dodoc FAQ.htm | ||
|
||
if use lksh; then | ||
dobin "${S}"_lksh/lksh | ||
dosym lksh /bin/rlksh | ||
doman "${S}"_lksh/lksh.1 | ||
fi | ||
} | ||
|
||
src_test() { | ||
einfo "Testing regular mksh." | ||
./mksh test.sh -v || die | ||
|
||
if use lksh; then | ||
einfo "Testing lksh, POSIX long-bit mksh." | ||
pushd "${S}"_lksh >/dev/null || die | ||
./lksh test.sh -v || die | ||
popd >/dev/null || die | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters