1 |
commit: 017a2d6445386de433d33662fa8167bb05a6f255 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Sat Oct 2 15:38:40 2021 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Sat Oct 2 15:38:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=017a2d64 |
7 |
|
8 |
app-shells/mrsh: New Package |
9 |
|
10 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
11 |
|
12 |
app-shells/mrsh/mrsh-9999.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 38 insertions(+) |
14 |
|
15 |
diff --git a/app-shells/mrsh/mrsh-9999.ebuild b/app-shells/mrsh/mrsh-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..e113ed018 |
18 |
--- /dev/null |
19 |
+++ b/app-shells/mrsh/mrsh-9999.ebuild |
20 |
@@ -0,0 +1,38 @@ |
21 |
+# Copyright 2021 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+inherit git-r3 meson |
27 |
+ |
28 |
+DESCRIPTION="minimal strictly POSIX compliant shell" |
29 |
+HOMEPAGE="https://mrsh.sh/" |
30 |
+EGIT_REPO_URI="https://git.sr.ht/~emersion/mrsh" |
31 |
+LICENSE="MIT" |
32 |
+SLOT="0" |
33 |
+ |
34 |
+IUSE="libedit +readline" |
35 |
+DEPEND=" |
36 |
+ libedit? ( dev-libs/libedit ) |
37 |
+ readline? ( sys-libs/readline:= ) |
38 |
+" |
39 |
+RDEPEND="${DEPEND}" |
40 |
+REQUIRED_USE="?? ( libedit readline )" |
41 |
+ |
42 |
+RESTRICT="test" |
43 |
+ |
44 |
+src_configure() { |
45 |
+ local emesonargs=( |
46 |
+ -Dwerror=false |
47 |
+ -Dauto_features=disabled |
48 |
+ ) |
49 |
+ |
50 |
+ if use readline || use libedit; then |
51 |
+ emesonargs+=( |
52 |
+ -Dreadline=enabled |
53 |
+ -Dreadline-provider=$(usev readline || usev libedit) |
54 |
+ ) |
55 |
+ fi |
56 |
+ |
57 |
+ meson_src_configure |
58 |
+} |