gentoo-ebuilds/sys-apps/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome-47.3.ebuild
Sam James 49d56af8bc
sys-apps/xdg-desktop-portal-gnome: add 47.3
Not sure why we have the 47.x dev releases in ~arch but tiny changes
over .3 and fixes xdg-desktop-portal-1.20.0 compat along with one
other bug fix.

Closes: https://bugs.gentoo.org/951706
Signed-off-by: Sam James <sam@gentoo.org>
2025-03-23 08:51:54 +00:00

56 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome.org gnome2-utils meson systemd xdg
DESCRIPTION="Backend implementation for xdg-desktop-portal using GNOME"
HOMEPAGE="https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
IUSE="wayland X"
# Newer-than-strictly-required xdg-desktop-portal dep for hang/slowness fixes
# https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/74
DEPEND="
dev-libs/glib:2
>=gnome-base/gsettings-desktop-schemas-47_alpha
gnome-base/gnome-desktop:4=
>=gui-libs/libadwaita-1.6_beta:1
media-libs/fontconfig
sys-apps/dbus
>=sys-apps/xdg-desktop-portal-1.18.2
>=sys-apps/xdg-desktop-portal-gtk-1.14.0
gui-libs/gtk:4[wayland?,X?]
X? ( x11-libs/libX11 )
wayland? ( dev-libs/wayland )
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/gdbus-codegen
sys-devel/gettext
virtual/pkgconfig
wayland? ( dev-util/wayland-scanner )
"
src_configure() {
local emesonargs=(
-Dsystemduserunitdir="$(systemd_get_userunitdir)"
)
meson_src_configure
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}