From f8bf1dcf567d46af90dc9a4ec71745c10ab7f3c2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 5 Feb 2011 16:33:15 +0100 Subject: [PATCH] Added json-glib-0.12.2 build template. --- srcpkgs/gir-json-glib | 1 + srcpkgs/json-glib-devel | 1 + srcpkgs/json-glib/depends | 2 ++ srcpkgs/json-glib/gir-json-glib.template | 13 +++++++++++++ srcpkgs/json-glib/json-glib-devel.template | 16 ++++++++++++++++ srcpkgs/json-glib/template | 22 ++++++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 1 + 7 files changed, 56 insertions(+) create mode 120000 srcpkgs/gir-json-glib create mode 120000 srcpkgs/json-glib-devel create mode 100644 srcpkgs/json-glib/depends create mode 100644 srcpkgs/json-glib/gir-json-glib.template create mode 100644 srcpkgs/json-glib/json-glib-devel.template create mode 100644 srcpkgs/json-glib/template diff --git a/srcpkgs/gir-json-glib b/srcpkgs/gir-json-glib new file mode 120000 index 0000000000..f6ab71b1c5 --- /dev/null +++ b/srcpkgs/gir-json-glib @@ -0,0 +1 @@ +json-glib \ No newline at end of file diff --git a/srcpkgs/json-glib-devel b/srcpkgs/json-glib-devel new file mode 120000 index 0000000000..f6ab71b1c5 --- /dev/null +++ b/srcpkgs/json-glib-devel @@ -0,0 +1 @@ +json-glib \ No newline at end of file diff --git a/srcpkgs/json-glib/depends b/srcpkgs/json-glib/depends new file mode 100644 index 0000000000..f67f5dc955 --- /dev/null +++ b/srcpkgs/json-glib/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.12.2" +api_depends="${abi_depends}" diff --git a/srcpkgs/json-glib/gir-json-glib.template b/srcpkgs/json-glib/gir-json-glib.template new file mode 100644 index 0000000000..95d750125d --- /dev/null +++ b/srcpkgs/json-glib/gir-json-glib.template @@ -0,0 +1,13 @@ +# Template file for 'gir-json-glib'. +# +short_desc="Introspection data for json-glib" +long_desc="${long_desc} + + This package contains small pieces of introspection data for the + json-glib library." + +do_install() +{ + install -d ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/girepository-1.0 ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/json-glib/json-glib-devel.template b/srcpkgs/json-glib/json-glib-devel.template new file mode 100644 index 0000000000..4f5c56ff9f --- /dev/null +++ b/srcpkgs/json-glib/json-glib-devel.template @@ -0,0 +1,16 @@ +# Template file for 'json-glib-devel'. +# +short_desc="${sourcepkg} - development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glib-devel +Add_dependency run json-glib + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/{include,share} ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/json-glib/template b/srcpkgs/json-glib/template new file mode 100644 index 0000000000..b26ca6bdd7 --- /dev/null +++ b/srcpkgs/json-glib/template @@ -0,0 +1,22 @@ +# Template build file for 'json-glib'. +pkgname=json-glib +version=0.12.2 +distfiles="${GNOME_SITE}/${pkgname}/0.12/${pkgname}-${version}.tar.bz2" +build_style=gnu_configure +short_desc="A JSON parser for GLib-based libraries and applications" +maintainer="Juan RP " +checksum=89fa9b870dfe2d8b7b00210be76cdbb2d46a8d2cc77ca7cbe5d081bdf8cad780 +long_desc=" + 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." + +subpackages="gir-${pkgname} ${pkgname}-devel" +Add_dependency run glibc +Add_dependency run glib +Add_dependency build pkg-config +Add_dependency build glib-devel +Add_dependency build gobject-introspection diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index bec412cf49..2aba5f5165 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -755,3 +755,4 @@ libsvn_ra_neon-1.so libsvn subversion-devel libsvn_swig_py-1.so subversion-python subversion-devel libsvn_swig_perl-1.so subversion-perl subversion-devel libsvn_swig_ruby-1.so subversion-ruby subversion-devel +libjson-glib-1.0.so json-glib json-glib-devel