Add dev-lua/luash
Signed-off-by: Shin'ya Minazuki <shinyoukai@chaotic.ninja>
This commit is contained in:
parent
f895f409ec
commit
4486c79a39
2 changed files with 39 additions and 0 deletions
31
dev-lua/luash/luash-9999.ebuild
Normal file
31
dev-lua/luash/luash-9999.ebuild
Normal file
|
|
@ -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"
|
||||
}
|
||||
8
dev-lua/luash/metadata.xml
Normal file
8
dev-lua/luash/metadata.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>shinyoukai@chaotic.ninja</email>
|
||||
<name>Shin'ya Minazuki</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Loading…
Add table
Add a link
Reference in a new issue