From ff5a99d4af440ab6bddc7c9e22a76c942d358250 Mon Sep 17 00:00:00 2001 From: obache Date: Wed, 5 Nov 2008 13:07:14 +0000 Subject: Import json-glib-0.6.2 as textproc/json-glib. JSON-GLib is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format described by RFC 4627 JSON-GLib uses GLib native data types and the generic value container GValue for ease of development. It also provides integration with the GObject classes for direct serialization into, and deserialization from, JSON data streams. --- textproc/json-glib/DESCR | 6 ++++++ textproc/json-glib/Makefile | 24 ++++++++++++++++++++++ textproc/json-glib/PLIST | 40 +++++++++++++++++++++++++++++++++++++ textproc/json-glib/buildlink3.mk | 22 ++++++++++++++++++++ textproc/json-glib/distinfo | 6 ++++++ textproc/json-glib/patches/patch-aa | 23 +++++++++++++++++++++ 6 files changed, 121 insertions(+) create mode 100644 textproc/json-glib/DESCR create mode 100644 textproc/json-glib/Makefile create mode 100644 textproc/json-glib/PLIST create mode 100644 textproc/json-glib/buildlink3.mk create mode 100644 textproc/json-glib/distinfo create mode 100644 textproc/json-glib/patches/patch-aa diff --git a/textproc/json-glib/DESCR b/textproc/json-glib/DESCR new file mode 100644 index 00000000000..69eb650057d --- /dev/null +++ b/textproc/json-glib/DESCR @@ -0,0 +1,6 @@ +JSON-GLib is a library providing serialization and deserialization support for +the JavaScript Object Notation (JSON) format described by RFC 4627 + +JSON-GLib uses GLib native data types and the generic value container GValue for +ease of development. It also provides integration with the GObject classes for +direct serialization into, and deserialization from, JSON data streams. diff --git a/textproc/json-glib/Makefile b/textproc/json-glib/Makefile new file mode 100644 index 00000000000..247250955b7 --- /dev/null +++ b/textproc/json-glib/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/11/05 13:07:14 obache Exp $ +# + +DISTNAME= json-glib-0.6.2 +CATEGORIES= textproc +MASTER_SITES= http://folks.o-hand.com/~ebassi/sources/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://live.gnome.org/JsonGlib +COMMENT= JSON parser for GLib-based libraries and applications + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= gmake pkg-config + +PKGCONFIG_OVERRIDE+= json-glib.pc.in + +TEST_TARGET= check + +BUILDLINK_API_DEPENDS.glib2+= glib2>=2.16.0 +.include "../../devel/glib2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/json-glib/PLIST b/textproc/json-glib/PLIST new file mode 100644 index 00000000000..2b006ec4629 --- /dev/null +++ b/textproc/json-glib/PLIST @@ -0,0 +1,40 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/11/05 13:07:14 obache Exp $ +include/json-glib-1.0/json-glib/json-enum-types.h +include/json-glib-1.0/json-glib/json-generator.h +include/json-glib-1.0/json-glib/json-glib.h +include/json-glib-1.0/json-glib/json-gobject.h +include/json-glib-1.0/json-glib/json-parser.h +include/json-glib-1.0/json-glib/json-types.h +include/json-glib-1.0/json-glib/json-version.h +lib/libjson-glib-1.0.la +lib/pkgconfig/json-glib-1.0.pc +share/gtk-doc/html/json-glib/JsonGenerator.html +share/gtk-doc/html/json-glib/JsonParser.html +share/gtk-doc/html/json-glib/ch01.html +share/gtk-doc/html/json-glib/ch02.html +share/gtk-doc/html/json-glib/ch03.html +share/gtk-doc/html/json-glib/home.png +share/gtk-doc/html/json-glib/index.html +share/gtk-doc/html/json-glib/index.sgml +share/gtk-doc/html/json-glib/ix01.html +share/gtk-doc/html/json-glib/ix02.html +share/gtk-doc/html/json-glib/json-advanced.html +share/gtk-doc/html/json-glib/json-base.html +share/gtk-doc/html/json-glib/json-glib-GObject-integration.html +share/gtk-doc/html/json-glib/json-glib-JsonArray.html +share/gtk-doc/html/json-glib/json-glib-JsonNode.html +share/gtk-doc/html/json-glib/json-glib-JsonObject.html +share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +share/gtk-doc/html/json-glib/json-glib.devhelp +share/gtk-doc/html/json-glib/json-glib.devhelp2 +share/gtk-doc/html/json-glib/json-glib.html +share/gtk-doc/html/json-glib/json-streams.html +share/gtk-doc/html/json-glib/json-tools.html +share/gtk-doc/html/json-glib/left.png +share/gtk-doc/html/json-glib/license.html +share/gtk-doc/html/json-glib/right.png +share/gtk-doc/html/json-glib/style.css +share/gtk-doc/html/json-glib/up.png +@dirrm share/gtk-doc/html/json-glib +@dirrm include/json-glib-1.0/json-glib +@dirrm include/json-glib-1.0 diff --git a/textproc/json-glib/buildlink3.mk b/textproc/json-glib/buildlink3.mk new file mode 100644 index 00000000000..b8aff038507 --- /dev/null +++ b/textproc/json-glib/buildlink3.mk @@ -0,0 +1,22 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/11/05 13:07:14 obache Exp $ +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +JSON_GLIB_BUILDLINK3_MK:= ${JSON_GLIB_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= json-glib +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Njson-glib} +BUILDLINK_PACKAGES+= json-glib +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}json-glib + +.if ${JSON_GLIB_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.json-glib+= json-glib>=0.6.2 +BUILDLINK_PKGSRCDIR.json-glib?= ../../textproc/json-glib +.endif # JSON_GLIB_BUILDLINK3_MK + +.include "../../devel/glib2/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/textproc/json-glib/distinfo b/textproc/json-glib/distinfo new file mode 100644 index 00000000000..69288387209 --- /dev/null +++ b/textproc/json-glib/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/11/05 13:07:14 obache Exp $ + +SHA1 (json-glib-0.6.2.tar.gz) = de4d9b51cc507e97f3427e01a616a9b6fb7fe3cd +RMD160 (json-glib-0.6.2.tar.gz) = 3e0f9748d64e6372609fdf106f49cf6c25133507 +Size (json-glib-0.6.2.tar.gz) = 453865 bytes +SHA1 (patch-aa) = 1d97b98516646adc187f5259edd64f6df6b0b498 diff --git a/textproc/json-glib/patches/patch-aa b/textproc/json-glib/patches/patch-aa new file mode 100644 index 00000000000..dc627a2e607 --- /dev/null +++ b/textproc/json-glib/patches/patch-aa @@ -0,0 +1,23 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/11/05 13:07:14 obache Exp $ + +http://bugzilla.openedhand.com/show_bug.cgi?id=1203 + +--- json-glib/json-gobject.c.orig 2008-05-20 09:04:47.000000000 +0000 ++++ json-glib/json-gobject.c +@@ -189,7 +189,7 @@ json_deserialize_pspec (GValue *valu + { + JsonArray *array = json_node_get_array (node); + guint i, array_len = json_array_get_length (array); +- GPtrArray *str_array = g_ptr_array_sized_new (array_len); ++ GPtrArray *str_array = g_ptr_array_sized_new (array_len + 1); + + for (i = 0; i < array_len; i++) + { +@@ -201,6 +201,7 @@ json_deserialize_pspec (GValue *valu + if (json_node_get_string (val) != NULL); + g_ptr_array_add (str_array, (gpointer) json_node_get_string (val)); + } ++ g_ptr_array_add (str_array, NULL); + + g_value_set_boxed (value, str_array->pdata); + -- cgit v1.2.3