public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/kde:master commit in: kde-plasma/xdg-desktop-portal-kde/, kde-plasma/xdg-desktop-portal-kde/files/
@ 2018-12-16 21:28 Andreas Sturmlechner
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2018-12-16 21:28 UTC (permalink / raw
  To: gentoo-commits

commit:     ee9680c07141bc535f300bf5320cba62cbf806c6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 16 19:59:44 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Dec 16 21:24:13 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=ee9680c0

kde-plasma/xdg-desktop-portal-kde: New package

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...dg-desktop-portal-kde-5.14.4-current_name.patch | 42 ++++++++++++++++++++++
 kde-plasma/xdg-desktop-portal-kde/metadata.xml     |  8 +++++
 .../xdg-desktop-portal-kde-5.14.4.ebuild           | 37 +++++++++++++++++++
 .../xdg-desktop-portal-kde-5.14.49.9999.ebuild     | 37 +++++++++++++++++++
 .../xdg-desktop-portal-kde-9999.ebuild             | 35 ++++++++++++++++++
 5 files changed, 159 insertions(+)

diff --git a/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch b/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch
new file mode 100644
index 0000000000..6525711fc0
--- /dev/null
+++ b/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch
@@ -0,0 +1,42 @@
+From ccea985840cf5b05b0359067854abc3da080e737 Mon Sep 17 00:00:00 2001
+From: Jan Grulich <jgrulich@redhat.com>
+Date: Thu, 13 Dec 2018 07:47:19 +0100
+Subject: FileChooser: make use of current_name property in Save dialog
+
+It's not used in Qt portal implementation, but gtk has API for that and sets it in Save dialog
+and we should try to call selectFile() with it to get pre-selected file for the dialog
+
+BUG: 402077
+---
+ src/filechooser.cpp | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/src/filechooser.cpp b/src/filechooser.cpp
+index 37e7744..19f4d42 100644
+--- a/src/filechooser.cpp
++++ b/src/filechooser.cpp
+@@ -249,11 +249,6 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle,
+     fileDialog->setModal(modalDialog);
+     fileDialog->setAcceptMode(QFileDialog::AcceptSave);
+ 
+-    // TODO: Looks Qt doesn't have API for this
+-    // if (!currentName.isEmpty()) {
+-    //    fileDialog->selectFile(currentName);
+-    // }
+-
+     if (!currentFolder.isEmpty()) {
+         fileDialog->setDirectoryUrl(QUrl(currentFolder));
+     }
+@@ -262,6 +257,10 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle,
+         fileDialog->selectFile(currentFile);
+     }
+ 
++    if (!currentName.isEmpty()) {
++        fileDialog->selectFile(currentName);
++    }
++
+     if (!acceptLabel.isEmpty()) {
+         fileDialog->setLabelText(QFileDialog::Accept, acceptLabel);
+     }
+-- 
+cgit v1.1

