# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) inherit gnome.org gnome2-utils meson python-any-r1 systemd xdg DESCRIPTION="Remote desktop daemon for GNOME using pipewire" HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-remote-desktop" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64" IUSE="+rdp systemd +vnc" REQUIRED_USE="|| ( rdp vnc )" RESTRICT="test" # Tests run xvfb-run directly DEPEND=" x11-libs/cairo >=dev-libs/glib-2.68:2 >=media-video/pipewire-0.3.0:= app-crypt/libsecret x11-libs/libnotify media-libs/libepoxy x11-libs/libdrm rdp? ( >=media-libs/nv-codec-headers-11.1.5.0 >=net-misc/freerdp-2.5.0:=[server] >=sys-fs/fuse-3.9.1 >=x11-libs/libxkbcommon-1.0.0 ) vnc? ( net-libs/libvncserver ) " RDEPEND="${DEPEND} x11-wm/mutter[screencast] " BDEPEND=" ${PYTHON_DEPS} dev-util/gdbus-codegen dev-util/glib-utils virtual/pkgconfig " src_configure() { local emesonargs=( $(meson_use rdp) $(meson_use vnc) $(meson_use systemd) -Dsystemd_user_unit_dir="$(systemd_get_userunitdir)" ) meson_src_configure } pkg_postinst() { xdg_pkg_postinst gnome2_schemas_update } pkg_postrm() { xdg_pkg_postrm gnome2_schemas_update }