[Midnightbsd-cvs] mports: mports/devel: add json-glib
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Feb 18 15:37:05 EST 2009
Log Message:
-----------
add json-glib
Modified Files:
--------------
mports/devel:
Makefile (r1.276 -> r1.277)
Added Files:
-----------
mports/devel/json-glib:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/devel/json-glib/files:
patch-json-glib_json-object.c (r1.1)
-------------- next part --------------
--- /dev/null
+++ devel/json-glib/pkg-descr
@@ -0,0 +1,23 @@
+JSON-GLib is a library providing serialization and deserialization support
+for the JavaScript Object Notation (JSON) format described by RFC 4627. JSON is:
+
+a lightweight data-interchange format. It is easy for humans to read and write.
+It is easy for machines to parse and generate. It is based on a subset of the
+JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.
+JSON is a text format that is completely language independent but uses
+conventions that are familiar to programmers of the C-family of languages,
+including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These
+properties make JSON an ideal data-interchange language. -- From Introducing
+JSON
+
+Many high-level languages already provide native modules for parsing, generating
+and manipulating JSON data streams. JSON-GLib is a C library based on GLib and
+released under the terms of the GNU Lesser General Public License version 2.1.
+It provides a parser and a generator GObject classes and various wrappers for
+the complex data types employed by JSON, such as arrays and objects.
+
+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.
+
+WWW: http://live.gnome.org/JsonGlib
--- /dev/null
+++ devel/json-glib/pkg-plist
@@ -0,0 +1,42 @@
+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/libjson-glib-1.0.so
+lib/libjson-glib-1.0.so.0
+libdata/pkgconfig/json-glib-1.0.pc
+%%DOCSDIR%%/JsonGenerator.html
+%%DOCSDIR%%/JsonParser.html
+%%DOCSDIR%%/ch01.html
+%%DOCSDIR%%/ch02.html
+%%DOCSDIR%%/ch03.html
+%%DOCSDIR%%/home.png
+%%DOCSDIR%%/index.html
+%%DOCSDIR%%/index.sgml
+%%DOCSDIR%%/ix01.html
+%%DOCSDIR%%/ix02.html
+%%DOCSDIR%%/json-advanced.html
+%%DOCSDIR%%/json-base.html
+%%DOCSDIR%%/json-glib-GObject-integration.html
+%%DOCSDIR%%/json-glib-JsonArray.html
+%%DOCSDIR%%/json-glib-JsonNode.html
+%%DOCSDIR%%/json-glib-JsonObject.html
+%%DOCSDIR%%/json-glib-Versioning-information.html
+%%DOCSDIR%%/json-glib.devhelp
+%%DOCSDIR%%/json-glib.devhelp2
+%%DOCSDIR%%/json-glib.html
+%%DOCSDIR%%/json-streams.html
+%%DOCSDIR%%/json-tools.html
+%%DOCSDIR%%/left.png
+%%DOCSDIR%%/license.html
+%%DOCSDIR%%/right.png
+%%DOCSDIR%%/style.css
+%%DOCSDIR%%/up.png
+ at dirrm %%DOCSDIR%%
+ at dirrm include/json-glib-1.0/json-glib
+ at dirrm include/json-glib-1.0
--- /dev/null
+++ devel/json-glib/Makefile
@@ -0,0 +1,22 @@
+# $MidnightBSD: mports/devel/json-glib/Makefile,v 1.1 2009/02/18 20:37:03 laffer1 Exp $
+
+PORTNAME= json-glib
+PORTVERSION= 0.6.2
+PORTREVISION= 1
+CATEGORIES= devel
+MASTER_SITES= http://folks.o-hand.com/~ebassi/sources/ \
+ ${MASTER_SITE_LOCAL:S/$/:local/}
+MASTER_SITE_SUBDIR= marcus:local
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= JSON (RFC 4627) interface for Glib
+LICENSE= lgpl
+
+USE_GMAKE= yes
+USE_GNOME= glib20 gnomehack gnomeprefix ltverhack
+USE_AUTOTOOLS= libtool:15
+USE_LDCONFIG= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
--- /dev/null
+++ devel/json-glib/distinfo
@@ -0,0 +1,3 @@
+MD5 (json-glib-0.6.2.tar.gz) = d98f5580035ad0b37fa11896053a57af
+SHA256 (json-glib-0.6.2.tar.gz) = 7befca7f7d7d65cbb260eacd86eff2c1dcae8d859ae2c3e3002e2536d02b2c49
+SIZE (json-glib-0.6.2.tar.gz) = 453865
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/devel/Makefile,v
retrieving revision 1.276
retrieving revision 1.277
diff -L devel/Makefile -L devel/Makefile -u -r1.276 -r1.277
--- devel/Makefile
+++ devel/Makefile
@@ -96,6 +96,7 @@
SUBDIR += icu
SUBDIR += imake
SUBDIR += imake-6
+ SUBDIR += json-glib
SUBDIR += judy
SUBDIR += kdbg
SUBDIR += kdesdk3
--- /dev/null
+++ devel/json-glib/files/patch-json-glib_json-object.c
@@ -0,0 +1,21 @@
+diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
+index 15e9ed5..eeb571c 100644
+--- json-glib/json-gobject.c
++++ json-glib/json-gobject.c
+@@ -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,7 @@ 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);
+
More information about the Midnightbsd-cvs
mailing list