From 4486c79a390aab35d7286d5503c41c77087c8455 Mon Sep 17 00:00:00 2001 From: Shin'ya Minazuki Date: Sun, 6 Sep 2026 20:19:48 -0400 Subject: [PATCH] Add dev-lua/luash Signed-off-by: Shin'ya Minazuki --- dev-lua/luash/luash-9999.ebuild | 31 +++++++++++++++++++++++++++++++ dev-lua/luash/metadata.xml | 8 ++++++++ 2 files changed, 39 insertions(+) create mode 100644 dev-lua/luash/luash-9999.ebuild create mode 100644 dev-lua/luash/metadata.xml diff --git a/dev-lua/luash/luash-9999.ebuild b/dev-lua/luash/luash-9999.ebuild new file mode 100644 index 0000000..f7e09a1 --- /dev/null +++ b/dev-lua/luash/luash-9999.ebuild @@ -0,0 +1,31 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +LUA_COMPAT=( lua5-{1..4} ) + +inherit git-r3 lua-single + +DESCRIPTION="Tiny library for shell scripting with Lua" +HOMEPAGE="https://zserge.com/posts/luash/" +EGIT_REPO_URI="https://github.com/zserge/luash" + +LICENSE="MIT" +SLOT="0" +# I assume match all architectures as unstable +KEYWORDS="~*" + +src_unpack() { + git-r3_src_unpack +} + +src_install() { + mkdir -p ${D}/${EPREFIX}$(lua_get_lmod_dir)/${PN} + cp -f ${S}/sh.lua ${D}/${EPREFIX}$(lua_get_lmod_dir)/${PN} +} + +pkg_postinst() { + elog "Before calling require('sh') in any of your scripts, append $(lua_get_lmod_dir) to package.path" + einfo "package.path=[[/usr/share/lua/5.4/?/?.lua;]] .. package.path" + elog "This may be fixed in a following revision" +} diff --git a/dev-lua/luash/metadata.xml b/dev-lua/luash/metadata.xml new file mode 100644 index 0000000..44267db --- /dev/null +++ b/dev-lua/luash/metadata.xml @@ -0,0 +1,8 @@ + + + + + shinyoukai@chaotic.ninja + Shin'ya Minazuki + +