From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/xdg-desktop-portal/
Date: Fri, 3 Nov 2023 23:24:41 +0000 (UTC) [thread overview]
Message-ID: <1699053846.717d6931b52e24dccfdb8bcda023daa6c768f66f.sam@gentoo> (raw)
commit: 717d6931b52e24dccfdb8bcda023daa6c768f66f
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 3 23:24:06 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 3 23:24:06 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=717d6931
sys-apps/xdg-desktop-portal: add 1.18.1
Closes: https://bugs.gentoo.org/916742
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/xdg-desktop-portal/Manifest | 1 +
.../xdg-desktop-portal-1.18.1.ebuild | 116 +++++++++++++++++++++
2 files changed, 117 insertions(+)
diff --git a/sys-apps/xdg-desktop-portal/Manifest b/sys-apps/xdg-desktop-portal/Manifest
index 3518f9b5a90e..3c2ed1af8477 100644
--- a/sys-apps/xdg-desktop-portal/Manifest
+++ b/sys-apps/xdg-desktop-portal/Manifest
@@ -1,2 +1,3 @@
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
+DIST xdg-desktop-portal-1.18.1.tar.xz 696988 BLAKE2B b458b50b7adf2ad3cf47f86f01d4323ca5110bd07c76eb19b789445f1bab1662ae031f3c99d171f41d1db87f262c28e1ed810527612f7b1cec521a21d690088f SHA512 b4340d14a94a03bdf3ebee8d5a13e7d9386e870b50654369293670d5a828fd258fe419b330c036eaa28963447764db2169aa7f225819a4f9877e57d18c59030e
diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.1.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.1.ebuild
new file mode 100644
index 000000000000..096cde882a78
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.1.ebuild
@@ -0,0 +1,116 @@
+# 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 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; 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
+}
next reply other threads:[~2023-11-03 23:24 UTC|newest]
Thread overview: 107+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 23:24 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-22 17:07 [gentoo-commits] repo/gentoo:master commit in: sys-apps/xdg-desktop-portal/ Andreas Sturmlechner
2024-04-20 17:39 Arthur Zamarin
2024-04-20 14:52 Arthur Zamarin
2024-04-20 14:52 Arthur Zamarin
2024-04-20 11:56 Andreas Sturmlechner
2024-04-20 11:56 Andreas Sturmlechner
2024-04-06 18:26 Andreas Sturmlechner
2023-12-25 18:22 Sam James
2023-12-25 18:22 Sam James
2023-12-25 18:22 Sam James
2023-11-26 18:34 Sam James
2023-10-29 20:21 Sam James
2023-10-14 2:28 Sam James
2023-09-22 18:23 Sam James
2023-09-22 17:16 Sam James
2023-09-22 17:16 Sam James
2023-09-22 17:16 Sam James
2023-09-22 17:01 Sam James
2023-06-11 11:18 Andreas Sturmlechner
2023-05-22 8:27 Arthur Zamarin
2023-05-21 19:51 Sam James
2023-05-21 6:10 Arthur Zamarin
2023-05-06 9:40 Sam James
2023-04-22 18:09 Andreas Sturmlechner
2023-04-22 15:10 Arthur Zamarin
2023-04-22 15:04 Arthur Zamarin
2023-04-22 14:57 Arthur Zamarin
2023-02-23 19:09 Andreas Sturmlechner
2022-12-14 20:01 Andreas Sturmlechner
2022-11-05 5:59 Arthur Zamarin
2022-10-10 18:09 Andreas Sturmlechner
2022-09-24 16:46 Matt Turner
2022-08-26 7:09 Andreas Sturmlechner
2022-08-25 18:15 Agostino Sarubbo
2022-08-24 21:17 Sam James
2022-08-24 18:16 Arthur Zamarin
2022-08-08 12:08 Andreas Sturmlechner
2022-07-20 5:15 Sam James
2022-07-20 4:17 Sam James
2022-06-01 8:59 Andreas Sturmlechner
2022-05-28 20:35 Jakov Smolić
2022-05-28 7:04 Agostino Sarubbo
2022-05-27 11:14 Jakov Smolić
2022-05-09 0:56 Andreas Sturmlechner
2022-05-07 5:28 Sam James
2022-04-28 0:02 Sam James
2022-04-05 16:35 Andreas Sturmlechner
2022-01-26 10:01 Andreas Sturmlechner
2022-01-25 21:25 Sam James
2022-01-25 13:36 Jakov Smolić
2022-01-25 13:36 Jakov Smolić
2021-12-23 11:37 Andreas Sturmlechner
2021-11-08 6:22 Sam James
2021-11-06 19:57 Sam James
2021-11-05 20:24 Jakov Smolić
2021-09-22 21:59 Andreas Sturmlechner
2021-08-18 0:35 Yixun Lan
2021-06-05 10:57 Mikle Kolyada
2021-06-05 10:55 Mikle Kolyada
2021-06-05 10:53 Mikle Kolyada
2021-02-25 12:50 Andreas Sturmlechner
2021-02-17 22:13 Andreas Sturmlechner
2021-02-17 21:12 Sam James
2021-02-17 1:56 Sam James
2021-02-16 13:45 Sam James
2021-01-01 19:08 Andreas Sturmlechner
2020-10-08 2:22 Sam James
2020-10-07 11:05 Agostino Sarubbo
2020-10-07 10:44 Agostino Sarubbo
2020-10-05 11:22 Andreas Sturmlechner
2020-09-20 8:42 Andreas Sturmlechner
2020-07-30 0:00 Sam James
2020-07-29 23:27 Sam James
2020-07-29 22:37 Sam James
2020-07-29 21:29 Andreas Sturmlechner
2020-07-27 13:54 Sam James
2020-07-26 10:05 Andreas Sturmlechner
2020-06-28 15:36 Andreas Sturmlechner
2020-06-28 15:36 Andreas Sturmlechner
2020-06-28 15:36 Andreas Sturmlechner
2020-04-15 22:27 Andreas Sturmlechner
2020-04-15 9:39 Mart Raudsepp
2020-04-14 13:16 Andreas Sturmlechner
2020-04-14 13:16 Andreas Sturmlechner
2020-03-02 12:32 Agostino Sarubbo
2020-03-01 21:44 Agostino Sarubbo
2020-01-03 23:00 Andreas Sturmlechner
2020-01-03 22:58 Andreas Sturmlechner
2019-09-14 7:32 Andreas Sturmlechner
2019-09-13 20:41 Andreas Sturmlechner
2019-08-17 23:02 Andreas Sturmlechner
2019-08-12 6:16 Andreas Sturmlechner
2019-08-11 21:30 Thomas Deutschmann
2019-08-09 12:51 Agostino Sarubbo
2019-08-08 19:30 Aaron Bauman
2019-07-07 19:20 Andreas Sturmlechner
2019-07-07 15:56 Andreas Sturmlechner
2019-06-22 16:10 Andreas Sturmlechner
2019-06-22 16:08 Andreas Sturmlechner
2019-05-29 0:32 Aaron Bauman
2019-05-12 20:56 Thomas Deutschmann
2019-05-09 20:49 Pacho Ramos
2019-03-10 22:46 Andreas Sturmlechner
2019-02-28 14:32 Mikle Kolyada
2019-02-26 12:13 Andreas Sturmlechner
2019-02-25 17:05 Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1699053846.717d6931b52e24dccfdb8bcda023daa6c768f66f.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox