sys-apps/xdg-desktop-portal: Version bump to 1.18.0

Signed-off-by: Guillermo Joandet <gjoandet@gmail.com>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Guillermo Joandet
2023-09-22 08:37:51 +02:00
committed by Andrew Ammerlaan
parent a0ff41c3e8
commit de9365facc
3 changed files with 159 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST xdg-desktop-portal-1.16.0.tar.xz 250524 BLAKE2B 9d5bd760621b114a19c1cc8895f91c43fcfed0dd067ba9678de0f11dc7835ec29c4a2c452274adbd36ee1318359caa8d7ca0c585558eb73a2a4e53528e6b02da SHA512 f7e7e96d3a6757901fbc4c0310aac0afbf37882c279a2859e06f63528049cd9b50dd2d55445d1386f03f62557c1a2ec81d4ee081200367d6269d2dffc75f0912
DIST xdg-desktop-portal-1.18.0.tar.xz 260788 BLAKE2B 3a7575af17a5b21d6f313a098a9144df9d6f24768c6e16e4fb45382fac3c64aab3b361b29226769c8cc979c278ec61469f32841792bb0f4e7d9e83fc1fab40fc SHA512 416c0736342b2909c10db025da72edca6d106b46224341bdf45ab41152c01b97f4a4eb78df924a6fbc771475bf103c1aea3005d8ff683f1eca935dbd1afe4a51
@@ -0,0 +1,69 @@
diff --git a/tests/meson.build b/tests/meson.build
index a2dafee..ec2b628 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -163,20 +163,15 @@ limited_portals = executable(
portal_tests = [
'account',
'background',
- 'camera',
'color',
'email',
- 'inhibit',
- 'location',
'notification',
'openfile',
- 'openuri',
'prepareprint',
'print',
'savefile',
'screenshot',
'trash',
- 'wallpaper',
]
test_env = env_tests
diff --git a/tests/test_globalshortcuts.py b/tests/test_globalshortcuts.py
index 56349cb..da0656d 100644
--- a/tests/test_globalshortcuts.py
+++ b/tests/test_globalshortcuts.py
@@ -20,7 +20,7 @@ class TestGlobalShortcuts:
def test_version(self, portal_mock):
portal_mock.check_version(1)
- def test_global_shortcuts_create_close_session(self, portal_mock):
+ def _test_global_shortcuts_create_close_session(self, portal_mock):
request = portal_mock.create_request()
options = {
"session_handle_token": "session_token0",
@@ -49,7 +49,7 @@ class TestGlobalShortcuts:
assert session.closed
@pytest.mark.parametrize("params", ({"force-close": 500},))
- def test_global_shortcuts_create_session_signal_closed(self, portal_mock):
+ def _test_global_shortcuts_create_session_signal_closed(self, portal_mock):
request = portal_mock.create_request()
options = {
"session_handle_token": "session_token0",
diff --git a/tests/test_remotedesktop.py b/tests/test_remotedesktop.py
index 49b6b18..77648bc 100644
--- a/tests/test_remotedesktop.py
+++ b/tests/test_remotedesktop.py
@@ -20,7 +20,7 @@ class TestRemoteDesktop:
def test_version(self, portal_mock):
portal_mock.check_version(2)
- def test_remote_desktop_create_close_session(self, portal_mock):
+ def _test_remote_desktop_create_close_session(self, portal_mock):
request = portal_mock.create_request()
options = {
"session_handle_token": "session_token0",
@@ -49,7 +49,7 @@ class TestRemoteDesktop:
assert session.closed
@pytest.mark.parametrize("params", ({"force-close": 500},))
- def test_remote_desktop_create_session_signal_closed(self, portal_mock):
+ def _test_remote_desktop_create_session_signal_closed(self, portal_mock):
request = portal_mock.create_request()
options = {
"session_handle_token": "session_token0",
@@ -0,0 +1,89 @@
# Copyright 1999-2023 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 man systemd test"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-libs/glib-2.66:2
dev-libs/json-glib
>=sys-fs/fuse-3.10.0:3[suid]
x11-libs/gdk-pixbuf
geolocation? ( >=app-misc/geoclue-2.5.3:2.0 )
>=media-video/pipewire-0.3:=
systemd? ( sys-apps/systemd )
test? (
dev-libs/libportal
)
man? ( dev-python/docutils )
"
RDEPEND="${DEPEND}
sys-apps/dbus
"
BDEPEND="
dev-util/gdbus-codegen
sys-devel/gettext
virtual/pkgconfig
test? (
${PYTHON_DEPS}
$(python_gen_any_dep '
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/python-dbusmock[${PYTHON_USEDEP}]
')
)
"
PATCHES=(
# These tests require connections to pipewire, internet, /dev/fuse
"${FILESDIR}/${P}-sandbox-disable-failing-tests.patch"
)
python_check_deps() {
python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" &&
python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]"
}
src_configure() {
local emesonargs=(
-Ddbus-service-dir="${EPREFIX}/usr/share/dbus-1/services"
-Dflatpak-interfaces-dir="${EPREFIX}/usr/share/dbus-1/interfaces"
-Dsystemd-user-unit-dir="$(systemd_get_userunitdir)"
$(meson_feature test libportal) # Only used for tests
$(meson_feature geolocation geoclue)
$(meson_feature systemd)
-Ddocbook-docs=disabled # requires flatpak
# -Dxmlto-flags=
-Ddatarootdir="${EPREFIX}/usr/share"
-Dinstalled-tests=false
$(meson_feature test pytest)
$(meson_feature man man-pages)
)
meson_src_configure
}
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; 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"
fi
}