summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2024-12-06 14:13:27 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2024-12-06 14:14:10 +0100
commit107d54a5124cc87906e766351e2446f537a9a924 (patch)
tree55f1c54dab6b0a37311d6832c667116a146775ba /dev-libs/json-glib
parentdev-libs/gmp: add -std=gnu99 to CC_FOR_BUILD (diff)
downloadgentoo-107d54a5124cc87906e766351e2446f537a9a924.tar.gz
gentoo-107d54a5124cc87906e766351e2446f537a9a924.tar.bz2
gentoo-107d54a5124cc87906e766351e2446f537a9a924.zip
dev-libs/json-glib: add 1.10.0
Update ebuild and deps Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'dev-libs/json-glib')
-rw-r--r--dev-libs/json-glib/Manifest1
-rw-r--r--dev-libs/json-glib/json-glib-1.10.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-libs/json-glib/Manifest b/dev-libs/json-glib/Manifest
index d0d6ff42a81d..da48e4af3aea 100644
--- a/dev-libs/json-glib/Manifest
+++ b/dev-libs/json-glib/Manifest
@@ -1 +1,2 @@
+DIST json-glib-1.10.0.tar.xz 252652 BLAKE2B 83f0707c18806c90640fa36208d8aeb46c9902660484c24e4c736b72d35bb0997ab7b0c62fe3f8f4cd5001abb31ca979d75fd0eff54afa57116d360d1ac9e118 SHA512 cafe813c465e69bc002965483359354be0c0af1af8302e93416e25f835103cb9cd2c07ae51783dc28b69512562b3fdd6f62fdcc4c5952d59e667b3fc7740df06
DIST json-glib-1.8.0.tar.xz 157300 BLAKE2B eef0344c353bb9288efb700a6041342379627b924a042263e011f21140166b57b108f6816e80ac692159b49943f9c1afeb722efafa34e8c60f2fcdf53a0dc034 SHA512 e4fe16bb7c5b72fcf9c0966ac1903ff0cd74ec8eab891db4b94e92353bdcb57b24613b6c2cce7bfa1996603c367d1b4939c12209369dfb915aac0f3804a3a900
diff --git a/dev-libs/json-glib/json-glib-1.10.0.ebuild b/dev-libs/json-glib/json-glib-1.10.0.ebuild
new file mode 100644
index 000000000000..0b9b2e54653a
--- /dev/null
+++ b/dev-libs/json-glib/json-glib-1.10.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit gnome.org meson-multilib xdg-utils
+
+DESCRIPTION="Library providing GLib serialization and deserialization for the JSON format"
+HOMEPAGE="https://wiki.gnome.org/Projects/JsonGlib"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+IUSE="gtk-doc +introspection nls test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="gtk-doc? ( introspection )"
+
+RDEPEND="
+ >=dev-libs/glib-2.72.0:2[${MULTILIB_USEDEP}]
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-libs/libxslt
+ dev-util/glib-utils
+ gtk-doc? ( >=dev-util/gi-docgen-2021.6 )
+ >=sys-devel/gettext-0.18
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ xdg_environment_reset
+ default
+}
+
+multilib_src_configure() {
+ local emesonargs=(
+ # Never use gi-docgen subproject
+ --wrap-mode nofallback
+ -Dinstalled_tests=false
+
+ $(meson_native_use_feature introspection)
+ $(meson_native_use_feature gtk-doc documentation)
+ $(meson_native_true man)
+
+ $(meson_feature nls)
+ $(meson_use test tests)
+ )
+ meson_src_configure
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ if use gtk-doc ; then
+ # TODO: still useful with devhelp 43?
+ mkdir -p "${ED}"/usr/share/gtk-doc/html || die
+ mv "${ED}"/usr/share/doc/json-glib-1.0 "${ED}"/usr/share/gtk-doc/html/ || die
+ fi
+}