mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-lua/luasystem: add 0.4.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
@@ -2,3 +2,4 @@ DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405
|
||||
DIST luasystem-0.3.0.tar.gz 19607 BLAKE2B 82dd54dab61045d25d9d1dc074526c2443b9732adf27da052f65702f0941a04dce65582091b5ecb802e5aed9baa2f4dbd53e4cd1b624426341a83fbcb0109378 SHA512 1adf1167767d7d8233ed2c90c106b050dc2370e891465eeb13f16ebc96e8f467d67a89a40173064112117ac9db2451aa73fde0d11fab01f6d2c56bdef50cb6ac
|
||||
DIST luasystem-0.4.0.tar.gz 74560 BLAKE2B 3ca3ef54572c3aca7ac465b4e93c0ae14ce33d9e278b504c7d6be209d9d26c3f21d6bb342da8c0ab7b008d366313fec436c6c7a8bd9e3246a3f2bfd6f2213214 SHA512 2b117e20955dac74b850363d88a08ca75e085e8078824b0f0a43deb29aad92e1f6a3687e6b504caf241a5353a59a96555964b3b0d6ff623c5680c005e65b294a
|
||||
DIST luasystem-0.4.1.tar.gz 74722 BLAKE2B e9d471291ddd4a89d0ac1a02459a84850749a3be1c22bfd3376ddb2886ca34d1f8db364dfb1376df072616072c45b0810886d93d2a9a87d25b123c162c07bd21 SHA512 ba98735007a81d3db2ac901283970b2d7c7db0c0b3d7098a2ff65e994f8fba4cbd0af20e7676e4e986e6c44c23e717dc0587eb9ee89760056cc4aaba173b9578
|
||||
DIST luasystem-0.4.2.tar.gz 74837 BLAKE2B 09d307ab2764bc68eb0fe3aae2c556ca70490e738e3ffcd620f4b43d00c22f19d47c67014b7f14ae1d561a4a2bee8d4b79dee3a76a47c832af602cbe8f9186f0 SHA512 98681005dfcab3807a794eec78550903a2f39de59de39c92016bbd690215946f22c17fb802b40c7e12ad19ab846a118414ab082408b11559030c35fd69ac9314
|
||||
|
||||
91
dev-lua/luasystem/luasystem-0.4.2.ebuild
Normal file
91
dev-lua/luasystem/luasystem-0.4.2.ebuild
Normal file
@@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||
MY_PV="${PV/_p/-}"
|
||||
|
||||
inherit lua toolchain-funcs
|
||||
|
||||
DESCRIPTION="Platform independent system calls for Lua"
|
||||
HOMEPAGE="https://github.com/lunarmodules/luasystem"
|
||||
SRC_URI="https://github.com/lunarmodules/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${LUA_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
dev-lua/busted[${LUA_USEDEP}]
|
||||
dev-lua/lua_cliargs[${LUA_USEDEP}]
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.2.1_p0-fix-makefile.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
lua_copy_sources
|
||||
}
|
||||
|
||||
lua_src_test() {
|
||||
busted --lua=${ELUA} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
lua_foreach_impl lua_src_test
|
||||
}
|
||||
|
||||
lua_src_compile() {
|
||||
pushd "${BUILD_DIR}" || die
|
||||
|
||||
local myemakeargs=(
|
||||
"CC=$(tc-getCC)"
|
||||
"LD=$(tc-getCC)"
|
||||
"LUAINC_linux=$(lua_get_include_dir)"
|
||||
"MYCFLAGS=${CFLAGS}"
|
||||
"MYLDFLAGS=${LDFLAGS}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" linux
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
lua_foreach_impl lua_src_compile
|
||||
}
|
||||
|
||||
lua_src_install () {
|
||||
pushd "${BUILD_DIR}" || die
|
||||
|
||||
local emakeargs=(
|
||||
"INSTALL_TOP_CDIR=${ED}/$(lua_get_cmod_dir)"
|
||||
"INSTALL_TOP_LDIR=${ED}/$(lua_get_lmod_dir)"
|
||||
"LUA_INC=${ED}/$(lua_get_include_dir)"
|
||||
)
|
||||
|
||||
emake "${emakeargs[@]}" install
|
||||
|
||||
insinto $(lua_get_lmod_dir)/system
|
||||
doins system/init.lua
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
lua_foreach_impl lua_src_install
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user