commit: 5d1a9b44858c0055af8ff3b66526dafc9731dea2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Tue Jan 20 22:59:03 2026 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Wed Jan 21 18:47:47 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d1a9b44
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 <AT> gentoo.org> app-text/marknote/Manifest | 1 + .../files/marknote-1.4.0-kmime-pre-26.04.patch | 28 +++++++++++++++ app-text/marknote/marknote-1.4.0.ebuild | 42 ++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/app-text/marknote/Manifest b/app-text/marknote/Manifest index f2007e155267..813cc874ec95 100644 --- a/app-text/marknote/Manifest +++ b/app-text/marknote/Manifest @@ -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 diff --git a/app-text/marknote/files/marknote-1.4.0-kmime-pre-26.04.patch b/app-text/marknote/files/marknote-1.4.0-kmime-pre-26.04.patch new file mode 100644 index 000000000000..a9be869451ac --- /dev/null +++ b/app-text/marknote/files/marknote-1.4.0-kmime-pre-26.04.patch @@ -0,0 +1,28 @@ +From 3390feb63569bb37dd38f78adf2de470000cb6c8 Mon Sep 17 00:00:00 2001 +From: Carl Schwan <[email protected]> +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 + diff --git a/app-text/marknote/marknote-1.4.0.ebuild b/app-text/marknote/marknote-1.4.0.ebuild new file mode 100644 index 000000000000..e54d235d8b2c --- /dev/null +++ b/app-text/marknote/marknote-1.4.0.ebuild @@ -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" )
