From ccaccfe4f1da8c11d9fa110f6e4eb847358769d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Jun 2024 00:10:02 +0100 Subject: gentoo auto-resync : 18:06:2024 - 00:10:02 --- dev-lua/Manifest.gz | Bin 7322 -> 7328 bytes dev-lua/dkjson/Manifest | 2 + dev-lua/dkjson/dkjson-2.8.ebuild | 48 ++++++++++++++++ dev-lua/lanes/Manifest | 4 +- dev-lua/lanes/lanes-3.16.3.ebuild | 95 -------------------------------- dev-lua/lanes/lanes-3.17.0.ebuild | 2 +- dev-lua/luarocks/Manifest | 6 +- dev-lua/luarocks/luarocks-3.10.0.ebuild | 86 ----------------------------- dev-lua/luarocks/luarocks-3.11.1.ebuild | 86 +++++++++++++++++++++++++++++ dev-lua/luarocks/luarocks-3.9.2.ebuild | 86 ----------------------------- 10 files changed, 140 insertions(+), 275 deletions(-) create mode 100644 dev-lua/dkjson/dkjson-2.8.ebuild delete mode 100644 dev-lua/lanes/lanes-3.16.3.ebuild delete mode 100644 dev-lua/luarocks/luarocks-3.10.0.ebuild create mode 100644 dev-lua/luarocks/luarocks-3.11.1.ebuild delete mode 100644 dev-lua/luarocks/luarocks-3.9.2.ebuild (limited to 'dev-lua') diff --git a/dev-lua/Manifest.gz b/dev-lua/Manifest.gz index 301e95868d5c..c355f710216a 100644 Binary files a/dev-lua/Manifest.gz and b/dev-lua/Manifest.gz differ diff --git a/dev-lua/dkjson/Manifest b/dev-lua/dkjson/Manifest index 05a177cd58ee..770506bf1900 100644 --- a/dev-lua/dkjson/Manifest +++ b/dev-lua/dkjson/Manifest @@ -1,3 +1,5 @@ DIST dkjson-2.7.tar.gz 17292 BLAKE2B e3ac57edb6333dee8eeeba9d844ddc9f3fb3d35c6bd61a896ffff928e2d5c4d17be8a0c01c36d83fb0e4694ad38f3233a92f093cf85dc4b7375a72a224f7e0a8 SHA512 8e0cfb27fb2721c57b4fa0e104edc5e3b1f2b375e6ddde486be44f2bd574c19fccbc7c6f629f3d04b16cf652effd0894cb38edf405395488d33577420692246e +DIST dkjson-2.8.tar.gz 17442 BLAKE2B cba188f1f70f948a4222edf20540d2d33a015126b302800d1c574352e2b780e736b06baf20cc6cc960790b35810810f7ac4bfa8cc20571b29d006d0a435b0078 SHA512 aca05fd72d25151b008573b73e95e3f808ef7435f36db2814d8825a39a38917fdc7469557dce6fac951fbe9d3b67eaa5fd3701746743499a8036119bd262b222 EBUILD dkjson-2.7.ebuild 858 BLAKE2B 45ff6f0648a6d231c8947141b2eb16fd856b9db1449d41e37edf4237a4cc91cfe5a8919be3c04c002d0303ee30aebb9792d068aff68ef412f4517f8ef35566bb SHA512 77f69fee1c33fc26a6a809a4e2aa00833ae2c77bb2e9cc1050ea45a67cae7a627834d3cd6cc10885610ee7d31c1d2b45eb9e7598bfa2f350a22c8eaed6d1c2d3 +EBUILD dkjson-2.8.ebuild 864 BLAKE2B 3b2f8d4cafba3a5c76aba6262d83762b9a21f0fec2c7d509195b6a53691c36a3bf376f2bfa2382dc55cafc7b2a0a1dc14efae971ac4b6f57bf04ec55cb3eab74 SHA512 b52144f10e928fa9e64ac67e8069f8cd5b0d9ee83b90b6d74e470b44bf9151ca1287264d6d115fbca5d93082eef7fb32313fc72887c848fa43db2f09da912388 MISC metadata.xml 637 BLAKE2B 655e9c73f9f06e526d024e243f5eb9e0b2d36caa178a7ccd065c9cff92c64bf5886f9ec829caa84d6f1971e0214af16737ce07ba37914e1e53514a697e5a5c4c SHA512 0dc2388334718709614f765ef4ab9e1b7a5eb25b1b983c23e63a29f9eeae21571de4ccb8694287ae6f812bfd0a6fd6c3628ebcab47fac465e77e3d1ab2a61a09 diff --git a/dev-lua/dkjson/dkjson-2.8.ebuild b/dev-lua/dkjson/dkjson-2.8.ebuild new file mode 100644 index 000000000000..a1c66a6fb269 --- /dev/null +++ b/dev-lua/dkjson/dkjson-2.8.ebuild @@ -0,0 +1,48 @@ +# 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 + +DESCRIPTION="David Kolf's JSON module for Lua" +HOMEPAGE="http://dkolf.de/src/dkjson-lua.fsl/" +SRC_URI="http://dkolf.de/dkjson-lua/${P}.tar.gz" + +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? ( ${RDEPEND} ) +" + +DOCS=( "readme.txt" ) + +lua_src_test() { + ${ELUA} jsontest.lua || die + ${ELUA} speedtest.lua ${PN} || die +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + insinto $(lua_get_lmod_dir) + doins dkjson.lua +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest index f8570b19257f..732f9582608a 100644 --- a/dev-lua/lanes/Manifest +++ b/dev-lua/lanes/Manifest @@ -1,6 +1,4 @@ AUX lanes-3.13.0-makefile.patch 2719 BLAKE2B 2ee48812f971a3ed9d6425b115fa7415fb4c47596f25a32efd4c3d5fb8eb7f70839ae21d4970fa2120c5f16847d6bb10a417a228594a7f6eedb6d53a7bd062c8 SHA512 6a511ad7cf2dac9abff275c01c885adac04b40de46fe7d776ebea1663291e9a043d9ced6f470931cafdddc200895006e389a6fb6a2e5164bdef6b6acd2f1d38c -DIST lanes-3.16.3.tar.gz 446289 BLAKE2B 018f470209b534bb84f69f8a38c7decd8011a13926bf7c82a4fc4b0d3f2892562a69c3116dd6fce5d37d9d2b5057ed661cc22bdbfcfac4e267a32dd5f64a47dc SHA512 a3037c0df27e8172ce9ff896079eb4a5ee3a35dc507a8b809c151de21e7600ffd0fccc12113fb64dc3c709e1eff99da350576aef41ac20493ea933fb7dc4c381 DIST lanes-3.17.0.tar.gz 449193 BLAKE2B 110c05bdf46b9e5faf7e4ebf52992799fc2d1a993411a9488c75fc8134a267650348152299e91f94d1af8378a0e8a06c5485a364aad3cf246d7339006c89a924 SHA512 b9866cf1af54c758c840d2f6df3e14e6231f952b651d1196262a4b14d1361dd55697cba467998e90a69d876bcde5beffd25f3f8b53c387534b292650c25c357d -EBUILD lanes-3.16.3.ebuild 1585 BLAKE2B 4a4ee5eaa2d3b1f510c7715c6966c9a180c07eebaf3b5867c87e04a424c1377cc9daa9f69f03126b83d34f113e8cf545862c9462b706ffe7fa004d5a189d3af1 SHA512 10a260228ebbab8c9de24fc7e5df3356498cb05d21755035be1e8198f50098e526d0e946608f6be479185200f68daa9b3a4fe19bf7fe1ede29e5816cb0859d5b -EBUILD lanes-3.17.0.ebuild 1586 BLAKE2B 9eb4ac3bb86b448f15f2ff2228a63ecf93ec836ec7f9b2ae3c85935e4c27faa5f6d7f945c481fd78bb7763d059c5d31a5795e8093ecb2c44ba54a7bdf3c34ff3 SHA512 1afc35791eee436fd5808cdb9cd6abe7974b98b1988dcc21dc2f5d027b1ff080b0b7b6c08c32d18bd4e97040dbbf7f1616eb370f7ee4e3ea67fde0f9bd5dc633 +EBUILD lanes-3.17.0.ebuild 1585 BLAKE2B 4a4ee5eaa2d3b1f510c7715c6966c9a180c07eebaf3b5867c87e04a424c1377cc9daa9f69f03126b83d34f113e8cf545862c9462b706ffe7fa004d5a189d3af1 SHA512 10a260228ebbab8c9de24fc7e5df3356498cb05d21755035be1e8198f50098e526d0e946608f6be479185200f68daa9b3a4fe19bf7fe1ede29e5816cb0859d5b MISC metadata.xml 330 BLAKE2B cb2f24eead09cf3fe595a17006db96618148122db27c56176a358b13c5b37141f550b83a870a18660ca4b472b56c8eb7df65824085d5ff3878131a5ad70ea280 SHA512 16d1e0f1fac5602d1f49243058de0b124d8690e05c01232693971d496ebece2a42ff6ba96e4cd50d8173a55188b8d71dce433bec4799e29063dafe7c910402fc diff --git a/dev-lua/lanes/lanes-3.16.3.ebuild b/dev-lua/lanes/lanes-3.16.3.ebuild deleted file mode 100644 index c0d7990b7ae3..000000000000 --- a/dev-lua/lanes/lanes-3.16.3.ebuild +++ /dev/null @@ -1,95 +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 toolchain-funcs - -DESCRIPTION="Lightweight, native, lazy evaluating multithreading library" -HOMEPAGE="https://github.com/LuaLanes/lanes" -SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="test" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -# Tests are currently somehow problematic. -# https://github.com/LuaLanes/lanes/issues/197 -# https://github.com/LuaLanes/lanes/issues/198 -RESTRICT="test" - -RDEPEND="${LUA_DEPS}" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - test? ( ${RDEPEND} ) -" - -HTML_DOCS=( "docs/." ) - -PATCHES=( - "${FILESDIR}/${PN}-3.13.0-makefile.patch" -) - -src_prepare() { - default - - lua_copy_sources -} - -lua_src_compile() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - "CC=$(tc-getCC)" - "LUA=${ELUA}" - "LUA_FLAGS=$(lua_get_CFLAGS)" - "LUA_LIBS=" - "OPT_FLAGS=${CFLAGS}" - ) - - tc-export PKG_CONFIG - - emake "${myemakeargs[@]}" - - popd -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - pushd "${BUILD_DIR}" || die - - emake LUA="${ELUA}" test - - popd -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)" - "LUA_SHAREDIR=${ED}/$(lua_get_lmod_dir)" - ) - - emake "${myemakeargs[@]}" install - - popd -} - -src_install() { - lua_foreach_impl lua_src_install - - einstalldocs -} diff --git a/dev-lua/lanes/lanes-3.17.0.ebuild b/dev-lua/lanes/lanes-3.17.0.ebuild index 8baab79dd024..c0d7990b7ae3 100644 --- a/dev-lua/lanes/lanes-3.17.0.ebuild +++ b/dev-lua/lanes/lanes-3.17.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="test" REQUIRED_USE="${LUA_REQUIRED_USE}" diff --git a/dev-lua/luarocks/Manifest b/dev-lua/luarocks/Manifest index 7424ddf5c24e..3bdd74fcf716 100644 --- a/dev-lua/luarocks/Manifest +++ b/dev-lua/luarocks/Manifest @@ -1,7 +1,5 @@ -DIST luarocks-3.10.0.tar.gz 273518 BLAKE2B 64a9f7d5c9e15b8753e32f080d8f792be37f7b66635ce3df2218563774d5f90a18ef1b625861e13df9e728e1cbd90f0ed7247ce1bec207b97fa895780a77ab53 SHA512 4a834059b8f544274a110131d59d0647fb317078ef7709c1dc1a464513ebc38300abb71094620e21bb2f6e60193e9a1b0c06e7e0f4ad9acc2bf188bf4b599922 DIST luarocks-3.11.0.tar.gz 277031 BLAKE2B eadef03badc9b4f0784e67f08f4fbfb4032840e6f7378e20dd2460da6324bba9c6f0210803b42a5e7465a44f0a3cf706c555ba64f622ce3884ac0b49f42304ad SHA512 bec918e98209e5ff5c498c4454b8c8182ecfeb0786cb4cd241d59149f33560e981ff2db8d49785823ccf31643366de15b5f2599c6eef0951d17ba66436b79644 -DIST luarocks-3.9.2.tar.gz 256117 BLAKE2B eebbad38dd71b0318852a177d394df5fd20e807d566893a2338526e76e17daf2436309e512dd50b325914b2d84b90ef857396bfd6d41f22893131ed78931b8ad SHA512 7e93164bdcf35338e993822931a8e59957ab69c6e23236a7a075649c2f7cd173305c4ca6e9d115fc5e282cb76c21754d7adac92b21885006e5ee3bc06a9d0059 -EBUILD luarocks-3.10.0.ebuild 2036 BLAKE2B 3427ddeaa484b3a105ce82c8ffec458ea957f44deb009f9c40e92dc24927ae5e5870a3739e53ee7b0991adb087d0a924a51738c593cde8091e0298c7fd275ad5 SHA512 48337d673725cb494fd6bc79a770fd9a5b67c785d11c7b1a17ff8107b3a05b57229eac079f109a0929df4949baee403e298b3a16c64784b38123a4da4e20fef8 +DIST luarocks-3.11.1.tar.gz 277760 BLAKE2B 9470b0cd01329e223769b53a5aea743916c2ffedd6171a0b06e105131e2475ec4919fc1e6347162d1049ae5b2d9b32bea705e35577e58edaa29dddb910d343e7 SHA512 1e214fd41711f62fda122d73441165a2d0ffe7ed29d3d3d7690b9a1a272c03e269fc39e0c2d35dddaa64fad411b87754da4e7b8236af562fde837e9e6626fbad EBUILD luarocks-3.11.0.ebuild 2032 BLAKE2B f25929f423551ce592304091137676873743db53651fef21d4dc75aad533da98f34dba3689dc069416a458c0e02cefc63610498eca915a7f686215be88ee9e03 SHA512 af6b6e8bbb7040efdb8bd5e15982a40efd8a347a94d9667e8e953ce8383fd55980759b2fbb9889d6ae2c6ebeed2dc154a7959669e5bf32cb46bc3c227745c0c3 -EBUILD luarocks-3.9.2.ebuild 2032 BLAKE2B 734eb895b3d1005336cb528b212e2eb2283b5092fee5566c7479b512f5ff3513860163564b13d233c852bef812c5b6410f95ba7739af57ec6f6dcb270e8cea0f SHA512 3ab41e559dbd2fbab1505981eb98eb159de506f16ba6b239b80db9c23caf95fc2d3f59ee283816573335407df99f10a3d9f93cd91ea559c53e179405f16f846f +EBUILD luarocks-3.11.1.ebuild 2032 BLAKE2B f25929f423551ce592304091137676873743db53651fef21d4dc75aad533da98f34dba3689dc069416a458c0e02cefc63610498eca915a7f686215be88ee9e03 SHA512 af6b6e8bbb7040efdb8bd5e15982a40efd8a347a94d9667e8e953ce8383fd55980759b2fbb9889d6ae2c6ebeed2dc154a7959669e5bf32cb46bc3c227745c0c3 MISC metadata.xml 501 BLAKE2B 0a2a3e7358a2ef2a4cbb79853408dfdf6015d49348bbb879a59253a88c73cf3d96c2ce708076844344468136d70962be74e639d24331a007fbd02ce6ccc18cee SHA512 43f147be67209e542e02733b6a57ce7ee05b61a7eb0d15662c0fb137db4f57c9f519cc98cf5dceb0e6f626f0dc6f04dd5b67da96a155b1e3884dca55896722f3 diff --git a/dev-lua/luarocks/luarocks-3.10.0.ebuild b/dev-lua/luarocks/luarocks-3.10.0.ebuild deleted file mode 100644 index 2319a20303e0..000000000000 --- a/dev-lua/luarocks/luarocks-3.10.0.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 ~ia64 ~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 -} diff --git a/dev-lua/luarocks/luarocks-3.11.1.ebuild b/dev-lua/luarocks/luarocks-3.11.1.ebuild new file mode 100644 index 000000000000..780e6d75e53f --- /dev/null +++ b/dev-lua/luarocks/luarocks-3.11.1.ebuild @@ -0,0 +1,86 @@ +# 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 ~ia64 ~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 +} diff --git a/dev-lua/luarocks/luarocks-3.9.2.ebuild b/dev-lua/luarocks/luarocks-3.9.2.ebuild deleted file mode 100644 index 8756903989dc..000000000000 --- a/dev-lua/luarocks/luarocks-3.9.2.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2023 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 ~ia64 ~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