public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-lua/luajson/
@ 2020-11-28 23:07 Marek Szuba
  0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2020-11-28 23:07 UTC (permalink / raw
  To: gentoo-commits

commit:     9477144781ba96c928ac473966ace6d6b5f3b06e
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 28 23:02:07 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> 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 <marecki <AT> 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-28 23:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-28 23:07 [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-lua/luajson/ Marek Szuba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox