88.5. json-glib-1.10.8
JSON parser/serializer library built on GLib (used by xdg-desktop-portal)
1.10.8-1 · LGPL-2.1-or-later · 0.1 SBU · 808.3 KiB, 28 files · 41_system, 175 of 1047 · ports/core/formats/json-glib
Homepage: https://gitlab.gnome.org/GNOME/json-glib
JSON-GLib reads and writes JSON for GLib and GObject programs: a parser and generator built on GLib’s types and main loop, and a serializer between JSON and GObject properties. It also installs json-glib-format and json-glib-validate. GNOME-family programs such as gimp, gegl, darktable, geoclue and libblockdev link it.
Depends on: meson, glib, python3-docutils, gettext, gobject-introspection, glib-introspection.
Required by (17): darktable, deja-dup, font-manager, gegl, geoclue, gimp, gnome-sudoku, libblockdev, libgusb, lxi-tools, osinfo-db-tools, remmina, rhythmbox, spice-gtk, swtpm, viking, xdg-desktop-portal.
Sources: json-glib-1.10.8.tar.xz (1.2 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install json-glib'
build.sh:
meson setup build --buildtype=release \
--prefix=/usr --sysconfdir=/etc --libdir=lib \
-Dintrospection=enabled \
-Dnls=enabled \
-Ddocumentation=disabled \
-Dgtk_doc=disabled \
-Dman=true \
-Dtests=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
-Dintrospection=enabled— Generate theJson-1.0GIR and typelib, so the library can be used from Python, JavaScript and other languages through GObject introspection. Namedenabled, a missingg-ir-scanneris a configure error rather than an omission. Both gobject-introspection and glib-introspection are independs, because the GIR includes GLib’s and GObject’s (see A second build of the same source).-Dnls=enabled— Build and install the message catalogs; namedenabled, a missingxgettextis a configure error. kpkg removes every catalog but the English ones (see the size and language policy), so the package carries onlyen_GB.-Ddocumentation=disabled— Build no API reference; it needs gi-docgen.-Dgtk_doc=disabled— The deprecated name meson maps ontodocumentation, set to the same value.-Dman=true— Build the manual pages of the two tools from their reStructuredText sources withrst2man, from python3-docutils. Off by upstream’s default; on, a missingrst2manis a configure error.-Dtests=false— Build no test programs.
Programs: json-glib-format, json-glib-validate.
Libraries: libjson-glib-1.0.so.
Directories: /usr/include/json-glib-1.0, /usr/share/licenses/json-glib.