summaryrefslogtreecommitdiff
path: root/dev-libs/json-c
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/json-c
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/json-c')
-rw-r--r--dev-libs/json-c/Manifest7
-rw-r--r--dev-libs/json-c/json-c-0.12.1.ebuild43
-rw-r--r--dev-libs/json-c/json-c-0.12.ebuild44
-rw-r--r--dev-libs/json-c/metadata.xml18
4 files changed, 112 insertions, 0 deletions
diff --git a/dev-libs/json-c/Manifest b/dev-libs/json-c/Manifest
new file mode 100644
index 000000000000..b84ce3415d67
--- /dev/null
+++ b/dev-libs/json-c/Manifest
@@ -0,0 +1,7 @@
+DIST json-c-0.12.1.tar.gz 535086 SHA256 2a136451a7932d80b7d197b10441e26e39428d67b1443ec43bbba824705e1123 SHA512 038676a0ce815e5174161fbd4339524feadc294d517f732fb408ad6aa7c4906423451c13386107569d9f24746a1a101564ca511e92e8276c5bf5b8c022ca42ed WHIRLPOOL ac558aa3cf661e8a943e2c85a684cbb7a46719de35360a23e9939cefaff32720a55ede5e5c05ea2f7b65aa3128082cc98da9ad5e6685b53ec40726857da7a53a
+DIST json-c-0.12.tar.gz 501419 SHA256 000c01b2b3f82dcb4261751eb71f1b084404fb7d6a282f06074d3c17078b9f3f SHA512 c959804362386f6b77e9d04b5fedf6d6aff1fcd0ab50250edb25f759b510b402e7ad4b33d1cbadc3337b63a3145d19f310812a9ee351748348304b384dc2dc35 WHIRLPOOL b49f5c96b614302b39737306774b4346d8347afef6ced7067664ac0d68669a1496fe915f229e0d434a87b103ac9982d67c5785eb688b7026c257c7eae95c6eaf
+EBUILD json-c-0.12.1.ebuild 1003 SHA256 222ebd92ff8848868ec9ae28c9414802f76545334b53c183fc1043fd5af8821a SHA512 c45aa16ccb1496fa57f8ad46a7b8be3eb5ef72993497a5a2da27eb659f36605910e78c23ef6c1e89894411dd075e295497ab1a1eb186bebf098375f1c58729d3 WHIRLPOOL 621c7398842037be90adbc9c03a2c6ef80938769fb5e9926dac3233f7bfe903a6f16c2f4383e8299c306330502fc35d34dbdb1f7f45d92838c2aa027fa3cf76f
+EBUILD json-c-0.12.ebuild 1064 SHA256 9b773429f29dd153bdcd649146863f9495a4b885f7661bcd8c05bd3474399a30 SHA512 8bb8613d6c6de5ceb7b533689382951714f1fe8a0bc6078032a96551ee40bc9488c39e4a6b931c8b2efc411a505515a00454a22528a9874a3d0a71612e083040 WHIRLPOOL 0f56c0af6f40070145e042d15dc4e7ef480e4c6be6d08c35085923b59f8f2868c989163d3c6692c050d4187ca535ecfdf036dd9af28f406f4c813651dc7d0b02
+MISC ChangeLog 5220 SHA256 74806ecea06ad4ef940d9b2545dbd5c25b0ad591243d1c041b61120baa295a0a SHA512 97648930abf6ec6a442d1322c1929f4fb410a790907afc618b18ba9954c6e622f4293c6ee2dbc374e4d09b0007d1555c19355ce36d35c56d22f000666e6f6510 WHIRLPOOL 597ebabdd8a6cacba6a229750c2d79e2e57b43374228a926cdf51ea88a57105302027cb1c4f8e03822f35d09b0cd49e432b0e035f9a8a0710977a63a4166b2d2
+MISC ChangeLog-2015 6087 SHA256 66c43afb0be7f78e7d3f281f72fa9544c33603b58e5052ebe5e1c3c0d5a68350 SHA512 18bf771c4615715eab084b1459abc66302f0a8aa86c65df1e987f99fc741ac58778b256d0cdaa0fcb8b73794a98564e7df8056e74b57f39700c4ff8c7d987734 WHIRLPOOL afcc4da1c960d97ebee668e275b407f64ce1af41b914625a0e2a75119814a62b66eaf7d62f4633880eadf4dae6cae84331e8a99f38a7a0e10fea8781e48594b2
+MISC metadata.xml 693 SHA256 cc68f4ce28e2db6fa614b1b9f0dcd5661a753ca566c9e7b983103a9f0a4d787c SHA512 83445296602d14fed7857d99008c596d06a55ee4a1a9382afb5b2a2a80b0810861cd9a95e9ee5903cac082a338358bbbff7b936087875e407602496a50d3ebd5 WHIRLPOOL 32f505c992798d6531335cc7b3673f91813d149d262e89a0ae87c074b7517c2edd5f18b8a04fdc94252b2fb0a950cc8339810aac7396e2a3b95e97608f9f48d2
diff --git a/dev-libs/json-c/json-c-0.12.1.ebuild b/dev-libs/json-c/json-c-0.12.1.ebuild
new file mode 100644
index 000000000000..28f5eeea3737
--- /dev/null
+++ b/dev-libs/json-c/json-c-0.12.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal ltprune
+
+DESCRIPTION="A JSON implementation in C"
+HOMEPAGE="https://github.com/json-c/json-c/wiki"
+SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc static-libs"
+
+src_prepare() {
+ default
+ sed -i -e "s:-Werror::" Makefile.am.inc || die
+ eautoreconf
+
+ # tests break otherwise
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf $(use_enable static-libs static)
+}
+
+multilib_src_test() {
+ export USE_VALGRIND=0 VERBOSE=1
+ default
+}
+
+multilib_src_install_all() {
+ use doc && HTML_DOCS=( "${S}"/doc/html/. )
+ einstalldocs
+
+ # add symlink for projects not using pkgconfig
+ dosym ../json-c /usr/include/json-c/json
+
+ prune_libtool_files
+}
diff --git a/dev-libs/json-c/json-c-0.12.ebuild b/dev-libs/json-c/json-c-0.12.ebuild
new file mode 100644
index 000000000000..226d41a3386f
--- /dev/null
+++ b/dev-libs/json-c/json-c-0.12.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-multilib
+
+DESCRIPTION="A JSON implementation in C"
+HOMEPAGE="https://github.com/json-c/json-c/wiki"
+SRC_URI="https://s3.amazonaws.com/json-c_releases/releases/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc static-libs"
+
+RDEPEND="
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20140406-r3
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+
+# tests break otherwise
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ sed -i -e "s:-Werror::" Makefile.am.inc || die
+ autotools-multilib_src_prepare
+}
+
+src_test() {
+ export USE_VALGRIND=0 VERBOSE=1
+ autotools-multilib_src_test
+}
+
+src_install() {
+ use doc && HTML_DOCS=( "${S}"/doc/html )
+ autotools-multilib_src_install
+
+ # add symlink for projects not using pkgconfig
+ dosym ../json-c /usr/include/json-c/json
+}
diff --git a/dev-libs/json-c/metadata.xml b/dev-libs/json-c/metadata.xml
new file mode 100644
index 000000000000..55f771562070
--- /dev/null
+++ b/dev-libs/json-c/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 type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+"A JSON implementation in C" is probably the better description, and then
+"JSON-C implements a reference counting object model that allows you to
+easily construct JSON objects in C, output them as JSON formatted
+strings and parse JSON formatted strings back into the C
+representation of JSON objects.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">json-c/json-c</remote-id>
+ </upstream>
+</pkgmetadata>