1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit gnome.org meson multilib-minimal xdg-utils
7 DESCRIPTION="Library providing GLib serialization and deserialization for the JSON format"
8 HOMEPAGE="https://wiki.gnome.org/Projects/JsonGlib"
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 sparc ~x86 ~amd64-fbsd ~x86-fbsd"
13 IUSE="gtk-doc +introspection"
16 >=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}]
17 introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
19 # TODO: Can we use a newer docbook-xml-dtd, or is one needed at all?
21 ~app-text/docbook-xml-dtd-4.1.2
22 app-text/docbook-xsl-stylesheets
25 gtk-doc? ( >=dev-util/gtk-doc-1.20 )
26 >=sys-devel/gettext-0.18
27 virtual/pkgconfig[${MULTILIB_USEDEP}]
33 # Disable installed-tests; this also indirectly removes build_aux/gen-installed-test.py calls, thus not needing python-any-r1.eclass
34 sed -e 's/install: true/install: false/g' -i json-glib/tests/meson.build || die
35 sed -e '/install_data/d' -i json-glib/tests/meson.build || die
38 multilib_src_configure() {
40 -Dintrospection=$(multilib_native_usex introspection true false)
41 -Ddocs=$(multilib_native_usex gtk-doc true false)
47 multilib_src_compile() {
51 multilib_src_install() {