summaryrefslogtreecommitdiff
path: root/dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-10-03 22:02:30 +0100
committerSam James <sam@gentoo.org>2025-10-03 22:02:30 +0100
commit39bfe98f01166aa9200f7452ae57d54e50b2234b (patch)
treeb31bd1bde00757549e016c6dd005660580188f96 /dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild
parentf1c992a2ea2902173f9672feb2d1e58dde6c3273 (diff)
downloadgentoo-39bfe98f01166aa9200f7452ae57d54e50b2234b.tar.gz
gentoo-39bfe98f01166aa9200f7452ae57d54e50b2234b.tar.bz2
gentoo-39bfe98f01166aa9200f7452ae57d54e50b2234b.zip
dev-libs/gobject-introspection: add 1.86.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild')
-rw-r--r--dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild91
1 files changed, 91 insertions, 0 deletions
diff --git a/dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild b/dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild
new file mode 100644
index 000000000000..f8180edbf870
--- /dev/null
+++ b/dev-libs/gobject-introspection/gobject-introspection-1.86.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+PYTHON_REQ_USE="xml(+)"
+inherit gnome.org meson python-single-r1 xdg
+
+DESCRIPTION="Introspection system for GObject-based libraries"
+HOMEPAGE="https://gi.readthedocs.io/"
+
+LICENSE="LGPL-2+ GPL-2+"
+SLOT="0"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+IUSE="doctool gtk-doc test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# virtual/pkgconfig needed at runtime, bug #505408
+RDEPEND="
+ >=dev-libs/gobject-introspection-common-${PV}
+ >=dev-libs/glib-2.82.0:2[introspection]
+ dev-libs/libffi:=
+ $(python_gen_cond_dep '
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ')
+ doctool? (
+ $(python_gen_cond_dep '
+ dev-python/mako[${PYTHON_USEDEP}]
+ dev-python/markdown[${PYTHON_USEDEP}]
+ ')
+ )
+ virtual/pkgconfig
+ ${PYTHON_DEPS}
+"
+# Wants real bison, not app-alternatives/yacc
+DEPEND="${RDEPEND}"
+BDEPEND="
+ gtk-doc? (
+ >=dev-util/gtk-doc-1.19
+ app-text/docbook-xml-dtd:4.3
+ app-text/docbook-xml-dtd:4.5
+ )
+ >=dev-build/meson-1.4.0
+ sys-devel/bison
+ app-alternatives/lex
+ test? (
+ x11-libs/cairo[glib]
+ $(python_gen_cond_dep '
+ dev-python/mako[${PYTHON_USEDEP}]
+ dev-python/markdown[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature test cairo)
+ # Enable building the tests (and installing them) unconditionally
+ # for now as a workaround for old gnome-extra/cjs and dev-libs/gjs,
+ # see bug #952011.
+ #$(meson_use test tests)
+ -Dtests=true
+ $(meson_feature doctool)
+ #-Dglib_src_dir
+ $(meson_use gtk-doc gtk_doc)
+ #-Dcairo_libname
+ -Dpython="${EPYTHON}"
+ -Dbuild_introspection_data=true
+ #-Dgir_dir_prefix
+ )
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ python_fix_shebang "${ED}"/usr/bin/
+ python_optimize "${ED}"/usr/$(get_libdir)/gobject-introspection/giscanner
+
+ # Prevent collision with gobject-introspection-common
+ rm -v "${ED}"/usr/share/aclocal/introspection.m4 \
+ "${ED}"/usr/share/gobject-introspection-1.0/Makefile.introspection || die
+ rmdir "${ED}"/usr/share/aclocal || die
+}