From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- dev-lua/lua-bit32/Manifest | 2 +- dev-lua/lua-bit32/lua-bit32-5.3.5.1-r1.ebuild | 75 +++++++++++++++++++++++++++ dev-lua/lua-bit32/lua-bit32-5.3.5.1.ebuild | 75 --------------------------- 3 files changed, 76 insertions(+), 76 deletions(-) create mode 100644 dev-lua/lua-bit32/lua-bit32-5.3.5.1-r1.ebuild delete mode 100644 dev-lua/lua-bit32/lua-bit32-5.3.5.1.ebuild (limited to 'dev-lua/lua-bit32') diff --git a/dev-lua/lua-bit32/Manifest b/dev-lua/lua-bit32/Manifest index b67817c955fc..18492e9c19e9 100644 --- a/dev-lua/lua-bit32/Manifest +++ b/dev-lua/lua-bit32/Manifest @@ -1,3 +1,3 @@ DIST lua-compat53-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d -EBUILD lua-bit32-5.3.5.1.ebuild 1435 BLAKE2B 099af488c89f6c3952309e7f432171a5b83316986bbdc7caaa43b7c0cac313b37c70281d3f7f9dcc92a1a8dc80a12c8a41fc9429d5f25c34ac08fbf44822886a SHA512 c67239aec7a3f2e68490cd46bec65fdad428b494851243cc3864317d6227961a27ba36b28ef2e481ab33d14c175ef0d35a862ece9459b9b8956755a5ccb86c94 +EBUILD lua-bit32-5.3.5.1-r1.ebuild 1435 BLAKE2B a4fce5a5499e24860ce4cdec4ff09132a73a728e67000e097ea612d36738d258601637cb44b12c1fc323ee29b8b361307a69dd7b0ceb177bac9ee6015cfa9959 SHA512 e141ef3267ddeb5c5d4f0f5978bc9df9425916bb61049f9153aedecd1e3be825fcd07c0997263396cc802eb1dffc15e2b2837752ccaaf19cff280e2d09420409 MISC metadata.xml 611 BLAKE2B 9a21a0c6e2ecf52c5252061d73a2aa21bbfb49f6983dde4cabca70ef02d61bababc2a257e2e4c3cf4ca88e053dd946ef9c96bfee1a0488c92b7609e4efc82781 SHA512 9ea22021bf3d29ec0128a37faffe0e96c4fd8cdcdf96e9134836892b85158fb1a2c70f34adb739774b93a605a48fc1249e5921a5e4f7b21e27f81296b8751fb2 diff --git a/dev-lua/lua-bit32/lua-bit32-5.3.5.1-r1.ebuild b/dev-lua/lua-bit32/lua-bit32-5.3.5.1-r1.ebuild new file mode 100644 index 000000000000..e46888296c25 --- /dev/null +++ b/dev-lua/lua-bit32/lua-bit32-5.3.5.1-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 luajit ) + +MY_PN="lua-compat-5.3" +MY_PV="0.10" + +inherit lua toolchain-funcs + +DESCRIPTION="Backported Lua bit manipulation library" +HOMEPAGE="https://github.com/keplerproject/lua-compat-5.3" +SRC_URI="https://github.com/keplerproject/${MY_PN}/archive/v${MY_PV}.tar.gz -> lua-compat53-${MY_PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" + +lua_src_compile() { + local compiler=( + "$(tc-getCC)" + "${CFLAGS}" + "-fPIC" + "${LDFLAGS}" + "-DLUA_COMPAT_BITLIB" + "-Ic-api" + "$(lua_get_CFLAGS)" + "-c lbitlib.c" + "-o lbitlib-${ELUA}.o" + ) + einfo "${compiler[@]}" + ${compiler[@]} || die + + local linker=( + "$(tc-getCC)" + "-shared" + "${LDFLAGS}" + "-o bit32-${ELUA}.so" + "lbitlib-${ELUA}.o" + ) + einfo "${linker[@]}" + ${linker[@]} || die +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_test() { + LUA_CPATH="./bit32-${ELUA}.so" "${ELUA}" "tests/test-bit32.lua" || die +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + exeinto "$(lua_get_cmod_dir)" + newexe "bit32-${ELUA}.so" "bit32.so" +} + +src_install() { + default + + lua_foreach_impl lua_src_install +} diff --git a/dev-lua/lua-bit32/lua-bit32-5.3.5.1.ebuild b/dev-lua/lua-bit32/lua-bit32-5.3.5.1.ebuild deleted file mode 100644 index 01596fb23552..000000000000 --- a/dev-lua/lua-bit32/lua-bit32-5.3.5.1.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -LUA_COMPAT=( lua5-1 luajit ) - -MY_PN="lua-compat-5.3" -MY_PV="0.10" - -inherit lua toolchain-funcs - -DESCRIPTION="Backported Lua bit manipulation library" -HOMEPAGE="https://github.com/keplerproject/lua-compat-5.3" -SRC_URI="https://github.com/keplerproject/${MY_PN}/archive/v${MY_PV}.tar.gz -> lua-compat53-${MY_PV}.tar.gz" -S="${WORKDIR}/${MY_PN}-${MY_PV}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="test" -REQUIRED_USE="${LUA_REQUIRED_USE}" -RESTRICT="!test? ( test )" - -DEPEND="${LUA_DEPS}" -RDEPEND="${DEPEND}" - -lua_src_compile() { - local compiler=( - "$(tc-getCC)" - "${CFLAGS}" - "-fPIC" - "${LDFLAGS}" - "-DLUA_COMPAT_BITLIB" - "-Ic-api" - "$(lua_get_CFLAGS)" - "-c lbitlib.c" - "-o lbitlib-${ELUA}.o" - ) - einfo "${compiler[@]}" - ${compiler[@]} || die - - local linker=( - "$(tc-getCC)" - "-shared" - "${LDFLAGS}" - "-o bit32-${ELUA}.so" - "lbitlib-${ELUA}.o" - ) - einfo "${linker[@]}" - ${linker[@]} || die -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - LUA_CPATH="./bit32-${ELUA}.so" "${ELUA}" "tests/test-bit32.lua" || die -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - exeinto "$(lua_get_cmod_dir)" - newexe "bit32-${ELUA}.so" "bit32.so" -} - -src_install() { - default - - lua_foreach_impl lua_src_install -} -- cgit v1.2.3