From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 275781382C5 for ; Sat, 28 Nov 2020 23:07:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D4D1E0802; Sat, 28 Nov 2020 23:07:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 443DDE0802 for ; Sat, 28 Nov 2020 23:07:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7BB343416A4 for ; Sat, 28 Nov 2020 23:07:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 007FF2CA for ; Sat, 28 Nov 2020 23:07:37 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1606604849.9477144781ba96c928ac473966ace6d6b5f3b06e.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-lua/luajson/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luajson/Manifest dev-lua/luajson/luajson-1.3.4.ebuild profiles/package.mask X-VCS-Directories: profiles/ dev-lua/luajson/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 9477144781ba96c928ac473966ace6d6b5f3b06e X-VCS-Branch: master Date: Sat, 28 Nov 2020 23:07:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 888bf25c-ddae-421d-b530-41224d12f978 X-Archives-Hash: 9f584459845df98141bf5bc772488c14 commit: 9477144781ba96c928ac473966ace6d6b5f3b06e Author: Marek Szuba gentoo org> AuthorDate: Sat Nov 28 23:02:07 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Sat Nov 28 23:07:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94771447 dev-lua/luajson: bump to 1.3.4 and migrate to lua.eclass Can't run tests because they require lunitx (which in turn uses Lake, which we haven't got in the tree either) but since upstream says in the README which Lua implementations are supported, let's take their word for it. Closes: https://bugs.gentoo.org/752903 Signed-off-by: Marek Szuba gentoo.org> dev-lua/luajson/Manifest | 1 + dev-lua/luajson/luajson-1.3.4.ebuild | 37 ++++++++++++++++++++++++++++++++++++ profiles/package.mask | 1 + 3 files changed, 39 insertions(+) diff --git a/dev-lua/luajson/Manifest b/dev-lua/luajson/Manifest index 94e156d2659..29fa7b008cb 100644 --- a/dev-lua/luajson/Manifest +++ b/dev-lua/luajson/Manifest @@ -1 +1,2 @@ DIST luajson-1.3.3.tar.gz 42653 BLAKE2B 2bc7310317a1279906681c2de284dc7b9d50766c0c21c606da746d0e709168e5364c3a821798f3ce423dfdd246162212525c1fee7c13cb5f0999db56d1e5e3c3 SHA512 9b507148afaf59871f97e7cf78ad35dc01497d553699d1d1a928543fad6a375aebc3852da86d51d744f10ab2ec24c7b1d7c380852da8134ae05f2f22f6f200c2 +DIST luajson-1.3.4.tar.gz 46941 BLAKE2B 50c8c20c487f92fd19b3e080a87eec58c2cb30d83dfc6acd7aca3f155a04f85a194c069f735a2881e14b0eb3fd3b16e4a75ea625ac81c65b9e25cb1c3601673c SHA512 d24dc8399337b96cde3254a83e5cc1fa995b76f0e1fae54ad91a490f0a6f4c5d0927919320f99d7bc4238ac5529d0ea57435c6be2519fb52e2a83f5005fbc4f7 diff --git a/dev-lua/luajson/luajson-1.3.4.ebuild b/dev-lua/luajson/luajson-1.3.4.ebuild new file mode 100644 index 00000000000..f06cd069d62 --- /dev/null +++ b/dev-lua/luajson/luajson-1.3.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..3} luajit ) + +inherit lua + +DESCRIPTION="JSON Parser/Constructor for Lua" +HOMEPAGE="https://www.eharning.us/wiki/luajson/" +SRC_URI="https://github.com/harningt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="dev-lua/lpeg[${LUA_USEDEP}]" + +# Require lunitx, which is not in the tree yet +RESTRICT="test" + +DOCS=( README.md docs/ReleaseNotes-${PV}.txt docs/LuaJSON.txt ) + +# nothing to compile +src_compile() { :; } + +lua_src_install() { + emake DESTDIR="${ED}" INSTALL_LMOD="$(lua_get_lmod_dir)" install +} + +src_install() { + lua_foreach_impl lua_src_install + einstalldocs +} diff --git a/profiles/package.mask b/profiles/package.mask index ef27778a2a2..daf7ed3e732 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -519,6 +519,7 @@ dev-lua/luacrypto >=dev-lua/lua_cliargs-3.0_p2-r100 >=dev-lua/lua-term-0.7-r100 >=dev-lua/luafilesystem-1.8.0-r100 +>=dev-lua/luajson-1.3.4 >=dev-lua/luasec-0.9-r100 >=dev-lua/luasocket-3.0_rc1_p20200328-r100 >=dev-lua/luassert-1.8.0-r100