From 3d05d0025c6d74a6b677a172283a0b25c4cf4012 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 27 Mar 2025 00:31:42 +0000 Subject: gentoo auto-resync : 27:03:2025 - 00:31:42 --- sys-apps/Manifest.gz | Bin 51576 -> 51578 bytes sys-apps/xdg-desktop-portal/Manifest | 6 +- .../xdg-desktop-portal-1.18.4-r1.ebuild | 6 +- .../xdg-desktop-portal-1.18.4-r2.ebuild | 119 +++++++++++++++++++ .../xdg-desktop-portal-1.18.4.ebuild | 117 ------------------- .../xdg-desktop-portal-1.20.0-r1.ebuild | 127 --------------------- .../xdg-desktop-portal-1.20.0-r2.ebuild | 127 +++++++++++++++++++++ 7 files changed, 251 insertions(+), 251 deletions(-) create mode 100644 sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r2.ebuild delete mode 100644 sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild delete mode 100644 sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r1.ebuild create mode 100644 sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r2.ebuild (limited to 'sys-apps') diff --git a/sys-apps/Manifest.gz b/sys-apps/Manifest.gz index 8f6443004f21..bc6cf72c2aa6 100644 Binary files a/sys-apps/Manifest.gz and b/sys-apps/Manifest.gz differ diff --git a/sys-apps/xdg-desktop-portal/Manifest b/sys-apps/xdg-desktop-portal/Manifest index 8fe1a83178dd..502daf0f3ad4 100644 --- a/sys-apps/xdg-desktop-portal/Manifest +++ b/sys-apps/xdg-desktop-portal/Manifest @@ -5,7 +5,7 @@ AUX xdg-desktop-portal-1.20.0-sandbox-disable-failing-tests.patch 648 BLAKE2B a9 AUX xdg-desktop-portal.initd 289 BLAKE2B 50a0a56b43004a903f98cf57caed06786d2f6b1db5f743c1420dd6ac5207a5c785851c38a7f6844cc9536ec9d5d8faad7a927123c201bed8c16ad123fd1de773 SHA512 c2b2b687c3f6e1cbcadf609194c764cdd9bfa72818a5efb25376ddd2ed16e86a7a35ec0a0117569074735e57840c9595a635a9b694364aeaef8076b873b9dafd DIST xdg-desktop-portal-1.18.4.tar.xz 699380 BLAKE2B 969d9359744f26a931d5d86fbdac222b0d55f7942bb8b1ffba67343c88696dbb4c905b122363c5eae5dcac8b55f58d03433acbbca6f7594a16e72e13bc78353a SHA512 482676777e8180752e13ff485acab91de117f4ecf2aefd313a6f596df800f37d7004ee4ba1040009eb69a6efc780efc7dcd7e46b3f59c47bd9f21aef48d346de DIST xdg-desktop-portal-1.20.0.tar.xz 1162932 BLAKE2B 0b6d4615df26a45359be70003f34205a965fb02875e42e613a8526328a304664c530daaaa27d666297726d5fd5cb6f1eb3415e81bae8e0479821078a0549862d SHA512 aac38476b75a841ce12d7b4036830ef4ce3426914bcaf7ee2bb8a3a34e353089ed5c3521b06f7714d5ef8308d1af4e8297e583d363eba94263f3c062ced0063e -EBUILD xdg-desktop-portal-1.18.4-r1.ebuild 3597 BLAKE2B a17915767365ca331299589390a1173dcbbb3fdc890ed39a96f60aa4f57cfd07346486606e1a3252c278c85dc85d41adcc2201b5656de7a845fb54251c5687a3 SHA512 11567180cbb9b4f68850cbeabd317bc3f47192a13b952acd67f7e425f7ef9459507da181ae65ada23140265551fa8010b008696f4ad940ac42fe8e410d10807c -EBUILD xdg-desktop-portal-1.18.4.ebuild 3502 BLAKE2B 190f353d6669469a1be307dd74a41e532be73e6146ee57ac2327ccf726268a52e5380bbb98c5ff7eff234012d6cbdc24a0622dcc13745a78f46b1254075a4818 SHA512 8049fae6f08cb85bc4650bcdf0d3c522e32c459fc07362e3ee0042a5cc46c0a615eab6e3ec7de03435db13c7adb565bbcdb40cb6125b9f6ba6a6e97bd36bf05e -EBUILD xdg-desktop-portal-1.20.0-r1.ebuild 3978 BLAKE2B 428e81b5d92b0273735a5a5c444972acda310f3e1d3d4a581e4b99fc308f304b913133aebca930165b5e44242e58ae8a4b2b4a1ed28fc6b81baa14b77fb43f81 SHA512 69fdfe1a71887cfbbcf28149c72713282a02fc2444a5a5149d1b04c2ecb35418106519bb0335f020c1bbd1853d9daca20c590438280558bdcca673de86148dc2 +EBUILD xdg-desktop-portal-1.18.4-r1.ebuild 3503 BLAKE2B ce66fc66b4616cf51be02c761a653f5002a2aa5ad3eb9a749248a112ffd6bff818a4717dbd38d975b5e6b79e4daec5851c68259814d3a3f2523f1f03d7bf7cff SHA512 5bb6e45fb27bd51288f8f965545a84c3b2150080f9841ec307f4c17c2ef98e8fafb7b8b4ee632eb24e0b7e8fd576b809fb0509e1bf8b4a476ddae2502776be4d +EBUILD xdg-desktop-portal-1.18.4-r2.ebuild 3598 BLAKE2B 897ef31e5aa9d4e1c4d6036f813f3f6542ee33e05d6964c3910859e53d69045e0fdaed6f01c2839ddcad5df35af7c273271561a9d7a2b080fb2394c69675e51c SHA512 d8650a9a17e379e831d4966146348dd418cd48529e38d998e20db53f653c8787335c4ff94d27f951705bbc80f84f5cd07de3f4b7af538b5f8ae22ede9c6340c3 +EBUILD xdg-desktop-portal-1.20.0-r2.ebuild 3979 BLAKE2B 80e58c5b56b9f69bf6d876a74947cf719e45815166959c56864d3e786c0458f25f99852d40b07555ac77c5f65511ccfca86a2fb60ce7e75e556580ce46de4d72 SHA512 ae6845eeede6da220b1fc567cd99de0bdf98f86f4cb61eae3efc2d0acef7017942f8f624b332391bb310cf341102376aa09f477ec4b69a2c2c3b7cf8fc6a8ac9 MISC metadata.xml 572 BLAKE2B 5d1abb01d74881886beab22900a545b0364cd7b48990577a153bdd1d8125d517b8a26c89382b0ceb9e127e0cbd11d7462d3d74908facb521295314ddf2699723 SHA512 ffaa7cfd28794dd57d1229e5839a28cf5b178c6416cf1817e7e6753c7460c22e96e2997f005b80b574d7f4b49e3a0e5d9f44101258824edb00e328caf449b9d5 diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild index 6948deab963d..9c390246c1dd 100644 --- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild +++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv x86" IUSE="geolocation flatpak seccomp systemd test" RESTRICT="!test? ( test )" # Upstream expect flatpak to be used w/ seccomp and flatpak needs bwrap anyway @@ -23,7 +23,7 @@ DEPEND=" >=dev-libs/glib-2.66:2 dev-libs/json-glib >=media-video/pipewire-0.3:= - >=sys-fs/fuse-3.10.0:3[suid] + >=sys-fs/fuse-3.10.0:3=[suid] x11-libs/gdk-pixbuf geolocation? ( >=app-misc/geoclue-2.5.3:2.0 ) flatpak? ( sys-apps/flatpak ) @@ -99,8 +99,6 @@ src_install() { # for minimalist WMs etc. insinto /usr/share/xdg-desktop-portal newins "${FILESDIR}"/default-portals.conf portals.conf - exeinto /etc/user/init.d - newexe "${FILESDIR}"/xdg-desktop-portal.initd xdg-desktop-portal } pkg_postinst() { diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r2.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r2.ebuild new file mode 100644 index 000000000000..d0bdd56fd06c --- /dev/null +++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r2.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit meson python-any-r1 systemd + +DESCRIPTION="Desktop integration portal" +HOMEPAGE="https://flatpak.org/ https://github.com/flatpak/xdg-desktop-portal" +SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="geolocation flatpak seccomp systemd test" +RESTRICT="!test? ( test )" +# Upstream expect flatpak to be used w/ seccomp and flatpak needs bwrap anyway +REQUIRED_USE="flatpak? ( seccomp )" + +DEPEND=" + >=dev-libs/glib-2.66:2 + dev-libs/json-glib + >=media-video/pipewire-0.3:= + >=sys-fs/fuse-3.10.0:3=[suid] + x11-libs/gdk-pixbuf + geolocation? ( >=app-misc/geoclue-2.5.3:2.0 ) + flatpak? ( sys-apps/flatpak ) + seccomp? ( sys-apps/bubblewrap ) + systemd? ( sys-apps/systemd ) +" +RDEPEND=" + ${DEPEND} + sys-apps/dbus +" +BDEPEND=" + dev-util/gdbus-codegen + dev-python/docutils + sys-devel/gettext + virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + dev-libs/libportal + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( + # These tests require connections to pipewire, internet, /dev/fuse + "${FILESDIR}/${PN}-1.18.0-sandbox-disable-failing-tests.patch" +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +python_check_deps() { + python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && + python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +src_configure() { + local emesonargs=( + -Ddbus-service-dir="${EPREFIX}/usr/share/dbus-1/services" + -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" + $(meson_feature flatpak flatpak-interfaces) + # Only used for tests + $(meson_feature test libportal) + $(meson_feature geolocation geoclue) + $(meson_use seccomp sandboxed-image-validation) + $(meson_feature systemd) + # Requires flatpak + -Ddocbook-docs=disabled + # -Dxmlto-flags= + -Ddatarootdir="${EPREFIX}/usr/share" + -Dman-pages=enabled + -Dinstalled-tests=false + $(meson_feature test pytest) + ) + + meson_src_configure +} + +src_install() { + meson_src_install + + # Install a default to avoid breakage: >=1.18.0 assumes that DEs/WMs + # will install their own, but we want some fallback in case they don't + # (so will probably keep this forever). DEs need time to catch up even + # if they will eventually provide one anyway. See bug #915356. + # + # TODO: Add some docs on wiki for users to add their own preference + # for minimalist WMs etc. + insinto /usr/share/xdg-desktop-portal + newins "${FILESDIR}"/default-portals.conf portals.conf + exeinto /etc/user/init.d + newexe "${FILESDIR}"/xdg-desktop-portal.initd xdg-desktop-portal +} + +pkg_postinst() { + if ! has_version gui-libs/xdg-desktop-portal-lxqt && ! has_version gui-libs/xdg-desktop-portal-wlr && \ + ! has_version kde-plasma/xdg-desktop-portal-kde && ! has_version sys-apps/xdg-desktop-portal-gnome && \ + ! has_version sys-apps/xdg-desktop-portal-gtk && ! has_version sys-apps/xdg-desktop-portal-xapp; then + elog "${PN} is not usable without any of the following XDP" + elog "implementations installed:" + elog " gui-libs/xdg-desktop-portal-lxqt" + elog " gui-libs/xdg-desktop-portal-wlr" + elog " kde-plasma/xdg-desktop-portal-kde" + elog " sys-apps/xdg-desktop-portal-gnome" + elog " sys-apps/xdg-desktop-portal-gtk" + elog " sys-apps/xdg-desktop-portal-xapp" + fi +} diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild deleted file mode 100644 index 86612571b2ab..000000000000 --- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) - -inherit meson python-any-r1 systemd - -DESCRIPTION="Desktop integration portal" -HOMEPAGE="https://flatpak.org/ https://github.com/flatpak/xdg-desktop-portal" -SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv x86" -IUSE="geolocation flatpak seccomp systemd test" -RESTRICT="!test? ( test )" -# Upstream expect flatpak to be used w/ seccomp and flatpak needs bwrap anyway -REQUIRED_USE="flatpak? ( seccomp )" - -DEPEND=" - >=dev-libs/glib-2.66:2 - dev-libs/json-glib - >=media-video/pipewire-0.3:= - >=sys-fs/fuse-3.10.0:3[suid] - x11-libs/gdk-pixbuf - geolocation? ( >=app-misc/geoclue-2.5.3:2.0 ) - flatpak? ( sys-apps/flatpak ) - seccomp? ( sys-apps/bubblewrap ) - systemd? ( sys-apps/systemd ) -" -RDEPEND=" - ${DEPEND} - sys-apps/dbus -" -BDEPEND=" - dev-util/gdbus-codegen - dev-python/docutils - sys-devel/gettext - virtual/pkgconfig - test? ( - ${PYTHON_DEPS} - dev-libs/libportal - $(python_gen_any_dep ' - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/python-dbusmock[${PYTHON_USEDEP}] - ') - ) -" - -PATCHES=( - # These tests require connections to pipewire, internet, /dev/fuse - "${FILESDIR}/${PN}-1.18.0-sandbox-disable-failing-tests.patch" -) - -pkg_setup() { - use test && python-any-r1_pkg_setup -} - -python_check_deps() { - python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && - python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" -} - -src_configure() { - local emesonargs=( - -Ddbus-service-dir="${EPREFIX}/usr/share/dbus-1/services" - -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" - $(meson_feature flatpak flatpak-interfaces) - # Only used for tests - $(meson_feature test libportal) - $(meson_feature geolocation geoclue) - $(meson_use seccomp sandboxed-image-validation) - $(meson_feature systemd) - # Requires flatpak - -Ddocbook-docs=disabled - # -Dxmlto-flags= - -Ddatarootdir="${EPREFIX}/usr/share" - -Dman-pages=enabled - -Dinstalled-tests=false - $(meson_feature test pytest) - ) - - meson_src_configure -} - -src_install() { - meson_src_install - - # Install a default to avoid breakage: >=1.18.0 assumes that DEs/WMs - # will install their own, but we want some fallback in case they don't - # (so will probably keep this forever). DEs need time to catch up even - # if they will eventually provide one anyway. See bug #915356. - # - # TODO: Add some docs on wiki for users to add their own preference - # for minimalist WMs etc. - insinto /usr/share/xdg-desktop-portal - newins "${FILESDIR}"/default-portals.conf portals.conf -} - -pkg_postinst() { - if ! has_version gui-libs/xdg-desktop-portal-lxqt && ! has_version gui-libs/xdg-desktop-portal-wlr && \ - ! has_version kde-plasma/xdg-desktop-portal-kde && ! has_version sys-apps/xdg-desktop-portal-gnome && \ - ! has_version sys-apps/xdg-desktop-portal-gtk && ! has_version sys-apps/xdg-desktop-portal-xapp; then - elog "${PN} is not usable without any of the following XDP" - elog "implementations installed:" - elog " gui-libs/xdg-desktop-portal-lxqt" - elog " gui-libs/xdg-desktop-portal-wlr" - elog " kde-plasma/xdg-desktop-portal-kde" - elog " sys-apps/xdg-desktop-portal-gnome" - elog " sys-apps/xdg-desktop-portal-gtk" - elog " sys-apps/xdg-desktop-portal-xapp" - fi -} diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r1.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r1.ebuild deleted file mode 100644 index 90a013fc9354..000000000000 --- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r1.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..13} ) - -inherit meson python-any-r1 systemd - -DESCRIPTION="Desktop integration portal" -HOMEPAGE="https://flatpak.github.io/xdg-desktop-portal/ https://github.com/flatpak/xdg-desktop-portal" -SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" -IUSE="geolocation flatpak seccomp systemd test udev" -RESTRICT="!test? ( test )" -# Upstream expect flatpak to be used w/ seccomp and flatpak needs bwrap anyway -REQUIRED_USE="flatpak? ( seccomp )" - -DEPEND=" - >=dev-libs/glib-2.72:2 - dev-libs/json-glib - >=media-video/pipewire-0.3:= - >=sys-fs/fuse-3.10.0:3[suid] - x11-libs/gdk-pixbuf - geolocation? ( >=app-misc/geoclue-2.5.3:2.0 ) - flatpak? ( sys-apps/flatpak ) - seccomp? ( sys-apps/bubblewrap ) - systemd? ( sys-apps/systemd ) - udev? ( dev-libs/libgudev ) -" -RDEPEND=" - ${DEPEND} - sys-apps/dbus -" -BDEPEND=" - dev-util/gdbus-codegen - dev-python/docutils - sys-devel/gettext - virtual/pkgconfig - test? ( - ${PYTHON_DEPS} - dev-util/umockdev - media-libs/gstreamer - media-libs/gst-plugins-good - $(python_gen_any_dep ' - >=dev-python/pytest-3[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/python-dbusmock[${PYTHON_USEDEP}] - ') - ) -" - -PATCHES=( - # Needed until gstreamer-rs (for gstreamer-pbutils) is packaged - "${FILESDIR}/${PN}-1.20.0-optional-gstreamer.patch" - # These tests require connections to pipewire, internet, /dev/fuse - "${FILESDIR}/${PN}-1.20.0-sandbox-disable-failing-tests.patch" -) - -pkg_setup() { - use test && python-any-r1_pkg_setup -} - -python_check_deps() { - python_has_version ">=dev-python/pytest-3[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && - python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" -} - -src_configure() { - local emesonargs=( - -Ddbus-service-dir="${EPREFIX}/usr/share/dbus-1/services" - -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" - $(meson_feature flatpak flatpak-interfaces) - $(meson_feature geolocation geoclue) - $(meson_feature udev gudev) - $(meson_feature seccomp sandboxed-image-validation) - # Needs gstreamer-pbutils (part of gstreamer-rs)? - # Not yet packaged - #$(meson_feature seccomp sandboxed-sound-validation) - -Dsandboxed-sound-validation=disabled - $(meson_feature systemd) - # Requires flatpak - -Ddocumentation=disabled - # -Dxmlto-flags= - -Ddatarootdir="${EPREFIX}/usr/share" - -Dman-pages=enabled - -Dinstalled-tests=false - $(meson_feature test tests) - ) - - meson_src_configure -} - -src_install() { - meson_src_install - - # Install a default to avoid breakage: >=1.18.0 assumes that DEs/WMs - # will install their own, but we want some fallback in case they don't - # (so will probably keep this forever). DEs need time to catch up even - # if they will eventually provide one anyway. See bug #915356. - # - # TODO: Add some docs on wiki for users to add their own preference - # for minimalist WMs etc. - insinto /usr/share/xdg-desktop-portal - newins "${FILESDIR}"/default-portals.conf portals.conf - exeinto /etc/user/init.d - newexe "${FILESDIR}"/xdg-desktop-portal.initd xdg-desktop-portal -} - -pkg_postinst() { - if ! has_version gui-libs/xdg-desktop-portal-lxqt && ! has_version gui-libs/xdg-desktop-portal-wlr && \ - ! has_version kde-plasma/xdg-desktop-portal-kde && ! has_version sys-apps/xdg-desktop-portal-gnome && \ - ! has_version sys-apps/xdg-desktop-portal-gtk && ! has_version sys-apps/xdg-desktop-portal-xapp; then - elog "${PN} is not usable without any of the following XDP" - elog "implementations installed:" - elog " gui-libs/xdg-desktop-portal-lxqt" - elog " gui-libs/xdg-desktop-portal-wlr" - elog " kde-plasma/xdg-desktop-portal-kde" - elog " sys-apps/xdg-desktop-portal-gnome" - elog " sys-apps/xdg-desktop-portal-gtk" - elog " sys-apps/xdg-desktop-portal-xapp" - fi -} diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r2.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r2.ebuild new file mode 100644 index 000000000000..5f06d463fe1d --- /dev/null +++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.0-r2.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit meson python-any-r1 systemd + +DESCRIPTION="Desktop integration portal" +HOMEPAGE="https://flatpak.github.io/xdg-desktop-portal/ https://github.com/flatpak/xdg-desktop-portal" +SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +IUSE="geolocation flatpak seccomp systemd test udev" +RESTRICT="!test? ( test )" +# Upstream expect flatpak to be used w/ seccomp and flatpak needs bwrap anyway +REQUIRED_USE="flatpak? ( seccomp )" + +DEPEND=" + >=dev-libs/glib-2.72:2 + dev-libs/json-glib + >=media-video/pipewire-0.3:= + >=sys-fs/fuse-3.10.0:3=[suid] + x11-libs/gdk-pixbuf + geolocation? ( >=app-misc/geoclue-2.5.3:2.0 ) + flatpak? ( sys-apps/flatpak ) + seccomp? ( sys-apps/bubblewrap ) + systemd? ( sys-apps/systemd ) + udev? ( dev-libs/libgudev ) +" +RDEPEND=" + ${DEPEND} + sys-apps/dbus +" +BDEPEND=" + dev-util/gdbus-codegen + dev-python/docutils + sys-devel/gettext + virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + dev-util/umockdev + media-libs/gstreamer + media-libs/gst-plugins-good + $(python_gen_any_dep ' + >=dev-python/pytest-3[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/python-dbusmock[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( + # Needed until gstreamer-rs (for gstreamer-pbutils) is packaged + "${FILESDIR}/${PN}-1.20.0-optional-gstreamer.patch" + # These tests require connections to pipewire, internet, /dev/fuse + "${FILESDIR}/${PN}-1.20.0-sandbox-disable-failing-tests.patch" +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +python_check_deps() { + python_has_version ">=dev-python/pytest-3[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && + python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" +} + +src_configure() { + local emesonargs=( + -Ddbus-service-dir="${EPREFIX}/usr/share/dbus-1/services" + -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" + $(meson_feature flatpak flatpak-interfaces) + $(meson_feature geolocation geoclue) + $(meson_feature udev gudev) + $(meson_feature seccomp sandboxed-image-validation) + # Needs gstreamer-pbutils (part of gstreamer-rs)? + # Not yet packaged + #$(meson_feature seccomp sandboxed-sound-validation) + -Dsandboxed-sound-validation=disabled + $(meson_feature systemd) + # Requires flatpak + -Ddocumentation=disabled + # -Dxmlto-flags= + -Ddatarootdir="${EPREFIX}/usr/share" + -Dman-pages=enabled + -Dinstalled-tests=false + $(meson_feature test tests) + ) + + meson_src_configure +} + +src_install() { + meson_src_install + + # Install a default to avoid breakage: >=1.18.0 assumes that DEs/WMs + # will install their own, but we want some fallback in case they don't + # (so will probably keep this forever). DEs need time to catch up even + # if they will eventually provide one anyway. See bug #915356. + # + # TODO: Add some docs on wiki for users to add their own preference + # for minimalist WMs etc. + insinto /usr/share/xdg-desktop-portal + newins "${FILESDIR}"/default-portals.conf portals.conf + exeinto /etc/user/init.d + newexe "${FILESDIR}"/xdg-desktop-portal.initd xdg-desktop-portal +} + +pkg_postinst() { + if ! has_version gui-libs/xdg-desktop-portal-lxqt && ! has_version gui-libs/xdg-desktop-portal-wlr && \ + ! has_version kde-plasma/xdg-desktop-portal-kde && ! has_version sys-apps/xdg-desktop-portal-gnome && \ + ! has_version sys-apps/xdg-desktop-portal-gtk && ! has_version sys-apps/xdg-desktop-portal-xapp; then + elog "${PN} is not usable without any of the following XDP" + elog "implementations installed:" + elog " gui-libs/xdg-desktop-portal-lxqt" + elog " gui-libs/xdg-desktop-portal-wlr" + elog " kde-plasma/xdg-desktop-portal-kde" + elog " sys-apps/xdg-desktop-portal-gnome" + elog " sys-apps/xdg-desktop-portal-gtk" + elog " sys-apps/xdg-desktop-portal-xapp" + fi +} -- cgit v1.2.3