commit:     ba77b7080e07915c129ea0bf8f07b6b0ab6f9d1f
Author:     Vinícius Kury <viniciusreyeskury <AT> protonmail <DOT> com>
AuthorDate: Sat Apr 23 17:50:51 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Apr 24 07:39:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba77b708

app-shells/loksh: add 7.1

Signed-off-by: Vinícius Kury <viniciusreyeskury <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/25171
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-shells/loksh/Manifest         |  1 +
 app-shells/loksh/loksh-7.1.ebuild | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/app-shells/loksh/Manifest b/app-shells/loksh/Manifest
index 629bfefb3413..b54a8c2c3334 100644
--- a/app-shells/loksh/Manifest
+++ b/app-shells/loksh/Manifest
@@ -1 +1,2 @@
 DIST loksh-7.0.tar.xz 211536 BLAKE2B 
7633b89f6f3659cbe714f9dc3ab5b1a8a537d7ddf47bf34ee79617e4a3aa4238067d04be715b6abc2ce37212edb40e841006ec1e2b8e560236075eec364250f6
 SHA512 
d6eb0e0a639afb79b0d7df85477ded0d48d3ad27dbbd2068c24b81705000501c4542034586222a490a49443da36e7d1c64b5d714c94f942f507a14b89a0c389e
+DIST loksh-7.1.tar.xz 211636 BLAKE2B 
7604d6a5d3d3bce7dc51cde1d53ec10b927411afe700192e243e8dc022011cb3d89668768ba7940af22e97d95fd074638860e7b74fcacc8c83de4ad995654da4
 SHA512 
f46221f765f2799856049fbfe1650e6f3d13d597cf97843d4b54b9803b9ecedbf8a8c9364e1ba9b981b667004a8fe4da043006945f8b61f094678d3578518716

diff --git a/app-shells/loksh/loksh-7.1.ebuild 
b/app-shells/loksh/loksh-7.1.ebuild
new file mode 100644
index 000000000000..83a619864ef2
--- /dev/null
+++ b/app-shells/loksh/loksh-7.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="Linux port of OpenBSD's ksh"
+HOMEPAGE="https://github.com/dimkr/loksh";
+SRC_URI="https://github.com/dimkr/loksh/releases/download/${PV}/${P}.tar.xz";
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+
+DEPEND="sys-libs/ncurses:="
+RDEPEND="
+       ${DEPEND}
+       !app-shells/ksh
+"
+
+src_prepare() {
+       default
+       sed -i "/install_dir/s@loksh@${PF}@" meson.build || die
+}
+
+src_configure() {
+       # we want it as /bin/ksh
+       meson_src_configure --bindir=../bin
+}

Reply via email to