diff --git a/kde-plasma/xdg-desktop-portal-kde/metadata.xml b/kde-plasma/xdg-desktop-portal-kde/metadata.xml
new file mode 100644
index 0000000000..2fdbf33d96
--- /dev/null
+++ b/kde-plasma/xdg-desktop-portal-kde/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>kde@gentoo.org</email>
+		<name>Gentoo KDE Project</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild
new file mode 100644
index 0000000000..96f981adf4
--- /dev/null
+++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Qt Platform Theme integration plugins for the Plasma workspaces"
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# TODO: Needed for screencast portal
+# 	dev-libs/glib:2
+# 	media-libs/libepoxy
+# 	media-libs/mesa[gbm]
+# not packaged: PipeWire
+COMMON_DEPEND="
+	$(add_frameworks_dep kcoreaddons)
+	$(add_frameworks_dep ki18n)
+	$(add_frameworks_dep knotifications)
+	$(add_frameworks_dep kwidgetsaddons)
+	$(add_qt_dep qtdbus)
+	$(add_qt_dep qtgui)
+	$(add_qt_dep qtprintsupport)
+	$(add_qt_dep qtwidgets)
+"
+DEPEND="${COMMON_DEPEND}
+	$(add_frameworks_dep kwayland)
+	$(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+	x11-misc/xdg-desktop-portal
+"
+
+PATCHES=( "${FILESDIR}/${P}-current_name.patch" )

diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.49.9999.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.49.9999.ebuild
new file mode 100644
index 0000000000..0d475b3379
--- /dev/null
+++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.49.9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Qt Platform Theme integration plugins for the Plasma workspaces"
+LICENSE="LGPL-2+"
+KEYWORDS=""
+IUSE=""
+
+# TODO: Needed for screencast portal
+# 	dev-libs/glib:2
+# 	media-libs/libepoxy
+# 	media-libs/mesa[gbm]
+# not packaged: PipeWire
+COMMON_DEPEND="
+	$(add_frameworks_dep kcoreaddons)
+	$(add_frameworks_dep ki18n)
+	$(add_frameworks_dep knotifications)
+	$(add_frameworks_dep kwidgetsaddons)
+	$(add_qt_dep qtdbus)
+	$(add_qt_dep qtgui)
+	$(add_qt_dep qtprintsupport)
+	$(add_qt_dep qtwidgets)
+"
+DEPEND="${COMMON_DEPEND}
+	$(add_frameworks_dep kwayland)
+	$(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+	x11-misc/xdg-desktop-portal
+"
+
+PATCHES=( "${FILESDIR}/${P}-current_name.patch" )

diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-9999.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-9999.ebuild
new file mode 100644
index 0000000000..a3c1db4fed
--- /dev/null
+++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Backend implementation for xdg-desktop-portal that is using Qt/KDE Frameworks"
+LICENSE="LGPL-2+"
+KEYWORDS=""
+IUSE=""
+
+# TODO: Needed for screencast portal
+# 	dev-libs/glib:2
+# 	media-libs/libepoxy
+# 	media-libs/mesa[gbm]
+# not packaged: PipeWire
+COMMON_DEPEND="
+	$(add_frameworks_dep kcoreaddons)
+	$(add_frameworks_dep ki18n)
+	$(add_frameworks_dep knotifications)
+	$(add_frameworks_dep kwidgetsaddons)
+	$(add_qt_dep qtdbus)
+	$(add_qt_dep qtgui)
+	$(add_qt_dep qtprintsupport)
+	$(add_qt_dep qtwidgets)
+"
+DEPEND="${COMMON_DEPEND}
+	$(add_frameworks_dep kwayland)
+	$(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+	x11-misc/xdg-desktop-portal
+"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/kde:master commit in: kde-plasma/xdg-desktop-portal-kde/, kde-plasma/xdg-desktop-portal-kde/files/
@ 2019-01-08 19:18 Andreas Sturmlechner
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2019-01-08 19:18 UTC (permalink / raw
  To: gentoo-commits

commit:     02d3197af6b7100aead777388d915744f690da87
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  8 19:10:53 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jan  8 19:13:34 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=02d3197a

kde-plasma/xdg-desktop-portal-kde: 5.14.5 version bump

Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...dg-desktop-portal-kde-5.14.4-current_name.patch | 42 ----------------------
 ...ebuild => xdg-desktop-portal-kde-5.14.5.ebuild} |  4 +--
 2 files changed, 1 insertion(+), 45 deletions(-)

diff --git a/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch b/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch
deleted file mode 100644
index 6525711fc0..0000000000
--- a/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From ccea985840cf5b05b0359067854abc3da080e737 Mon Sep 17 00:00:00 2001
-From: Jan Grulich <jgrulich@redhat.com>
-Date: Thu, 13 Dec 2018 07:47:19 +0100
-Subject: FileChooser: make use of current_name property in Save dialog
-
-It's not used in Qt portal implementation, but gtk has API for that and sets it in Save dialog
-and we should try to call selectFile() with it to get pre-selected file for the dialog
-
-BUG: 402077
----
- src/filechooser.cpp | 9 ++++-----
- 1 file changed, 4 insertions(+), 5 deletions(-)
-
-diff --git a/src/filechooser.cpp b/src/filechooser.cpp
-index 37e7744..19f4d42 100644
---- a/src/filechooser.cpp
-+++ b/src/filechooser.cpp
-@@ -249,11 +249,6 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle,
-     fileDialog->setModal(modalDialog);
-     fileDialog->setAcceptMode(QFileDialog::AcceptSave);
- 
--    // TODO: Looks Qt doesn't have API for this
--    // if (!currentName.isEmpty()) {
--    //    fileDialog->selectFile(currentName);
--    // }
--
-     if (!currentFolder.isEmpty()) {
-         fileDialog->setDirectoryUrl(QUrl(currentFolder));
-     }
-@@ -262,6 +257,10 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle,
-         fileDialog->selectFile(currentFile);
-     }
- 
-+    if (!currentName.isEmpty()) {
-+        fileDialog->selectFile(currentName);
-+    }
-+
-     if (!acceptLabel.isEmpty()) {
-         fileDialog->setLabelText(QFileDialog::Accept, acceptLabel);
-     }
--- 
-cgit v1.1

diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.5.ebuild
similarity index 89%
rename from kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild
rename to kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.5.ebuild
index ed75658bd6..6dc08c6077 100644
--- a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild
+++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -33,5 +33,3 @@ DEPEND="${COMMON_DEPEND}
 RDEPEND="${COMMON_DEPEND}
 	x11-misc/xdg-desktop-portal
 "
-
-PATCHES=( "${FILESDIR}/${P}-current_name.patch" )


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-08 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-16 21:28 [gentoo-commits] proj/kde:master commit in: kde-plasma/xdg-desktop-portal-kde/, kde-plasma/xdg-desktop-portal-kde/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2019-01-08 19:18 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox