pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/json-glib Import json-glib-0.6.2 as textproc/...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0cf1c71cf46c
branches:  trunk
changeset: 549551:0cf1c71cf46c
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Nov 05 13:07:14 2008 +0000

description:
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.

diffstat:

 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(+), 0 deletions(-)

diffs (145 lines):

diff -r 08dcc3a2a49b -r 0cf1c71cf46c textproc/json-glib/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/json-glib/DESCR  Wed Nov 05 13:07:14 2008 +0000
@@ -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 -r 08dcc3a2a49b -r 0cf1c71cf46c textproc/json-glib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/json-glib/Makefile       Wed Nov 05 13:07:14 2008 +0000
@@ -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@localhost
+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 -r 08dcc3a2a49b -r 0cf1c71cf46c textproc/json-glib/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/json-glib/PLIST  Wed Nov 05 13:07:14 2008 +0000
@@ -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 -r 08dcc3a2a49b -r 0cf1c71cf46c textproc/json-glib/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/json-glib/buildlink3.mk  Wed Nov 05 13:07:14 2008 +0000
@@ -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 -r 08dcc3a2a49b -r 0cf1c71cf46c textproc/json-glib/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/json-glib/distinfo       Wed Nov 05 13:07:14 2008 +0000
@@ -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 -r 08dcc3a2a49b -r 0cf1c71cf46c textproc/json-glib/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/json-glib/patches/patch-aa       Wed Nov 05 13:07:14 2008 +0000
@@ -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);
+ 



Home | Main Index | Thread Index | Old Index