diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-12-16 20:59:44 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-12-16 22:24:13 +0100 |
| commit | ee9680c07141bc535f300bf5320cba62cbf806c6 (patch) | |
| tree | 2c98eff94e6611ef7b8d2b03016b15aef6d3630d | |
| parent | da83d3b1c740e1defa65a70c870ca6d550ad20b0 (diff) | |
| download | kde-ee9680c07141bc535f300bf5320cba62cbf806c6.tar.gz kde-ee9680c07141bc535f300bf5320cba62cbf806c6.tar.bz2 kde-ee9680c07141bc535f300bf5320cba62cbf806c6.zip | |
kde-plasma/xdg-desktop-portal-kde: New package
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
6 files changed, 160 insertions, 0 deletions
diff --git a/kde-plasma/xdg-desktop-portal-kde/Manifest b/kde-plasma/xdg-desktop-portal-kde/Manifest new file mode 100644 index 00000000000..ef9d38187c1 --- /dev/null +++ b/kde-plasma/xdg-desktop-portal-kde/Manifest @@ -0,0 +1 @@ +DIST xdg-desktop-portal-kde-5.14.4.tar.xz 51492 BLAKE2B 49c2fd8d42783d18956b3a58eb5ba7515ea06ed7cda10411483fd87f24b502864df984366cdbe322df792c555bfe446582f7e716482bb02b24ee53554a580030 SHA512 4a521b8c6a7c20665df911da85d60da7b380db14d6755d0c6908617916b54641d8c55db088f7b349cb7f6d247fd6c2f97b30abf6655492267e072100773e733f 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 00000000000..6525711fc0f --- /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 00000000000..2fdbf33d963 --- /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 00000000000..96f981adf42 --- /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 00000000000..0d475b33796 --- /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 00000000000..a3c1db4fedf --- /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 +" |
