dev-lua/luash: good thing that was a single file
Signed-off-by: Shin'ya Minazuki <shinyoukai@chaotic.ninja>
This commit is contained in:
parent
4486c79a39
commit
26bf15d94d
1 changed files with 4 additions and 12 deletions
|
|
@ -1,10 +1,8 @@
|
||||||
# Copyright 2026 Gentoo Authors
|
# Copyright 2026 Shin'ya Minazuki
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
LUA_COMPAT=( lua5-{1..4} )
|
LUA_COMPAT=( lua5-{1..4} )
|
||||||
|
|
||||||
inherit git-r3 lua-single
|
inherit edo git-r3 lua-single
|
||||||
|
|
||||||
DESCRIPTION="Tiny library for shell scripting with Lua"
|
DESCRIPTION="Tiny library for shell scripting with Lua"
|
||||||
HOMEPAGE="https://zserge.com/posts/luash/"
|
HOMEPAGE="https://zserge.com/posts/luash/"
|
||||||
|
|
@ -20,12 +18,6 @@ src_unpack() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
mkdir -p ${D}/${EPREFIX}$(lua_get_lmod_dir)/${PN}
|
edo mkdir -p ${D}/${EPREFIX}$(lua_get_lmod_dir)/${PN}
|
||||||
cp -f ${S}/sh.lua ${D}/${EPREFIX}$(lua_get_lmod_dir)/${PN}
|
edo cp -f ${S}/sh.lua ${D}/${EPREFIX}$(lua_get_lmod_dir)/
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue