mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
app-shells/mrsh: New Package
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
38
app-shells/mrsh/mrsh-9999.ebuild
Normal file
38
app-shells/mrsh/mrsh-9999.ebuild
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user