Files
guru/app-shells/mrsh/mrsh-9999.ebuild
Haelwenn (lanodan) Monnier 121a406ae7 app-shells/mrsh: Address review from arthurzam@
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-10-02 21:36:18 +02:00

40 lines
714 B
Bash

# 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="+readline libedit"
REQUIRED_USE="?? ( libedit readline )"
DEPEND="
libedit? ( dev-libs/libedit )
readline? ( sys-libs/readline:= )
"
RDEPEND="${DEPEND}"
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
}