summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-08-22 20:29:35 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-08-22 22:11:06 +0200
commitddecde9f3b30de939ba08f64fd526fc5b31e1c39 (patch)
tree5c326d81543598f6a1f48191cbaadf012c3e12ba /kde-apps/kleopatra
parentkde-apps/kldap: 22.08.0 version bump (diff)
downloadgentoo-ddecde9f3b30de939ba08f64fd526fc5b31e1c39.tar.gz
gentoo-ddecde9f3b30de939ba08f64fd526fc5b31e1c39.tar.bz2
gentoo-ddecde9f3b30de939ba08f64fd526fc5b31e1c39.zip
kde-apps/kleopatra: 22.08.0 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/kleopatra')
-rw-r--r--kde-apps/kleopatra/Manifest1
-rw-r--r--kde-apps/kleopatra/files/kleopatra-22.08.0-fix-gpgme-1.18.0.patch62
-rw-r--r--kde-apps/kleopatra/kleopatra-22.08.0.ebuild71
-rw-r--r--kde-apps/kleopatra/metadata.xml3
4 files changed, 137 insertions, 0 deletions
diff --git a/kde-apps/kleopatra/Manifest b/kde-apps/kleopatra/Manifest
index 344d9eaedeb4..da9ebd2784c4 100644
--- a/kde-apps/kleopatra/Manifest
+++ b/kde-apps/kleopatra/Manifest
@@ -1 +1,2 @@
DIST kleopatra-22.04.3.tar.xz 2260100 BLAKE2B 8c276efed94439ae169ce417b0a17324a977c7266ab9566b86bc0ce7597929b70eed0231ed301fd19d8595b25390a63696837974eaed45371933d49d852e825d SHA512 caa9f3ecf24b7a7c0a3ab018451f555b8688d2aa0a58103a84b6c0c9e1804847f22919f90d77e1c159ec221a3bebd915ac4ae17a7e79b0ef2ca78b1779fe7d40
+DIST kleopatra-22.08.0.tar.xz 2377296 BLAKE2B 769099c685f2e819233fd163ad0e586eea8388e6f789ad12cc99d9406d260453974e7fa4fdf9d19b17d8ffae6359613afda6425b35acfe8c189721165089fb89 SHA512 a529fc8d370aef548ce30ee125e25ad61aa698ecdfaa874bf475385a171c271c5337cf3dbba4b2292dd6fdb13ae6f9936f08ec9de8efa5ac130ae064b23436ff
diff --git a/kde-apps/kleopatra/files/kleopatra-22.08.0-fix-gpgme-1.18.0.patch b/kde-apps/kleopatra/files/kleopatra-22.08.0-fix-gpgme-1.18.0.patch
new file mode 100644
index 000000000000..bc9dadbcd342
--- /dev/null
+++ b/kde-apps/kleopatra/files/kleopatra-22.08.0-fix-gpgme-1.18.0.patch
@@ -0,0 +1,62 @@
+https://invent.kde.org/pim/kleopatra/-/commit/a3684049dd4f0d2d47dcc6605ff31ce753254ef9
+https://bugs.gentoo.org/865903
+https://bugs.kde.org/show_bug.cgi?id=458044
+
+From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= <dev@ingo-kloecker.de>
+Date: Fri, 19 Aug 2022 13:43:41 +0200
+Subject: [PATCH] Use ReceiveKeysJob for refreshing OpenPGP keys
+
+This refreshes the OpenPGP key from the configured key server.
+
+GnuPG-bug-id: 5903
+
+CHANGELOG: Fix building against QGpgME 1.18.0
+BUG: 458044
+FIXED-IN: 22.08.1
+
+(cherry picked from commit 87d8b00d4b2286489d5fadc9cfa07f1d721cdfe3)
+--- a/src/commands/refreshcertificatecommand.cpp
++++ b/src/commands/refreshcertificatecommand.cpp
+@@ -19,7 +19,7 @@
+ #include <QGpgME/Protocol>
+ #ifdef QGPGME_SUPPORTS_KEY_REFRESH
+ #include <QGpgME/RefreshKeysJob>
+-#include <QGpgME/RefreshOpenPGPKeysJob>
++#include <QGpgME/ReceiveKeysJob>
+ #endif
+
+ #include <gpgme++/importresult.h>
+@@ -44,7 +44,7 @@ public:
+ void cancel();
+
+ #ifdef QGPGME_SUPPORTS_KEY_REFRESH
+- std::unique_ptr<QGpgME::RefreshOpenPGPKeysJob> startOpenPGPJob();
++ std::unique_ptr<QGpgME::ReceiveKeysJob> startOpenPGPJob();
+ std::unique_ptr<QGpgME::RefreshKeysJob> startSMIMEJob();
+ #endif
+ void onOpenPGPJobResult(const ImportResult &result);
+@@ -136,19 +136,19 @@ void RefreshCertificateCommand::Private::cancel()
+ }
+
+ #ifdef QGPGME_SUPPORTS_KEY_REFRESH
+-std::unique_ptr<QGpgME::RefreshOpenPGPKeysJob> RefreshCertificateCommand::Private::startOpenPGPJob()
++std::unique_ptr<QGpgME::ReceiveKeysJob> RefreshCertificateCommand::Private::startOpenPGPJob()
+ {
+- std::unique_ptr<QGpgME::RefreshOpenPGPKeysJob> refreshJob{QGpgME::openpgp()->refreshOpenPGPKeysJob()};
++ std::unique_ptr<QGpgME::ReceiveKeysJob> refreshJob{QGpgME::openpgp()->receiveKeysJob()};
+ Q_ASSERT(refreshJob);
+
+- connect(refreshJob.get(), &QGpgME::RefreshOpenPGPKeysJob::result,
++ connect(refreshJob.get(), &QGpgME::ReceiveKeysJob::result,
+ q, [this](const GpgME::ImportResult &result) {
+ onOpenPGPJobResult(result);
+ });
+ connect(refreshJob.get(), &QGpgME::Job::progress,
+ q, &Command::progress);
+
+- const GpgME::Error err = refreshJob->start({key});
++ const GpgME::Error err = refreshJob->start({QString::fromLatin1(key.primaryFingerprint())});
+ if (err) {
+ showError(err);
+ return {};
+GitLab
diff --git a/kde-apps/kleopatra/kleopatra-22.08.0.ebuild b/kde-apps/kleopatra/kleopatra-22.08.0.ebuild
new file mode 100644
index 000000000000..6846e3672eab
--- /dev/null
+++ b/kde-apps/kleopatra/kleopatra-22.08.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.96.0
+QTMIN=5.15.5
+VIRTUALX_REQUIRED="test"
+inherit ecm gear.kde.org
+
+DESCRIPTION="Certificate manager and GUI for OpenPGP and CMS cryptography"
+HOMEPAGE="https://apps.kde.org/kleopatra/"
+
+LICENSE="GPL-2+ handbook? ( FDL-1.2+ )"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="pim"
+
+# tests completely broken, bug #641720
+RESTRICT="test"
+
+DEPEND="
+ >=app-crypt/gpgme-1.16.0:=[cxx,qt5]
+ dev-libs/libassuan
+ dev-libs/libgpg-error
+ >=dev-qt/qtdbus-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qtprintsupport-${QTMIN}:5
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=kde-apps/kmime-${PVCUT}:5
+ >=kde-apps/libkleo-${PVCUT}:5
+ >=kde-frameworks/kcmutils-${KFMIN}:5
+ >=kde-frameworks/kcodecs-${KFMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-frameworks/kiconthemes-${KFMIN}:5
+ >=kde-frameworks/kitemmodels-${KFMIN}:5
+ >=kde-frameworks/knotifications-${KFMIN}:5
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5
+ >=kde-frameworks/kxmlgui-${KFMIN}:5
+ pim? (
+ >=kde-apps/kidentitymanagement-${PVCUT}:5
+ >=kde-apps/kmailtransport-${PVCUT}:5
+ )
+"
+RDEPEND="${DEPEND}
+ >=app-crypt/gnupg-2.1
+ app-crypt/paperkey
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-gpgme-1.18.0.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package pim KF5IdentityManagement)
+ $(cmake_use_find_package pim KF5MailTransport)
+ $(cmake_use_find_package pim KF5MailTransportAkonadi)
+ )
+ ecm_src_configure
+}
diff --git a/kde-apps/kleopatra/metadata.xml b/kde-apps/kleopatra/metadata.xml
index d925f2439758..ce52d61e3966 100644
--- a/kde-apps/kleopatra/metadata.xml
+++ b/kde-apps/kleopatra/metadata.xml
@@ -8,4 +8,7 @@
<upstream>
<bugs-to>https://bugs.kde.org/</bugs-to>
</upstream>
+ <use>
+ <flag name="pim">Enable WKS publishing support using <pkg>kde-apps/kmail</pkg></flag>
+ </use>
</pkgmetadata>