From a55e5c074db9bb024358a8f0bd2c5e992b7cf6f6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 2 Jul 2023 22:04:01 +0100 Subject: gentoo auto-resync : 02:07:2023 - 22:04:01 --- dev-lua/Manifest.gz | Bin 7306 -> 7303 bytes dev-lua/lua-cjson/Manifest | 2 +- dev-lua/lua-cjson/lua-cjson-2.1.0.10-r1.ebuild | 94 +++++++++++++++++++++++++ dev-lua/lua-cjson/lua-cjson-2.1.0.10.ebuild | 94 ------------------------- 4 files changed, 95 insertions(+), 95 deletions(-) create mode 100644 dev-lua/lua-cjson/lua-cjson-2.1.0.10-r1.ebuild delete mode 100644 dev-lua/lua-cjson/lua-cjson-2.1.0.10.ebuild (limited to 'dev-lua') diff --git a/dev-lua/Manifest.gz b/dev-lua/Manifest.gz index 57993daf743a..02f43dd1cd86 100644 Binary files a/dev-lua/Manifest.gz and b/dev-lua/Manifest.gz differ diff --git a/dev-lua/lua-cjson/Manifest b/dev-lua/lua-cjson/Manifest index be5d0e4d0e99..351110dfbfda 100644 --- a/dev-lua/lua-cjson/Manifest +++ b/dev-lua/lua-cjson/Manifest @@ -1,3 +1,3 @@ DIST lua-cjson-2.1.0.10.tar.gz 78651 BLAKE2B c215f0a78ba306831a9aa147df9edcb693164a82a0b0505265425124adb40c918da826d128c2dcd048e2c3040d191e177c78b143abb28608b38b3c2b21760539 SHA512 889761b6381b2d10b7aa2e5687e5059705352c0f7fbbca9bc5f7c9d89aed8b1e283c18e217183042cc6f1ec4f19d1c4cf720e3efc6f5a06e81aa1bec8a6b93c4 -EBUILD lua-cjson-2.1.0.10.ebuild 1732 BLAKE2B 48d00ce767bb28901c7aaccb4a5ca9afe53d010a21be2804b97889e35174df3a6ae412bf523b0521afddf7d783915bb8f0f561e7a8d89055dadc91b04936e067 SHA512 15e09e98581acc4c247d081db41b10f750c61008c8b7f8263b68100661962b03c93831e4a492842b0f6eb4ca069fce80bfd219ec5d534ea6d2ac9952cd388f9c +EBUILD lua-cjson-2.1.0.10-r1.ebuild 1732 BLAKE2B 120dcf121ee017a12d783bb16ef2945c36bb3352b61ed39894db447ad38232d76ae139c6a8ba34e8dca57381a3496e0d3db508065d07207c936216f1a5796275 SHA512 8d3deafb3c0e49d5f395e77c433296debdc2db797bd54c60b848e53f835457de86552147b2a5992772f19f3962aa3a9f9f4f47ebe232fb951fcff28abe52b9cb MISC metadata.xml 668 BLAKE2B 56cddfcf51cdb1233262dffec606bdfecf6ef9fe9e311b88a205bb0ec14b484a95d51c09e9a83e4d9e5befe547a1ea520e909837832bddcd3e492f3cf7f26e27 SHA512 a1d8e067f4d142e52de026c83ea2104978668708bb78f212249dd4e1365abaa78ef6d7694afa6c4b7c8834bd456fff98c11c332e9a1d7f939251fe1d6d872c63 diff --git a/dev-lua/lua-cjson/lua-cjson-2.1.0.10-r1.ebuild b/dev-lua/lua-cjson/lua-cjson-2.1.0.10-r1.ebuild new file mode 100644 index 000000000000..dd196fb7ded8 --- /dev/null +++ b/dev-lua/lua-cjson/lua-cjson-2.1.0.10-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2022 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="A fast JSON encoding/parsing module for Lua" +HOMEPAGE="https://www.kyne.com.au/~mark/software/lua-cjson.php https://github.com/openresty/lua-cjson" +SRC_URI="https://github.com/openresty/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="+internal-fpconv test +threads" +REQUIRED_USE=" + threads? ( internal-fpconv ) + ${LUA_REQUIRED_USE} +" +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-lang/perl )" + +DOCS=( "manual.txt" "NEWS" "performance.txt" "README.md" "THANKS" ) + +src_prepare() { + default + + # Don't install tests + sed -e '/cd tests/d' -i Makefile || die + + lua_copy_sources +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "CC=$(tc-getCC)" + "CFLAGS=${CFLAGS}" + "LDFLAGS=${LDFLAGS}" + "LUA_INCLUDE_DIR=$(lua_get_include_dir)" + ) + + emake "${myemakeargs[@]}" + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_test() { + pushd "${BUILD_DIR}" || die + cd tests || die + + ln -s "${BUILD_DIR}"/cjson.so ./ || die + ln -s "${S}"/lua/cjson ./ || die + + ./genutf8.pl || die + ./test.lua || die + + popd +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "DESTDIR=${D}" + "LUA_CMODULE_DIR=$(lua_get_cmod_dir)" + "LUA_MODULE_DIR=$(lua_get_lmod_dir)" + "PREFIX=${EPREFIX}/usr" + ) + + emake "${myemakeargs[@]}" install install-extra + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} diff --git a/dev-lua/lua-cjson/lua-cjson-2.1.0.10.ebuild b/dev-lua/lua-cjson/lua-cjson-2.1.0.10.ebuild deleted file mode 100644 index 22b79720590f..000000000000 --- a/dev-lua/lua-cjson/lua-cjson-2.1.0.10.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2022 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="A fast JSON encoding/parsing module for Lua" -HOMEPAGE="https://www.kyne.com.au/~mark/software/lua-cjson.php https://github.com/openresty/lua-cjson" -SRC_URI="https://github.com/openresty/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="+internal-fpconv test +threads" -REQUIRED_USE=" - threads? ( internal-fpconv ) - ${LUA_REQUIRED_USE} -" -RESTRICT="!test? ( test )" - -RDEPEND="${LUA_DEPS}" -DEPEND="${RDEPEND}" -BDEPEND="test? ( dev-lang/perl )" - -DOCS=( "manual.txt" "NEWS" "performance.txt" "README.md" "THANKS" ) - -src_prepare() { - default - - # Don't install tests - sed -e '/cd tests/d' -i Makefile || die - - lua_copy_sources -} - -lua_src_compile() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - "CC=$(tc-getCC)" - "CFLAGS=${CFLAGS}" - "LDFLAGS=${LDFLAGS}" - "LUA_INCLUDE_DIR=$(lua_get_include_dir)" - ) - - emake "${myemakeargs[@]}" - - popd -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - pushd "${BUILD_DIR}" || die - cd tests || die - - ln -s "${BUILD_DIR}"/cjson.so ./ || die - ln -s "${S}"/lua/cjson ./ || die - - ./genutf8.pl || die - ./test.lua || die - - popd -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - "DESTDIR=${D}" - "LUA_CMODULE_DIR=$(lua_get_lmod_dir)" - "LUA_MODULE_DIR=$(lua_get_lmod_dir)" - "PREFIX=${EPREFIX}/usr" - ) - - emake "${myemakeargs[@]}" install install-extra - - popd -} - -src_install() { - lua_foreach_impl lua_src_install - - einstalldocs -} -- cgit v1.2.3