blob: 253162e4004017202c77c6f9f70406143ed16b1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2021-2024 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://git.sr.ht/~emersion/mrsh"
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
}
|