app-shells/mrsh: New Package

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2021-10-02 17:38:40 +02:00
parent 6d7f4abd00
commit 017a2d6445

View File

@@ -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
}