mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-text/marknote: add 1.4.0, add kde-apps/kmime:6= slot op
Patch to fix build w/ pre-kde-apps/kmime-26.04 See also: https://invent.kde.org/office/marknote/-/merge_requests/93 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST marknote-1.3.0.tar.xz 138608 BLAKE2B 39c92c7bc563e29f3cbd61e765fb80f7ea3577cce87d23cdb5967dd41baa26c34c6a42710f636645d85e51bb9a31e9b5f040d311b72f9a9783ec4e1b586ce08d SHA512 030206a63c2d0a36519c7df879fee8d52125e85cab491e4c34cc62edabddc8f7b8d200c60e3d0da73e0367f0001fa695c3a773392bc82cabc27c6d47efdfddeb
|
||||
DIST marknote-1.4.0.tar.xz 156084 BLAKE2B abe2c714c9779cbd902b2775a2134fab996fb3802af08cfc18a1f35fd009f09a8af5348e40cf5645f984232afebe322128535ff3ed55777435a0eaa247ed7a41 SHA512 688c60be526ec5a522526c3debf9de8f909515e0ae433939a9191b778e522356c03f3b0b1921c5b20dc15cb94ce147f9f72f0c930fa3ac299e566cc89162148b
|
||||
|
||||
28
app-text/marknote/files/marknote-1.4.0-kmime-pre-26.04.patch
Normal file
28
app-text/marknote/files/marknote-1.4.0-kmime-pre-26.04.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
From 3390feb63569bb37dd38f78adf2de470000cb6c8 Mon Sep 17 00:00:00 2001
|
||||
From: Carl Schwan <carlschwan@kde.org>
|
||||
Date: Wed, 21 Jan 2026 10:18:34 +0100
|
||||
Subject: [PATCH] Fix build with older kmime version
|
||||
|
||||
---
|
||||
src/maildirimport.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/maildirimport.cpp b/src/maildirimport.cpp
|
||||
index efdbf86b..aa60fee5 100644
|
||||
--- a/src/maildirimport.cpp
|
||||
+++ b/src/maildirimport.cpp
|
||||
@@ -83,7 +83,11 @@ void MaildirImport::import(const QUrl &maildir, const QUrl &destinationDir)
|
||||
msg->setContent(mailData);
|
||||
msg->parse();
|
||||
|
||||
+#if KMIME_VERSION >= QT_VERSION_CHECK(6, 6, 44)
|
||||
const auto subject = msg->subject(KMime::CreatePolicy::Create)->asUnicodeString();
|
||||
+#else
|
||||
+ const auto subject = msg->subject(true)->asUnicodeString();
|
||||
+#endif
|
||||
const auto content = msg->decodedBody();
|
||||
|
||||
QFile markdownFile(destinationDir.toLocalFile() + u'/' + cleanFileName(subject) + u".md"_s);
|
||||
--
|
||||
GitLab
|
||||
|
||||
42
app-text/marknote/marknote-1.4.0.ebuild
Normal file
42
app-text/marknote/marknote-1.4.0.ebuild
Normal file
@@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_TEST="true"
|
||||
KFMIN=6.19.0
|
||||
QTMIN=6.9.1
|
||||
inherit ecm kde.org xdg
|
||||
|
||||
DESCRIPTION="Markdown editor with a wide range of formating options for everyday notes"
|
||||
HOMEPAGE="https://apps.kde.org/marknote/"
|
||||
|
||||
if [[ ${KDE_BUILD_TYPE} != live ]]; then
|
||||
SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
# TODO: md4c not packaged
|
||||
DEPEND="
|
||||
>=dev-libs/kirigami-addons-1.7.0:6
|
||||
>=dev-qt/qtbase-${QTMIN}:6[gui,widgets]
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:6
|
||||
>=dev-qt/qtsvg-${QTMIN}:6
|
||||
kde-apps/kmime:6=
|
||||
>=kde-frameworks/breeze-icons-${KFMIN}:6
|
||||
>=kde-frameworks/kconfig-${KFMIN}:6
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:6
|
||||
>=kde-frameworks/kcolorscheme-${KFMIN}:6
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:6
|
||||
>=kde-frameworks/kcrash-${KFMIN}:6
|
||||
>=kde-frameworks/ki18n-${KFMIN}:6
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:6
|
||||
>=kde-frameworks/kirigami-${KFMIN}:6
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:6
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-kmime-pre-26.04.patch" )
|
||||
Reference in New Issue
Block a user