mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-lua/luasystem: add 0.7.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST luasystem-0.6.3.tar.gz 81707 BLAKE2B c4a176621144e0ac9c85319327ab5cbe5b64e64152129208b07b0b777ba2e866d3100e1c98f61542c6f298b680757ff2f343d5c9491b7bda0be6834ab95f3c90 SHA512 c0aaf907bd99e471a01f9fe24ef7876eb64c7225edde799e11cc27fd3b269b1a79cd9d583a3b651a9ae4677dcad433a5739ee1a17540340b54c7d36935ac30a0
|
||||
DIST luasystem-0.7.0.tar.gz 86871 BLAKE2B a320d4a012f3cbccfedae909512e44f97be49628485854e3860486beb2f6cc3e5396cb6df56d94c88312b2f35adaa8325f7c5e0914fcec04004f556bc2269f21 SHA512 24b49f0863f762bb8875dea7ab08a001e1f667aa248581cc36e9bfe247b1fe62dc7739854c69b0b2f5c85da4401d1dd6a59dafac19225362e92704f8c9cf226d
|
||||
|
||||
89
dev-lua/luasystem/luasystem-0.7.0.ebuild
Normal file
89
dev-lua/luasystem/luasystem-0.7.0.ebuild
Normal file
@@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2026 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 ~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}
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
lua_copy_sources
|
||||
}
|
||||
|
||||
lua_src_test() {
|
||||
busted --exclude-tags=manual --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