summaryrefslogtreecommitdiff
path: root/dev-lua/lua-cjson
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-lua/lua-cjson
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-lua/lua-cjson')
-rw-r--r--dev-lua/lua-cjson/Manifest3
-rw-r--r--dev-lua/lua-cjson/lua-cjson-2.1.0.ebuild34
-rw-r--r--dev-lua/lua-cjson/metadata.xml8
3 files changed, 45 insertions, 0 deletions
diff --git a/dev-lua/lua-cjson/Manifest b/dev-lua/lua-cjson/Manifest
new file mode 100644
index 000000000000..7aaf5873d669
--- /dev/null
+++ b/dev-lua/lua-cjson/Manifest
@@ -0,0 +1,3 @@
+DIST lua-cjson-2.1.0.tar.gz 86024 BLAKE2B 21dbf84cda2c973088dc9ba165351f3af35d4f604ef465abd91f37807a6c037f612f36c87b9458abef9afa06e1738e933fcce7be9edd2f9a5e301985f413a1db SHA512 4343513b942f2ed98dc1ea6d7e852303bc1263f8acc5c70c8d674aec7adfc8279c5af7d5173a417b6f9a74543b8f6c8f98742d002f4f75832bbf23bb5a30ad2f
+EBUILD lua-cjson-2.1.0.ebuild 765 BLAKE2B ce8e5aa06cceba2be9f4436d5f5f2c3356521fcaa6237fe5cf37035ab37d70ba501d3bfb67bdb546d18559bb0bd53d987cbf3445a438f8622f8ee7c8ac350f33 SHA512 f5cf61e13d1306b058196ae7c87038f19d43c98c53c81f9ab769b728f2af9343829926ba9bf5192fe1a37e0e42659036209c227853d0728e3b9f722a6c6fa41c
+MISC metadata.xml 250 BLAKE2B b6882e74d55aa6fb27d372e6b27adc8751cd6bcbc6bbddf7b60b8a666d866a9ea95675b1ea1f0ab644eeeef2ca0ca599fadade594d80b649b2914b0581d805c2 SHA512 c9d378944a0bf99a43e176e333e565fe0e7af8000dbeac1b65e5d0f850eba07d88b15917d3b9bcbe05e927a94b36e310aff905e2147707b674a62f67bb048da5
diff --git a/dev-lua/lua-cjson/lua-cjson-2.1.0.ebuild b/dev-lua/lua-cjson/lua-cjson-2.1.0.ebuild
new file mode 100644
index 000000000000..1dd13c83607d
--- /dev/null
+++ b/dev-lua/lua-cjson/lua-cjson-2.1.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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/mpx/lua-cjson/"
+SRC_URI="https://www.kyne.com.au/~mark/software/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND=">=dev-lang/lua-5.1:0"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/perl )"
+
+DOCS=( NEWS THANKS )
+
+src_test() {
+ cd tests || die
+ ln -s "${BUILD_DIR}"/cjson.so ./ || die
+ ln -s "${S}"/lua/cjson ./ || die
+ ./genutf8.pl || die
+ ./test.lua || die
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dohtml manual.html performance.html
+}
diff --git a/dev-lua/lua-cjson/metadata.xml b/dev-lua/lua-cjson/metadata.xml
new file mode 100644
index 000000000000..441a4c3c3128
--- /dev/null
+++ b/dev-lua/lua-cjson/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">mpx/lua-cjson</remote-id>
+ </upstream>
+</pkgmetadata>