summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2015-11-10 11:53:33 -0600
committerWilliam Hubbs <williamh@gentoo.org>2015-11-11 11:39:11 -0600
commitfcca8f402bb0c80cc84fc370c0ffa63e55dacbd6 (patch)
treee8ac494e81c600867fc08d6a5f233253f2f0db16 /dev-lua/dkjson
parentdev-python/pylint: Depend on threading support in python (diff)
downloadgentoo-fcca8f402bb0c80cc84fc370c0ffa63e55dacbd6.tar.gz
gentoo-fcca8f402bb0c80cc84fc370c0ffa63e55dacbd6.tar.bz2
gentoo-fcca8f402bb0c80cc84fc370c0ffa63e55dacbd6.zip
dev-lua/dkjson: initial commit
Diffstat (limited to 'dev-lua/dkjson')
-rw-r--r--dev-lua/dkjson/Manifest1
-rw-r--r--dev-lua/dkjson/dkjson-2.5.ebuild28
-rw-r--r--dev-lua/dkjson/metadata.xml18
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-lua/dkjson/Manifest b/dev-lua/dkjson/Manifest
new file mode 100644
index 000000000000..384480a3ae8c
--- /dev/null
+++ b/dev-lua/dkjson/Manifest
@@ -0,0 +1 @@
+DIST dkjson-2.5.tar.gz 15799 SHA256 552bde07d6eb95dc32423cc4c6f6fa40699611ef6ba96ba990fcd0e055b38a93 SHA512 ec9a226c3a94d7561f8f51bb0e6c92a64385b0d8baf83de862cce7e1c302d900bff723be23e4b5b4c3c2accafaf8d75d4b0842e14b2e41390a3f9761d46a38af WHIRLPOOL 91a6be85a277caa8e00ccfc0121384e4ed6db23cd82b00a55d1c8b8c8f89b3c1efe321f6d17f3849eed20ba1f3681052ca94d347dfc17d79a404f98cf64e7f11
diff --git a/dev-lua/dkjson/dkjson-2.5.ebuild b/dev-lua/dkjson/dkjson-2.5.ebuild
new file mode 100644
index 000000000000..20febb14bbf8
--- /dev/null
+++ b/dev-lua/dkjson/dkjson-2.5.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit 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"
+IUSE=""
+
+COMMON_DEPEND=">=dev-lang/lua-5.1:=
+ !>=dev-lang/lua-5.4"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+RDEPEND="${COMMON_DEPEND}"
+
+src_install() {
+ insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
+doins dkjson.lua
+dodoc readme.txt
+}
diff --git a/dev-lua/dkjson/metadata.xml b/dev-lua/dkjson/metadata.xml
new file mode 100644
index 000000000000..3c7fa205bb40
--- /dev/null
+++ b/dev-lua/dkjson/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+ <longdescription lang="en">
+ dkjson is a module for encoding and decoding JSON data. It supports
+ UTF-8.
+
+ JSON (JavaScript Object Notation) is a format for serializing data
+ based on the syntax for JavaScript data structures.
+
+ dkjson is written in Lua without any dependencies, but
+ when LPeg is available dkjson uses it to speed up decoding.
+ </longdescription>
+</pkgmetadata>