diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2024-03-09 14:42:12 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-03-09 14:56:29 +0100 |
commit | 78a9e056f06e9a78854a16801c1e7a4efcd7b2f8 (patch) | |
tree | a1f88d52afe6ef781f773a14d24f8a244674d64c /dev-lua | |
parent | dev-libs/intel-compute-runtime: add 24.05.28454.17 (diff) | |
download | gentoo-78a9e056f06e9a78854a16801c1e7a4efcd7b2f8.tar.gz gentoo-78a9e056f06e9a78854a16801c1e7a4efcd7b2f8.tar.bz2 gentoo-78a9e056f06e9a78854a16801c1e7a4efcd7b2f8.zip |
dev-lua/dkjson: add 2.7
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/dkjson/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/dkjson/dkjson-2.7.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-lua/dkjson/Manifest b/dev-lua/dkjson/Manifest index 2e11e9639a7f..61876424e2b6 100644 --- a/dev-lua/dkjson/Manifest +++ b/dev-lua/dkjson/Manifest @@ -1 +1,2 @@ DIST dkjson-2.6.tar.gz 15803 BLAKE2B fdb471b94b50d90ac3ca2a6230e8a2f6b5f1362b368a4fbdf2b54b12cfd38762f448a1a752aa6022e1c80806d62d72a861f048e1734edb081d6fc1dbf225a2da SHA512 eea9dfb386672114e4269284eda045161289b43c872b9108971babbb247e686ea1c045bd4f127037e949b356630fa430037fb4b1a1eb7b5cc51f80d144a5add2 +DIST dkjson-2.7.tar.gz 17292 BLAKE2B e3ac57edb6333dee8eeeba9d844ddc9f3fb3d35c6bd61a896ffff928e2d5c4d17be8a0c01c36d83fb0e4694ad38f3233a92f093cf85dc4b7375a72a224f7e0a8 SHA512 8e0cfb27fb2721c57b4fa0e104edc5e3b1f2b375e6ddde486be44f2bd574c19fccbc7c6f629f3d04b16cf652effd0894cb38edf405395488d33577420692246e diff --git a/dev-lua/dkjson/dkjson-2.7.ebuild b/dev-lua/dkjson/dkjson-2.7.ebuild new file mode 100644 index 000000000000..a1c66a6fb269 --- /dev/null +++ b/dev-lua/dkjson/dkjson-2.7.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 +} |