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/luarocks/Manifest | 2 +- dev-lua/luarocks/luarocks-3.11.1-r1.ebuild | 85 +++++++++++++++++++++++++++++ dev-lua/luarocks/luarocks-3.11.1.ebuild | 86 ------------------------------ 3 files changed, 86 insertions(+), 87 deletions(-) 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/luarocks') 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