Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/QGnomePlatform/, x11-themes/QGnomePlatform/files/
Date: Tue, 26 Apr 2022 10:30:43
Message-Id: 1650968973.236f0d768af32b552c6df2a2b596de7d0d6dce50.pacho@gentoo
1 commit: 236f0d768af32b552c6df2a2b596de7d0d6dce50
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 26 10:29:33 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 10:29:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=236f0d76
7
8 x11-themes/QGnomePlatform: Fix window id for xdg-desktop-portal file chooser
9
10 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
11
12 .../QGnomePlatform/QGnomePlatform-0.8.4-r1.ebuild | 39 ++++++++++++++++++++++
13 ...GnomePlatform-0.8.4-xdg-desktop-portal-id.patch | 11 ++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/x11-themes/QGnomePlatform/QGnomePlatform-0.8.4-r1.ebuild b/x11-themes/QGnomePlatform/QGnomePlatform-0.8.4-r1.ebuild
17 new file mode 100644
18 index 000000000000..a39961a0d0df
19 --- /dev/null
20 +++ b/x11-themes/QGnomePlatform/QGnomePlatform-0.8.4-r1.ebuild
21 @@ -0,0 +1,39 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +inherit cmake
27 +
28 +DESCRIPTION="A Qt Platform Theme aimed to accommodate GNOME settings"
29 +HOMEPAGE="https://github.com/FedoraQt/QGnomePlatform"
30 +SRC_URI="https://github.com/FedoraQt/QGnomePlatform/archive/${PV}.tar.gz -> ${P}.tar.gz"
31 +
32 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
33 +LICENSE="LGPL-2.1"
34 +SLOT="0"
35 +IUSE=""
36 +
37 +RDEPEND="
38 + dev-qt/qtdbus:5=
39 + >=dev-qt/qtwidgets-5.15.2:5=
40 + dev-qt/qtwayland:5=
41 + dev-qt/qtx11extras:5=
42 + gnome-base/gsettings-desktop-schemas
43 + sys-apps/xdg-desktop-portal
44 + x11-libs/gtk+:3[X]
45 + >=x11-themes/adwaita-qt-1.4.1
46 +"
47 +DEPEND="${RDEPEND}"
48 +BDEPEND="${RDEPEND}"
49 +
50 +PATCHES=(
51 + # https://github.com/FedoraQt/QGnomePlatform/issues/101
52 + "${FILESDIR}/${P}-xdg-desktop-portal-id.patch"
53 +)
54 +
55 +src_configure() {
56 + local mycmakeargs=(
57 + -DUSE_QT6=false
58 + )
59 + cmake_src_configure
60 +}
61
62 diff --git a/x11-themes/QGnomePlatform/files/QGnomePlatform-0.8.4-xdg-desktop-portal-id.patch b/x11-themes/QGnomePlatform/files/QGnomePlatform-0.8.4-xdg-desktop-portal-id.patch
63 new file mode 100644
64 index 000000000000..292088bd1f84
65 --- /dev/null
66 +++ b/x11-themes/QGnomePlatform/files/QGnomePlatform-0.8.4-xdg-desktop-portal-id.patch
67 @@ -0,0 +1,11 @@
68 +--- a/src/theme/qxdgdesktopportalfiledialog.cpp~ 2022-01-11 10:46:15.000000000 +0100
69 ++++ b/src/theme/qxdgdesktopportalfiledialog.cpp 2022-04-26 12:16:07.504955234 +0200
70 +@@ -165,7 +165,7 @@
71 + QLatin1String("/org/freedesktop/portal/desktop"),
72 + QLatin1String("org.freedesktop.portal.FileChooser"),
73 + d->saveFile ? QLatin1String("SaveFile") : QLatin1String("OpenFile"));
74 +- QString parentWindowId = QLatin1String("x11:") + QString::number(d->winId);
75 ++ QString parentWindowId = QLatin1String("x11:") + QString::number(d->winId, 16);
76 +
77 + QVariantMap options;
78 + if (!d->acceptLabel.isEmpty())