mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/libpeas: add 1.38.1
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST libpeas-1.36.0.tar.xz 195432 BLAKE2B 12b12f041784e5fbeb03a36cad62625f7b60f770f7ff83d0660b28288262e125c2ca5f83032d4ae96faaa7b815ba9dcb245d3cbdac823765435a21e1eb08f663 SHA512 254087089475a3c1415e0ba8efb17aac56b96b1eee7c8e12933e72cc551ee39e9e3eac2d3d602bf9d369dd9fc7d3f5141e7683dec11b40b6c7b961b8e6c70a11
|
||||
DIST libpeas-1.38.1.tar.xz 196456 BLAKE2B 0256f7734ad73c175cbef8c67447f26c2dec21ac1d92de9a84a744d5a8ce90ec420f8f1dd13b8d946578888e3234ba83ebbfffc31f51c5b7208e228d0d2ffd07 SHA512 5e4dc3cde9c0fdd268acefefac3b0e200b2cbd5154dc619c5665a485f22b861396ac3f243f01d621fb40c37b3c566e23c656d95d7d700b7673fa2b0168d2ae8e
|
||||
DIST libpeas-2.0.7.tar.xz 157468 BLAKE2B 4688c6cde69abb6496ab08eda0ab57c032712220aaba51d09720e10cd8df12085c517fbe6b2a2e73c85a731eeb18efc0521f598b81f2070c10b322428bf3b6f6 SHA512 105cdc7b4ec681ec7b1a2c7d52bd891908bf0ebb32ac0f04f24adcf49e73236848f8ea1324c70ebc7490d316eb439f72de23db85ef4643e3301276dfbdec912b
|
||||
|
||||
34
dev-libs/libpeas/files/libpeas-1.38.1-test-extension.patch
Normal file
34
dev-libs/libpeas/files/libpeas-1.38.1-test-extension.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
From: Jan Grulich <jgrulich@redhat.com>
|
||||
Date: Wed, 25 Feb 2026 11:33:49 +0000
|
||||
Subject: Tests failures with pygobject 3.55.3
|
||||
|
||||
Origin: https://gitlab.gnome.org/GNOME/libpeas/-/issues/65#note_2690020
|
||||
Bug: https://gitlab.gnome.org/GNOME/libpeas/-/issues/65
|
||||
Bug-Debian: http://bugs.debian.org/1131663
|
||||
Bug-Ubuntu: http://launchpad.net/bugs/2146896
|
||||
---
|
||||
tests/libpeas/extension-py.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/libpeas/extension-py.c b/tests/libpeas/extension-py.c
|
||||
index 8ec155d..808884b 100644
|
||||
--- a/tests/libpeas/extension-py.c
|
||||
+++ b/tests/libpeas/extension-py.c
|
||||
@@ -59,7 +59,7 @@ test_extension_py_instance_refcount (PeasEngine *engine,
|
||||
|
||||
g_object_add_weak_pointer (extension, (gpointer *) &extension);
|
||||
|
||||
- g_assert_cmpint (extension->ref_count, ==, 2);
|
||||
+ g_assert_cmpint (extension->ref_count, ==, 1);
|
||||
|
||||
g_object_unref (extension);
|
||||
g_assert (extension == NULL);
|
||||
@@ -96,7 +96,7 @@ test_extension_py_activatable_subject_refcount (PeasEngine *engine,
|
||||
wrapper = g_object_get_data (object, "PyGObject::wrapper");
|
||||
g_assert_cmpint (wrapper->ob_refcnt, ==, 1);
|
||||
|
||||
- g_assert_cmpint (G_OBJECT (extension)->ref_count, ==, 2);
|
||||
+ g_assert_cmpint (G_OBJECT (extension)->ref_count, ==, 1);
|
||||
g_object_unref (extension);
|
||||
|
||||
/* We unreffed the extension, so it should have been destroyed and our dummy
|
||||
99
dev-libs/libpeas/libpeas-1.38.1.ebuild
Normal file
99
dev-libs/libpeas/libpeas-1.38.1.ebuild
Normal file
@@ -0,0 +1,99 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-1 luajit )
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit gnome.org lua-single meson python-single-r1 vala virtualx xdg
|
||||
|
||||
DESCRIPTION="A GObject plugins library"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/Libpeas https://gitlab.gnome.org/GNOME/libpeas"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
IUSE="glade +gtk gtk-doc lua +python vala"
|
||||
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.85.0:2[introspection]
|
||||
gtk? ( >=x11-libs/gtk+-3.0.0:3[introspection] )
|
||||
glade? ( >=dev-util/glade-3.9.1:3.10 )
|
||||
lua? (
|
||||
${LUA_DEPS}
|
||||
$(lua_gen_cond_dep '
|
||||
>=dev-lua/lgi-0.9.0[${LUA_USEDEP}]
|
||||
')
|
||||
)
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pygobject-3.52:3[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
gtk-doc? (
|
||||
>=dev-util/gtk-doc-1.11
|
||||
>=dev-util/gi-docgen-2021.7
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
)
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# Gentoo-specific lua tweak hack
|
||||
"${FILESDIR}"/1.26.0-lua.patch
|
||||
"${FILESDIR}"/${PN}-1.38.1-test-extension.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use lua && lua-single_pkg_setup
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use vala && vala_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature $(usex lua '!lua_single_target_luajit' 'lua') lua51)
|
||||
$(meson_feature $(usex lua 'lua_single_target_luajit' 'lua') luajit)
|
||||
-Dpython2=false
|
||||
$(meson_use python python3)
|
||||
# introspection was always enabled in autotools; would need readiness by consumers
|
||||
# to USE flag it, but most need it for python plugins anyways
|
||||
-Dintrospection=true
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use gtk widgetry)
|
||||
$(meson_use glade glade_catalog)
|
||||
-Ddemos=false
|
||||
$(meson_use gtk-doc gtk_doc)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx meson_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use gtk-doc; then
|
||||
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
mv "${ED}"/usr/share/doc/libpeas-1.0 "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
if use gtk; then
|
||||
mv "${ED}"/usr/share/doc/libpeas-gtk-1.0 "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user