From d628c1f8493d09e3deb5d19971cd21691d8758e4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 1 Mar 2025 19:28:40 +0000 Subject: gentoo auto-resync : 01:03:2025 - 19:28:40 --- dev-lua/Manifest.gz | Bin 8623 -> 8634 bytes dev-lua/luaposix/Manifest | 2 + dev-lua/luaposix/luaposix-36.3.ebuild | 73 ++++++++++++++++++++++++ dev-lua/luarocks/Manifest | 2 +- dev-lua/luarocks/luarocks-3.11.1-r1.ebuild | 85 ++++++++++++++++++++++++++++ dev-lua/luarocks/luarocks-3.11.1.ebuild | 86 ----------------------------- 6 files changed, 161 insertions(+), 87 deletions(-) create mode 100644 dev-lua/luaposix/luaposix-36.3.ebuild create mode 100644 dev-lua/luarocks/luarocks-3.11.1-r1.ebuild delete mode 100644 dev-lua/luarocks/luarocks-3.11.1.ebuild (limited to 'dev-lua') diff --git a/dev-lua/Manifest.gz b/dev-lua/Manifest.gz index 59072250d902..613f5d3b9cc6 100644 Binary files a/dev-lua/Manifest.gz and b/dev-lua/Manifest.gz differ diff --git a/dev-lua/luaposix/Manifest b/dev-lua/luaposix/Manifest index 0a275a076877..e8f320f28f83 100644 --- a/dev-lua/luaposix/Manifest +++ b/dev-lua/luaposix/Manifest @@ -1,3 +1,5 @@ DIST luaposix-36.2.1.tar.gz 188010 BLAKE2B 7f1d3cf0d766e32433f4946be92f3f0036652ae09e4816c8423e65ce47237b20151fec8ffa3d4b32079b247a98cb79f9c35758aff3c56c116b903a3b44c2c550 SHA512 cd7deeaa9179306f90bafdc6cfb2668cf42d5378e72e5baa09419198f2d42c5eab5d881e5584ac511f317bbfd850f2ad46b8cb743f1ae5e1a96f8153e03599d8 +DIST luaposix-36.3.tar.gz 189299 BLAKE2B 2d19844499dd48e71cd86216ee5bc27857a5d96586722f8395c7558c54c95a65c5675df6fe5c150f6d096b582a9cc1d3834a0731c9b865bbb66add9983006b30 SHA512 a2ad040089e2d334fe3e73ee1fb4cc741287e180962f54c0fbf9f74a0b4fd648eabef85f1d3260d904e1ba7072cdc3388d08c868da81c79f5a446004db92b7ef EBUILD luaposix-36.2.1.ebuild 1692 BLAKE2B 1295d653c9e29392895bcbbdb7829fd50b2f52b328919aba1b0e1f18637b3f906a7775cf1f92ad3ae24d21b01953647f075a404416905b5759ebe92700ebe4f6 SHA512 1cdfe1d4358857d4b5b1321353e47033a18a6e4d1000deb9c23d4a2af829b31a8244d7041221483510310f2bc9e1324e86fd3bd3cc8bcd79885eab2aa636af9b +EBUILD luaposix-36.3.ebuild 1694 BLAKE2B 87b816599fbaebdc0964e44c987821ddc6c532334cad1f21fc904bd09d6d034471a6754a87fbdda5569cd77cedea46fa1fc4f03a73e6bbe6b0ec955a0e242b57 SHA512 0cb7eb017f3a0b11da838863a456fa331ff71f97a558f78e9fbbb24dfb14f3dcbcfc7e548961eeac3f0ebc4aea8fcf5cf1e27ac730c22b59d00a27c533f7f3b6 MISC metadata.xml 333 BLAKE2B cde5d0fbb36e8fe0a6d1d2a4bf6a69dad4db3bf448c028af2c10ea7b2d77985ce4bca8cc64b019127bb20c9b98974fd5270d2d2a89c12da5febc0f984c519a91 SHA512 f5d2de55ae68b8d50f935c69c98246b94f94ff2065057f87a741f3bcb0862a29a94739d19f9b2cdecbb7e2001d141021a86538994864b53a1b2e62ba65d9f626 diff --git a/dev-lua/luaposix/luaposix-36.3.ebuild b/dev-lua/luaposix/luaposix-36.3.ebuild new file mode 100644 index 000000000000..0c811c99cbf3 --- /dev/null +++ b/dev-lua/luaposix/luaposix-36.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua toolchain-funcs + +DESCRIPTION="Bindings for POSIX APIs" +HOMEPAGE="https://luaposix.github.io/luaposix/ https://github.com/luaposix/luaposix" +SRC_URI="https://github.com/luaposix/luaposix/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~riscv-linux ~x86-linux" +IUSE="doc" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +# Requires specl, which is not in the tree yet +RESTRICT="test" + +DEPEND="${LUA_DEPS} + virtual/libcrypt:= +" +RDEPEND="${DEPEND} + lua_targets_lua5-1? ( dev-lua/lua-bit32[lua_targets_lua5-1(-)] ) + lua_targets_luajit? ( dev-lua/lua-bit32[lua_targets_luajit(-)] ) +" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + lua_copy_sources +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + # LDOC=true means disable ldoc update documentation + ./build-aux/luke --verbose package="${PN}" version="${PV}" \ + LDOC=true \ + PREFIX="${ED}/usr" \ + INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \ + INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \ + LUA_INCDIR="${EPREFIX}/$(lua_get_include_dir)" \ + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die + + popd || die +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_install() { + pushd "${BUILD_DIR}" || die + + ./build-aux/luke install \ + LDOC=true \ + PREFIX="${ED}/usr" \ + INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \ + INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \ + || die + + popd || die +} + +src_install() { + lua_foreach_impl lua_src_install + dodoc {NEWS,README}.md + use doc && dodoc -r doc +} diff --git a/dev-lua/luarocks/Manifest b/dev-lua/luarocks/Manifest index 8680ef091ff1..2f1c8713cc0a 100644 --- a/dev-lua/luarocks/Manifest +++ b/dev-lua/luarocks/Manifest @@ -1,3 +1,3 @@ DIST luarocks-3.11.1.tar.gz 277760 BLAKE2B 9470b0cd01329e223769b53a5aea743916c2ffedd6171a0b06e105131e2475ec4919fc1e6347162d1049ae5b2d9b32bea705e35577e58edaa29dddb910d343e7 SHA512 1e214fd41711f62fda122d73441165a2d0ffe7ed29d3d3d7690b9a1a272c03e269fc39e0c2d35dddaa64fad411b87754da4e7b8236af562fde837e9e6626fbad -EBUILD luarocks-3.11.1.ebuild 2026 BLAKE2B ea2d400e70263bb1c0a1eaf1557acdf001312409f2389106cc2d24d505b315e74e718cd36cb9626b35ac14f23add7a1d155b02cd4ce80c521aeffd28640f0cb6 SHA512 930629bba8982e37eb176a6403791f50b01bf7315e7f5823d99bab66bfe09259e56d164942fab768b9efd67e739c06d5eb76e4f5962b10a1cc214a17062b9144 +EBUILD luarocks-3.11.1-r1.ebuild 1989 BLAKE2B 063ac573f5aa7dbacf173eb10129940a61424fe9737505b11cb902e0e76464bdde27168aff1ba822c811071309d69fd177f88376fc6cdb4e3631ac74113a1cc3 SHA512 4dcecb19f38d05c98ebbef2a62b089e2521511892099bc7b8fd3db2fbf14915169559877efe36b75a2dd97b60b292af0858994e90d3b0e2579438cc65e4cc73c MISC metadata.xml 501 BLAKE2B 0a2a3e7358a2ef2a4cbb79853408dfdf6015d49348bbb879a59253a88c73cf3d96c2ce708076844344468136d70962be74e639d24331a007fbd02ce6ccc18cee SHA512 43f147be67209e542e02733b6a57ce7ee05b61a7eb0d15662c0fb137db4f57c9f519cc98cf5dceb0e6f626f0dc6f04dd5b67da96a155b1e3884dca55896722f3 diff --git a/dev-lua/luarocks/luarocks-3.11.1-r1.ebuild b/dev-lua/luarocks/luarocks-3.11.1-r1.ebuild new file mode 100644 index 000000000000..beed8af78ba9 --- /dev/null +++ b/dev-lua/luarocks/luarocks-3.11.1-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua-single + +DESCRIPTION="A package manager for the Lua programming language" +HOMEPAGE="https://luarocks.org" +SRC_URI="https://luarocks.org/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="test" + +RDEPEND="${LUA_DEPS}" + +DEPEND=" + net-misc/curl + dev-libs/openssl:0 + ${RDEPEND} +" + +BDEPEND=" + virtual/pkgconfig + test? ( + $(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]') + $(lua_gen_cond_dep 'dev-lua/busted-htest[${LUA_USEDEP}]') + ${RDEPEND} + ) +" + +src_prepare() { + default + + # If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists, + # as no compiled modules are installed on a new, fresh installation, + # so this check must be disabled, otherwise 'configure' will fail. + sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die +} + +src_configure() { + local myeconfargs=( + "--prefix=${EPREFIX}/usr" + "--with-lua-include=$(lua_get_include_dir)" + "--with-lua-interpreter=${ELUA}" + "--with-lua-lib=$(lua_get_cmod_dir)" + ) + + # Since the configure script is handcrafted, + # and yells at unknown options, do not use 'econf'. + ./configure "${myeconfargs[@]}" || die +} + +src_test() { + busted --lua=${ELUA} || die +} + +src_install() { + default + + { find "${D}" -type f -exec sed -i -e "s:${D}::g" {} \;; } || die +} + +pkg_postinst() { + local lua_abi_ver + if use lua_single_target_luajit; then + lua_abi_ver="5.1" + else + lua_abi_ver=${ELUA#lua} + fi + elog + elog "To manage rocks for a Lua version other than the current ${CATEGORY}/${PN} default (${lua_abi_ver})" + elog "you can use the command-line option --lua-version, e.g." + elog + elog " luarocks --lua-version 5.3 install luasocket" + elog + elog "(use 5.1 for luajit). Note that the relevant Lua version must already be present in the system." + elog +} diff --git a/dev-lua/luarocks/luarocks-3.11.1.ebuild b/dev-lua/luarocks/luarocks-3.11.1.ebuild deleted file mode 100644 index 5d91c038fb0c..000000000000 --- a/dev-lua/luarocks/luarocks-3.11.1.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LUA_COMPAT=( lua5-{1..4} luajit ) - -inherit lua-single - -DESCRIPTION="A package manager for the Lua programming language" -HOMEPAGE="https://luarocks.org" -SRC_URI="https://luarocks.org/releases/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ppc ~ppc64 ~sparc x86" -IUSE="test" -REQUIRED_USE="${LUA_REQUIRED_USE}" -RESTRICT="test" - -RDEPEND="${LUA_DEPS}" - -DEPEND=" - net-misc/curl - dev-libs/openssl:0 - ${RDEPEND} -" - -BDEPEND=" - virtual/pkgconfig - test? ( - $(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]') - $(lua_gen_cond_dep 'dev-lua/busted-htest[${LUA_USEDEP}]') - ${RDEPEND} - ) -" - -src_prepare() { - default - - # If 'dev-lang/lua' is a new, fresh installation, no 'LUA_LIBDIR' exists, - # as no compiled modules are installed on a new, fresh installation, - # so this check must be disabled, otherwise 'configure' will fail. - sed -e '/LUA_LIBDIR is not a valid directory/d' -i configure || die -} - -src_configure() { - local myeconfargs=( - "--prefix=${EPREFIX}/usr" - "--rocks-tree=$(lua_get_lmod_dir)" - "--with-lua-include=$(lua_get_include_dir)" - "--with-lua-interpreter=${ELUA}" - "--with-lua-lib=$(lua_get_cmod_dir)" - ) - - # Since the configure script is handcrafted, - # and yells at unknown options, do not use 'econf'. - ./configure "${myeconfargs[@]}" || die -} - -src_test() { - busted --lua=${ELUA} || die -} - -src_install() { - default - - { find "${D}" -type f -exec sed -i -e "s:${D}::g" {} \;; } || die -} - -pkg_postinst() { - local lua_abi_ver - if use lua_single_target_luajit; then - lua_abi_ver="5.1" - else - lua_abi_ver=${ELUA#lua} - fi - elog - elog "To manage rocks for a Lua version other than the current ${CATEGORY}/${PN} default (${lua_abi_ver})" - elog "you can use the command-line option --lua-version, e.g." - elog - elog " luarocks --lua-version 5.3 install luasocket" - elog - elog "(use 5.1 for luajit). Note that the relevant Lua version must already be present in the system." - elog -} -- cgit v1.2.3