dev-lua/dkjson: add 2.11

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2026-08-29 17:59:37 +02:00
parent 85535dbede
commit f412145edf
2 changed files with 49 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST dkjson-2.10.tar.gz 18067 BLAKE2B a59bec683d67294b0d297791735402b4709f957930d245585395bb07a43f4f7677e0a653f0ecff5e41e3d3238848edc1bdba87de77e34000e80456f702422759 SHA512 861139d472409941c1815ad43f9a6e58271eb56f6a1e8a5eaf70c2c44de024337e4f5197e6d8ff6199bb7cd304b5f38f86309db10e016ef5b97fd7ab0a142699
DIST dkjson-2.11.tar.gz 18550 BLAKE2B 956930e3383f3017b9aefb97abf7680a141109f424295ea3864c6e2a1e67c6267fda8371e7faf72ae96f15a73a328dd33b8e32532f711b8610eed41311ec5396 SHA512 8aab050902d115858a1cbf29e037869e1df42a4e578ab4d08788d0791f9f1db1e76624736511ae9a5caa11ecbffe3327b14d1f99de899679869c8d773643bf61

View File

@@ -0,0 +1,48 @@
# Copyright 1999-2026 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 ~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.md" )
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
}