diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-03-12 20:08:53 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-03-12 20:08:53 -0700 |
commit | 724feaedd952c1dbeea34dcde2abc0fe574977c9 (patch) | |
tree | 49b2d45b0d4df2e33155ee2fb293f6289f6b693a /dev-lua/lua-cjson | |
parent | app-crypt/yubikey-manager-qt: bump to 1.1.1 (diff) | |
download | gentoo-724feaedd952c1dbeea34dcde2abc0fe574977c9.tar.gz gentoo-724feaedd952c1dbeea34dcde2abc0fe574977c9.tar.bz2 gentoo-724feaedd952c1dbeea34dcde2abc0fe574977c9.zip |
dev-lua/lua-cjson: bump to 2.1.0.7
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lua/lua-cjson')
-rw-r--r-- | dev-lua/lua-cjson/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-lua/lua-cjson/Manifest b/dev-lua/lua-cjson/Manifest index e22ea3d3d874..e87bc35a16cc 100644 --- a/dev-lua/lua-cjson/Manifest +++ b/dev-lua/lua-cjson/Manifest @@ -1,2 +1,3 @@ DIST lua-cjson-2.1.0.6.tar.gz 76820 BLAKE2B 1056fefc8d9c802e068e1e7801cc1eb3a0279371ab72e4e8517e22ad68224dd4892f4e4cbfe0a407af71f1008affded41d7bcc05d89c4ddb0c437d93d67708a7 SHA512 71d25f4ec82641d56e33e13c0ecd8c60186b3c4faf3d30de81706d1305d4e61691a1e84210462942674e50ca2ff19e126cb04025d9645d5d26ef3b3b0e46f64b +DIST lua-cjson-2.1.0.7.tar.gz 76949 BLAKE2B 9189890f24885191001e79cf0f48aaee74026572eda3e767b0e5e63d44634156fd2b972287cb23e243b3fd0f44f8e87a1fcb0c0b8e26197c63e5e0ff30cb3a94 SHA512 c66fbb608dcd1b7daef8c70ad9a60ab442bf8b851b8d8c5e3b11854ab476dff115e2eef31f171a40ce364778682ce351114caf36c995521ec589bd9dd94415c5 DIST lua-cjson-2.1.0.tar.gz 86024 BLAKE2B 21dbf84cda2c973088dc9ba165351f3af35d4f604ef465abd91f37807a6c037f612f36c87b9458abef9afa06e1738e933fcce7be9edd2f9a5e301985f413a1db SHA512 4343513b942f2ed98dc1ea6d7e852303bc1263f8acc5c70c8d674aec7adfc8279c5af7d5173a417b6f9a74543b8f6c8f98742d002f4f75832bbf23bb5a30ad2f diff --git a/dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild b/dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild new file mode 100644 index 000000000000..d8443f9f6901 --- /dev/null +++ b/dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="A fast JSON encoding/parsing module for Lua" +HOMEPAGE="https://www.kyne.com.au/~mark/software/lua-cjson.php https://github.com/openresty/lua-cjson" +SRC_URI="https://github.com/openresty/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+internal-fpconv luajit test +threads" + +REQUIRED_USE="threads? ( internal-fpconv )" + +RDEPEND=">=dev-lang/lua-5.1:0" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-lang/perl )" + +DOCS=( NEWS README.md THANKS manual.txt performance.txt ) + +PATCHES=( + "${FILESDIR}"/sparse_array_test_fix.patch +) + +src_configure() { + local mycmakeargs=( + -DUSE_INTERNAL_FPCONV="$(usex internal-fpconv)" + -DMULTIPLE_THREADS="$(usex threads)" + ) + + cmake-utils_src_configure +} + +src_test() { + cd tests || die + ln -s "${BUILD_DIR}"/cjson.so ./ || die + ln -s "${S}"/lua/cjson ./ || die + ./genutf8.pl || die + ./test.lua || die +} |