commit: 3d54c00c3a0d372f6dcd590b6a4b2ac3badce718 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sat Nov 28 16:10:42 2020 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sat Nov 28 16:16:41 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d54c00c
dev-lua/dkjson: migrate to lua eclass Also adding tests. Bug: https://bugs.gentoo.org/628758 Closes: https://bugs.gentoo.org/752603 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> dev-lua/dkjson/dkjson-2.5-r100.ebuild | 48 +++++++++++++++++++++++++++++++++++ dev-lua/dkjson/metadata.xml | 6 ++++- profiles/package.mask | 1 + 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/dev-lua/dkjson/dkjson-2.5-r100.ebuild b/dev-lua/dkjson/dkjson-2.5-r100.ebuild new file mode 100644 index 00000000000..6c81b135824 --- /dev/null +++ b/dev-lua/dkjson/dkjson-2.5-r100.ebuild @@ -0,0 +1,48 @@ +# 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 toolchain-funcs + +DESCRIPTION="David Kolf's JSON module for Lua" +HOMEPAGE="http://dkolf.de/src/dkjson-lua.fsl/" +SRC_URI="http://dkolf.de/src/dkjson-lua.fsl/tarball/${P}.tar.gz?uuid=release_2_5 -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~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 +} diff --git a/dev-lua/dkjson/metadata.xml b/dev-lua/dkjson/metadata.xml index dda2ed52439..a5b517b10d3 100644 --- a/dev-lua/dkjson/metadata.xml +++ b/dev-lua/dkjson/metadata.xml @@ -5,7 +5,11 @@ <email>[email protected]</email> <name>William Hubbs</name> </maintainer> - <longdescription lang="en"> + <maintainer type="person"> + <email>[email protected]</email> + <name>Conrad Kostecki</name> + </maintainer> + <longdescription> dkjson is a module for encoding and decoding JSON data. It supports UTF-8. diff --git a/profiles/package.mask b/profiles/package.mask index 3c83c651669..7c7fd5501d5 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -501,6 +501,7 @@ dev-lua/luacrypto >=app-misc/worker-3.8.3-r100 =dev-games/openscenegraph-openmw-3.4_p20200425-r100 =dev-libs/efl-1.25.1-r10 +>=dev-lua/dkjson-2.5-r100 >=dev-lua/lua-bit32-5.3.5-r100 >=dev-lua/lua-zlib-1.2-r100 >=dev-lua/luadbi-0.7.2-r100
