commit: c88b67d93af972ab8ea6524add23e0ab464ccf1c Author: Lukas Schmelting <lschmelting <AT> posteo <DOT> com> AuthorDate: Tue Nov 4 21:55:42 2025 +0000 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> CommitDate: Sun Dec 21 18:50:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c88b67d9
x11-libs/libnotify: add 0.8.7, mask USE=test - Upstream enabled tests again, re-enable accordingly - The xdg_environment_reset call was added in 7fb6f0345e09 to fix a sandbox violation. As no such violation can currently be observed, remove it again. See-also: https://bugs.gentoo.org/567192 Co-authored-by: Zurab Kvachadze <zurabid2016 <AT> gmail.com> Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com> Part-of: https://github.com/gentoo/gentoo/pull/44474 Closes: https://github.com/gentoo/gentoo/pull/44474 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> profiles/arch/alpha/package.use.mask | 4 ++ profiles/arch/mips/package.use.mask | 4 ++ profiles/arch/sparc/package.use.mask | 4 ++ x11-libs/libnotify/Manifest | 1 + x11-libs/libnotify/libnotify-0.8.7.ebuild | 83 +++++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+) diff --git a/profiles/arch/alpha/package.use.mask b/profiles/arch/alpha/package.use.mask index c269c859e0b0..9e35c868f9da 100644 --- a/profiles/arch/alpha/package.use.mask +++ b/profiles/arch/alpha/package.use.mask @@ -698,3 +698,7 @@ net-dialup/ppp atm # Needs nut and qstat respectively, neither is keyworded on alpha. net-analyzer/nagios-plugins nagios-game + +# Lukas Schmelting <[email protected]> +# Depends on unkeyworded x11-misc/xvfb-run +>=x11-libs/libnotify-0.8.7 test diff --git a/profiles/arch/mips/package.use.mask b/profiles/arch/mips/package.use.mask index a47f68525f60..5c2d59cfb3bd 100644 --- a/profiles/arch/mips/package.use.mask +++ b/profiles/arch/mips/package.use.mask @@ -525,3 +525,7 @@ dev-vcs/git cgi # Matt Turner <[email protected]> (2012-02-09) # mips only use flags >=sci-libs/fftw-3 -zbus + +# Lukas Schmelting <[email protected]> +# Depends on unkeyworded x11-misc/xvfb-run +>=x11-libs/libnotify-0.8.7 test diff --git a/profiles/arch/sparc/package.use.mask b/profiles/arch/sparc/package.use.mask index f7c6ba6a964a..d257582f547a 100644 --- a/profiles/arch/sparc/package.use.mask +++ b/profiles/arch/sparc/package.use.mask @@ -816,3 +816,7 @@ net-im/pidgin zephyr # Ultrabug <[email protected]> (2011-09-05) # missing keyword for net-libs/zeromq app-admin/rsyslog zeromq + +# Lukas Schmelting <[email protected]> +# Depends on unkeyworded x11-misc/xvfb-run +>=x11-libs/libnotify-0.8.7 test diff --git a/x11-libs/libnotify/Manifest b/x11-libs/libnotify/Manifest index 9199cd2ffed2..640c0b9e9fa8 100644 --- a/x11-libs/libnotify/Manifest +++ b/x11-libs/libnotify/Manifest @@ -1 +1,2 @@ DIST libnotify-0.8.6.tar.xz 107628 BLAKE2B 5598a3539deb9a08bdb03f4cad5efb1610f07c48fa6029657bcdbedb6a73966512fcc313d038a4f26c762fc0e26cb3e6c3aa9caa3e59f57fccf2f51adced6773 SHA512 6e566f5907cfd7d623d58f5aa22d547271feb7e52bf28e463ecb98a763d6f7ad38cacc473d65e6f4a7e44c0514ab008078042e56a8b61edb719b9a1d192c2e34 +DIST libnotify-0.8.7.tar.xz 109172 BLAKE2B 80b16886b2ad10f0e0301e8c070944d81d292a5aece8258d5aed904b7bd67e9f7c038fa9284375dd25a419fdb6edf466514048022377907e8ac442e3e1f9d287 SHA512 75f8e605cd5331c91f502da61eec5bf5dfed6f1cf8c966e5c4356be48e24c32fe4be481dc16d0ccd4e25b2e9e207898124b349a0dc4575211e0044c9d81fc7ce diff --git a/x11-libs/libnotify/libnotify-0.8.7.ebuild b/x11-libs/libnotify/libnotify-0.8.7.ebuild new file mode 100644 index 000000000000..2fdd904a0574 --- /dev/null +++ b/x11-libs/libnotify/libnotify-0.8.7.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{11..14} ) + +inherit gnome.org meson-multilib python-any-r1 + +DESCRIPTION="A library for sending desktop notifications" +HOMEPAGE="https://gitlab.gnome.org/GNOME/libnotify" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="gtk-doc +introspection test" +RESTRICT="!test? ( test )" +REQUIRED_USE="gtk-doc? ( introspection )" + +RDEPEND=" + >=dev-libs/glib-2.62:2[${MULTILIB_USEDEP}] + x11-libs/gdk-pixbuf:2[introspection?,${MULTILIB_USEDEP}] + introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-libs/gobject-introspection-common-1.32 + dev-util/glib-utils + virtual/pkgconfig + app-text/docbook-xsl-ns-stylesheets + dev-libs/libxslt + gtk-doc? ( + dev-util/gi-docgen + app-text/docbook-xml-dtd:4.1.2 + ) + test? ( + dev-lang/python + $(python_gen_any_dep ' + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + gui-libs/gtk:4 + sys-apps/dbus + x11-misc/xvfb-run + ) +" +IDEPEND="app-eselect/eselect-notify-send" +PDEPEND="virtual/notification-daemon" + +python_check_deps() { + python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +src_prepare() { + default +} + +multilib_src_configure() { + local emesonargs=( + $(meson_native_use_bool test tests) + $(meson_native_use_feature introspection) + $(meson_native_use_bool gtk-doc gtk_doc) + -Ddocbook_docs=disabled + ) + meson_src_configure +} + +multilib_src_install_all() { + mv "${ED}"/usr/bin/{,libnotify-}notify-send || die #379941 + + einstalldocs + + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/ || die + mv "${ED}"/usr/share/{doc,gtk-doc}/libnotify-0 || die + fi +} + +pkg_postinst() { + eselect notify-send update ifunset +} + +pkg_postrm() { + eselect notify-send update ifunset +}
