import json-glib 0.6.2

JSON-GLib implements a full JSON parser using GLib and GObject.
Use JSON-GLib it is possible to parse and generate valid JSON data
structures, using a DOM-like API. JSON-GLib also offers GObject
integration, providing the ability to serialize and deserialize GObject
instances to and from JSON data types.
This commit is contained in:
jasper 2009-01-05 18:11:06 +00:00
parent 626cd3ab02
commit 3ac252df74
6 changed files with 115 additions and 0 deletions

32
devel/json-glib/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/01/05 18:11:06 jasper Exp $
COMMENT= JSON parser for GLib-based libraries and applications
DISTNAME= json-glib-0.6.2
SHARED_LIBS += json-glib-1.0 0.0 # .602.0
CATEGORIES= devel
HOMEPAGE= http://live.gnome.org/JsonGlib
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://folks.o-hand.com/~ebassi/sources/
WANTLIB= pcre
MODULES= devel/gettext
LIB_DEPENDS= glib-2.0,gobject-2.0::devel/glib2
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-gtk-doc
.include <bsd.port.mk>

5
devel/json-glib/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (json-glib-0.6.2.tar.gz) = 2Y9VgANa0LN/oRiWBTpXrw==
RMD160 (json-glib-0.6.2.tar.gz) = Pg+XSNZOY3Jgn98Qb0nPbCUTNQc=
SHA1 (json-glib-0.6.2.tar.gz) = 3k2bUcxQfpfzQn4Bphaptvt/480=
SHA256 (json-glib-0.6.2.tar.gz) = e+/Kf319ZcuyYOrNhu/ywdyujYWa4sPjAC4lNtArLEk=
SIZE (json-glib-0.6.2.tar.gz) = 453865

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-json-glib_json-gobject_c,v 1.1.1.1 2009/01/05 18:11:06 jasper Exp $
Fix an array overflow which led to an assertion crash.
From: http://bugzilla.openedhand.com/show_bug.cgi?id=1203
--- json-glib/json-gobject.c.orig Mon Jan 5 17:25:46 2009
+++ json-glib/json-gobject.c Mon Jan 5 17:26:39 2009
@@ -189,7 +189,7 @@ json_deserialize_pspec (GValue *value,
{
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,8 @@ json_deserialize_pspec (GValue *value,
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);

View File

@ -0,0 +1,6 @@
JSON-GLib implements a full JSON parser using GLib and GObject.
Use JSON-GLib it is possible to parse and generate valid JSON data
structures, using a DOM-like API. JSON-GLib also offers GObject
integration, providing the ability to serialize and deserialize GObject
instances to and from JSON data types.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/01/05 18:11:06 jasper Exp $
@lib lib/libjson-glib-1.0.so.${LIBjson-glib-1.0_VERSION}

45
devel/json-glib/pkg/PLIST Normal file
View File

@ -0,0 +1,45 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/05 18:11:06 jasper Exp $
%%SHARED%%
include/json-glib-1.0/
include/json-glib-1.0/json-glib/
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.a
lib/libjson-glib-1.0.la
lib/pkgconfig/
lib/pkgconfig/json-glib-1.0.pc
share/gtk-doc/
share/gtk-doc/html/
share/gtk-doc/html/json-glib/
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