commit: 017a2d6445386de433d33662fa8167bb05a6f255 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Sat Oct 2 15:38:40 2021 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Sat Oct 2 15:38:54 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=017a2d64
app-shells/mrsh: New Package Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> app-shells/mrsh/mrsh-9999.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/app-shells/mrsh/mrsh-9999.ebuild b/app-shells/mrsh/mrsh-9999.ebuild new file mode 100644 index 000000000..e113ed018 --- /dev/null +++ b/app-shells/mrsh/mrsh-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit git-r3 meson + +DESCRIPTION="minimal strictly POSIX compliant shell" +HOMEPAGE="https://mrsh.sh/" +EGIT_REPO_URI="https://git.sr.ht/~emersion/mrsh" +LICENSE="MIT" +SLOT="0" + +IUSE="libedit +readline" +DEPEND=" + libedit? ( dev-libs/libedit ) + readline? ( sys-libs/readline:= ) +" +RDEPEND="${DEPEND}" +REQUIRED_USE="?? ( libedit readline )" + +RESTRICT="test" + +src_configure() { + local emesonargs=( + -Dwerror=false + -Dauto_features=disabled + ) + + if use readline || use libedit; then + emesonargs+=( + -Dreadline=enabled + -Dreadline-provider=$(usev readline || usev libedit) + ) + fi + + meson_src_configure +}