public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/, app-editors/ghostwriter/files/
@ 2020-03-11 22:05 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2020-03-11 22:05 UTC (permalink / raw
  To: gentoo-commits

commit:     faf76fb9991c7dcc516b3c10292063a0af843898
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Thu Mar  5 20:56:06 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 11 22:03:40 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faf76fb9

app-editors/ghostwriter: verbump to 1.8.1

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14859
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-editors/ghostwriter/Manifest                   |  1 +
 .../files/ghostwriter-1.8.1-appdata-path.patch     | 27 ++++++++++
 app-editors/ghostwriter/ghostwriter-1.8.1.ebuild   | 60 ++++++++++++++++++++++
 3 files changed, 88 insertions(+)

diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest
index 39d80b85ecf..6e6955ec820 100644
--- a/app-editors/ghostwriter/Manifest
+++ b/app-editors/ghostwriter/Manifest
@@ -1 +1,2 @@
 DIST ghostwriter-1.8.0.tar.gz 1195999 BLAKE2B d751e570aed94bcf0806ca20d82b0ac2b465649caf31f01b761f0370a4f1b04ac8f948213b15c05a71541b8068ef21dfb2105b5fc91d5637e498e2d4c8f6bf9a SHA512 aff500d9221f28f6a06a93bf0b5ddb590792b22bc551749b790f52751cd7f2e27ea59778927c2f117320cb1791b45d51d8efdf479f0894319755afb1a509f7bd
+DIST ghostwriter-1.8.1.tar.gz 1220000 BLAKE2B 3fa3d95ed819bc8f7b76b396e6634658a8bda23e9100cbb298d301fc382db451430a4a31fbd092326af198825c83d2c998172c90a7e318aeb57ef7799751995a SHA512 9f60f81a594cf161edfeac8c75830e186ab4ec2c22859b2bad40768e1ecf64e6842b52a69024a1f014d24a2f1cbb38e15a7799101d7fd54ef7709e245f6ac521

diff --git a/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch b/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch
new file mode 100644
index 00000000000..514ab6262e5
--- /dev/null
+++ b/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch
@@ -0,0 +1,27 @@
+From 5e63fa9cb6d4020413db071ed68aa85f3e79fd9e Mon Sep 17 00:00:00 2001
+From: David Roman <davidroman96@gmail.com>
+Date: Mon, 9 Mar 2020 21:42:58 +0100
+Subject: [PATCH] update appdata path
+
+The previous location is deprecated
+see https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
+---
+ ghostwriter.pro | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ghostwriter.pro b/ghostwriter.pro
+index d399fb5..7f5f22c 100644
+--- a/ghostwriter.pro
++++ b/ghostwriter.pro
+@@ -264,7 +264,7 @@ macx {
+     desktop.path = $$DATADIR/applications/
+ 
+     appdata.files = resources/linux/ghostwriter.appdata.xml
+-    appdata.path = $$DATADIR/appdata/
++    appdata.path = $$DATADIR/metainfo/
+ 
+     man.files = resources/linux/ghostwriter.1
+     man.path = $$PREFIX/share/man/man1
+-- 
+2.25.1
+

diff --git a/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild b/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild
new file mode 100644
index 00000000000..0cad3683483
--- /dev/null
+++ b/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils xdg-utils
+
+DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
+HOMEPAGE="https://wereturtle.github.io/ghostwriter/"
+SRC_URI="https://github.com/wereturtle/ghostwriter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+BDEPEND="dev-qt/linguist-tools:5"
+
+RDEPEND="
+	app-text/hunspell
+	dev-qt/qtconcurrent:5
+	dev-qt/qtcore:5
+	dev-qt/qtgui:5
+	dev-qt/qtsvg:5
+	dev-qt/qtwebchannel:5
+	dev-qt/qtwebengine:5[widgets]
+	dev-qt/qtwidgets:5
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CREDITS.md README.md )
+
+PATCHES=( "${FILESDIR}/${P}-appdata-path.patch" )
+
+src_prepare() {
+	default
+
+	sed -i -e "/^VERSION =/s/\$.*/${PV}/" ghostwriter.pro || die "failed to override version"
+}
+
+src_configure() {
+	eqmake5 \
+		CONFIG+=$(usex debug debug release) \
+		PREFIX="${EPREFIX}"/usr
+}
+
+src_install() {
+	emake INSTALL_ROOT="${D}" install
+	einstalldocs
+}
+
+pkg_postinst() {
+	xdg_desktop_database_update
+	xdg_icon_cache_update
+}
+
+pkg_postrm() {
+	xdg_desktop_database_update
+	xdg_icon_cache_update
+}


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

* [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/, app-editors/ghostwriter/files/
@ 2023-12-19 20:45 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2023-12-19 20:45 UTC (permalink / raw
  To: gentoo-commits

commit:     d6ef43ba170372f4122b89fa078a9d7d3464ef2d
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 19 19:55:11 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Dec 19 20:44:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ef43ba

app-editors/ghostwriter: drop 23.04.3

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-editors/ghostwriter/Manifest                   |  1 -
 .../files/ghostwriter-23.0.4-stdint.patch          | 27 -------------
 app-editors/ghostwriter/ghostwriter-23.04.3.ebuild | 45 ----------------------
 3 files changed, 73 deletions(-)

diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest
index e9eb39392ce6..603978c49e6b 100644
--- a/app-editors/ghostwriter/Manifest
+++ b/app-editors/ghostwriter/Manifest
@@ -1,3 +1,2 @@
-DIST ghostwriter-23.04.3.tar.xz 3074336 BLAKE2B 89314147c3222d0e83d26cedb81e6bf917e4f4e3d95650ba1d3096f06491343046dd5684d13014002a5249ec26af43cb050457c6f5d7c241b352a605b529b5af SHA512 d14e8c9928ec0638b98ca152d35ae88a7a4a582d4268e8f251252f080e4490b5c9433a814e6306acf7856c6a253f6e7aa9ed326328f90e0da8ef1214ef5a432c
 DIST ghostwriter-23.08.3.tar.xz 3626304 BLAKE2B 558b63152817d90443fcc78c9a5ac609643cd7a5b9c595ddbcccdb05bcb38af4c300974b852a9bf7b002aaf67ee84df0dddc357bc3b4cf558b0dc5a55876ae66 SHA512 b8281bc286132997ae6aeba95a6382546d556d6b5c6385d08c4660b385264cc60040efd3a71865166aee55ab5c979b2b80e72423b523400141dd74c4ba256ae3
 DIST ghostwriter-23.08.4.tar.xz 3626652 BLAKE2B 7c02c04cee3a499135e96add0bb128c2b7b368a73e39a9b55225b2f252240e0e0c1c052ac6bf8539d85dee7552e092af6886297a7ead8f6c671dbb80c9eafb9e SHA512 217d512d338a4beb8c56c6c7c6e7d48fe1d06da8d6845700e92373c37450082ffe310281aeaeff78050e2cc89a59d46cf439e1e54e83a82c0b510f9e2c8533e8

diff --git a/app-editors/ghostwriter/files/ghostwriter-23.0.4-stdint.patch b/app-editors/ghostwriter/files/ghostwriter-23.0.4-stdint.patch
deleted file mode 100644
index 5fa58933843c..000000000000
--- a/app-editors/ghostwriter/files/ghostwriter-23.0.4-stdint.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-https://github.com/KDE/ghostwriter/commit/b76b14a00069a2d544b615ad6dc8f9cbdc678982
-
-From b76b14a00069a2d544b615ad6dc8f9cbdc678982 Mon Sep 17 00:00:00 2001
-From: Pino Toscano <pino@kde.org>
-Date: Wed, 26 Jul 2023 04:19:19 +0200
-Subject: [PATCH] Include <cstdint> where needed
-
-Include it where std::uint32_t is explicitly used.
-
-(cherry picked from commit 9e1a2ba2e01c7172a04e41b5d487461aa73c87d6)
----
- src/markdownnode.cpp | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/markdownnode.cpp b/src/markdownnode.cpp
-index dce179d4a..f7a4eab49 100644
---- a/src/markdownnode.cpp
-+++ b/src/markdownnode.cpp
-@@ -4,6 +4,8 @@
-  * SPDX-License-Identifier: GPL-3.0-or-later
-  */
- 
-+#include <cstdint>
-+
- #include "../3rdparty/cmark-gfm/src/cmark-gfm.h"
- #include "../3rdparty/cmark-gfm/extensions/cmark-gfm-core-extensions.h"
- 

diff --git a/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild b/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild
deleted file mode 100644
index 1df0d10ec5eb..000000000000
--- a/app-editors/ghostwriter/ghostwriter-23.04.3.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-KDE_ORG_CATEGORY="office"
-ECM_HANDBOOK="optional"
-KFMIN=5.106.0
-QTMIN=5.15.9
-inherit ecm gear.kde.org
-
-DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
-HOMEPAGE="https://ghostwriter.kde.org/"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 arm64 ~ppc64 ~x86"
-IUSE=""
-
-RDEPEND="
-	app-text/hunspell:=
-	>=dev-qt/qtgui-${QTMIN}:5
-	>=dev-qt/qtsvg-${QTMIN}:5
-	>=dev-qt/qtwebchannel-${QTMIN}:5
-	>=dev-qt/qtwebengine-${QTMIN}:5[widgets]
-	>=dev-qt/qtwidgets-${QTMIN}:5
-	>=kde-frameworks/kcoreaddons-${KFMIN}:5
-	>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
-	>=kde-frameworks/kxmlgui-${KFMIN}:5
-	>=kde-frameworks/sonnet-${KFMIN}:5
-	virtual/opengl
-"
-DEPEND="${RDEPEND}
-	>=dev-qt/qtconcurrent-${QTMIN}:5
-"
-BDEPEND="
-	>=dev-qt/linguist-tools-${QTMIN}:5
-	virtual/pkgconfig
-"
-
-DOCS=( CHANGELOG.md README.md )
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-23.0.4-stdint.patch
-)


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

* [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/, app-editors/ghostwriter/files/
@ 2024-08-10 10:53 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2024-08-10 10:53 UTC (permalink / raw
  To: gentoo-commits

commit:     787399009fbf9165ddf0963d35dca75731dac5e1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 10 10:51:16 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Aug 10 10:53:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78739900

app-editors/ghostwriter: Drop bogus dependency

Closes: https://bugs.gentoo.org/936578
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/ghostwriter-24.05.2-bogusdep.patch       | 41 ++++++++++++++++++++++
 app-editors/ghostwriter/ghostwriter-24.05.2.ebuild |  2 ++
 2 files changed, 43 insertions(+)

diff --git a/app-editors/ghostwriter/files/ghostwriter-24.05.2-bogusdep.patch b/app-editors/ghostwriter/files/ghostwriter-24.05.2-bogusdep.patch
new file mode 100644
index 000000000000..2076ccb24d87
--- /dev/null
+++ b/app-editors/ghostwriter/files/ghostwriter-24.05.2-bogusdep.patch
@@ -0,0 +1,41 @@
+From 6d680805c08d131ea3a98c4d3fe87d51a92f2ffa Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Sat, 10 Aug 2024 12:41:33 +0200
+Subject: [PATCH] Drop unused Qt5Compat dependency
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ src/CMakeLists.txt | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 33ce58f..da55382 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -90,10 +90,6 @@ find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS
+     WebEngineWidgets
+ )
+ 
+-if (QT_MAJOR_VERSION STREQUAL "6")
+-    find_package(Qt6 REQUIRED COMPONENTS Core5Compat)
+-endif()
+-
+ find_package(
+     KF${KF_MAJOR_VERSION} ${KF_MIN_VERSION}
+     REQUIRED
+@@ -135,12 +131,6 @@ target_link_libraries(ghostwriter PRIVATE
+     ${CMARK_LIBS}
+ )
+ 
+-if (QT_MAJOR_VERSION STREQUAL "6")
+-    target_link_libraries(ghostwriter PRIVATE
+-        Qt::Core5Compat
+-    )
+-endif()
+-
+ set_target_properties(ghostwriter PROPERTIES
+     WIN32_EXECUTABLE ON
+     MACOSX_BUNDLE ON
+-- 
+2.45.2
+

diff --git a/app-editors/ghostwriter/ghostwriter-24.05.2.ebuild b/app-editors/ghostwriter/ghostwriter-24.05.2.ebuild
index fa7b4c9c4634..91ae6c82c01c 100644
--- a/app-editors/ghostwriter/ghostwriter-24.05.2.ebuild
+++ b/app-editors/ghostwriter/ghostwriter-24.05.2.ebuild
@@ -38,3 +38,5 @@ BDEPEND="
 "
 
 DOCS=( CHANGELOG.md README.md )
+
+PATCHES=( "${FILESDIR}/${P}-bogusdep.patch" ) # in 24.08, bug 936578


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

* [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/, app-editors/ghostwriter/files/
@ 2024-11-06 19:52 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2024-11-06 19:52 UTC (permalink / raw
  To: gentoo-commits

commit:     dd1d07066b493b813c2005138328f78f2194532c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  6 19:46:03 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Nov  6 19:51:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd1d0706

app-editors/ghostwriter: Fix segfaults

See also: https://invent.kde.org/office/ghostwriter/-/merge_requests/46
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=465799

Closes: https://bugs.gentoo.org/942928
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/ghostwriter-24.08.2-fix-segfault.patch   | 175 +++++++++++++++++++++
 .../ghostwriter/ghostwriter-24.08.2-r1.ebuild      |  44 ++++++
 2 files changed, 219 insertions(+)

diff --git a/app-editors/ghostwriter/files/ghostwriter-24.08.2-fix-segfault.patch b/app-editors/ghostwriter/files/ghostwriter-24.08.2-fix-segfault.patch
new file mode 100644
index 000000000000..5466e47a319e
--- /dev/null
+++ b/app-editors/ghostwriter/files/ghostwriter-24.08.2-fix-segfault.patch
@@ -0,0 +1,175 @@
+From bfca43e551729b9518772fed6fba19bb5dbe6646 Mon Sep 17 00:00:00 2001
+From: Megan Conkle <megan.conkle@kdemail.net>
+Date: Sat, 12 Oct 2024 23:34:27 -0700
+Subject: [PATCH] Fix segmentation fault when .conf file is missing
+
+Whenever ghostwriter.conf is missing (or the last used exporter within
+is empty), the app will crash with a segmentation fault due to accessing
+an uninitialed pointer to the current HTML exporter in appsettings.cpp.
+This commit ensures that the pointer is initialized to null before being
+checked for whether obtaining an exporter was successful.
+BUG: 465799
+
+(cherry picked from commit f82070ac7916b36bb0bfd84a5c0e96cb084a6e28)
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ CHANGELOG.md                 |  8 ++++++++
+ src/preview/htmlpreview.cpp  | 24 ++++++++++++------------
+ src/settings/appsettings.cpp | 18 ++++++++++++------
+ 3 files changed, 32 insertions(+), 18 deletions(-)
+
+diff --git a/CHANGELOG.md b/CHANGELOG.md
+index 6f34002f..89017211 100644
+--- a/CHANGELOG.md
++++ b/CHANGELOG.md
+@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
+ 
+ ## [Unreleased]
+ 
++## [24.08.3]
++
++### Fixed
++
++* Issue #465799: Segmentation fault no longer occurs when .conf file is missing on first launch.
++
++## [24.08.0]
++
+ ### Added
+ 
+ * Added more icons to menu actions.
+diff --git a/src/preview/htmlpreview.cpp b/src/preview/htmlpreview.cpp
+index db89dd29..5a600769 100644
+--- a/src/preview/htmlpreview.cpp
++++ b/src/preview/htmlpreview.cpp
+@@ -1,5 +1,5 @@
+-/*
+- * SPDX-FileCopyrightText: 2014-2023 Megan Conkle <megan.conkle@kdemail.net>
++/*
++ * SPDX-FileCopyrightText: 2014-2024 Megan Conkle <megan.conkle@kdemail.net>
+  *
+  * SPDX-License-Identifier: GPL-3.0-or-later
+  */
+@@ -38,7 +38,7 @@ public:
+     HtmlPreviewPrivate(HtmlPreview *q_ptr)
+         : q_ptr(q_ptr)
+     {
+-        ;
++        proxy = new PreviewProxy(q_ptr);
+     }
+ 
+     ~HtmlPreviewPrivate()
+@@ -51,7 +51,7 @@ public:
+     MarkdownDocument *document;
+     bool updateInProgress;
+     bool updateAgain;
+-    PreviewProxy proxy;
++    PreviewProxy *proxy;
+     QString baseUrl;
+     QRegularExpression headingTagExp;
+     Exporter *exporter;
+@@ -91,7 +91,7 @@ HtmlPreview::HtmlPreview
+     d->updateInProgress = false;
+     d->updateAgain = false;
+     d->exporter = exporter;
+-    d->proxy.setMathEnabled(d->exporter->supportsMath());
++    d->proxy->setMathEnabled(d->exporter->supportsMath());
+ 
+     d->baseUrl = "";
+ 
+@@ -153,7 +153,7 @@ HtmlPreview::HtmlPreview
+     this->setZoomFactor((horizontalDpi / 96.0));
+ 
+     QWebChannel *channel = new QWebChannel(this);
+-    channel->registerObject(QStringLiteral("previewProxy"), &d->proxy);
++    channel->registerObject(QStringLiteral("previewProxy"), d->proxy);
+     this->page()->setWebChannel(channel);
+ 
+     QFile wrapperHtmlFile(":/resources/preview.html");
+@@ -240,22 +240,22 @@ void HtmlPreview::setHtmlExporter(Exporter *exporter)
+     
+     d->exporter = exporter;
+     d->setHtmlContent("");
+-    d->proxy.setMathEnabled(d->exporter->supportsMath());
++    d->proxy->setMathEnabled(d->exporter->supportsMath());
+     updatePreview();
+ }
+ 
+ void HtmlPreview::setStyleSheet(const QString &css)
+ {
+     Q_D(HtmlPreview);
+-    
+-    d->proxy.setStyleSheet(css);
++
++    d->proxy->setStyleSheet(css);
+ }
+ 
+ void HtmlPreview::setMathEnabled(bool enabled)
+ {
+     Q_D(HtmlPreview);
+-    
+-    d->proxy.setMathEnabled(enabled);
++
++    d->proxy->setMathEnabled(enabled);
+ }
+ 
+ void HtmlPreviewPrivate::onHtmlReady()
+@@ -312,7 +312,7 @@ void HtmlPreview::closeEvent(QCloseEvent *event)
+ 
+ void HtmlPreviewPrivate::setHtmlContent(const QString &html)
+ {
+-    this->proxy.setHtmlContent(html);
++    this->proxy->setHtmlContent(html);
+ }
+ 
+ QString HtmlPreviewPrivate::exportToHtml
+diff --git a/src/settings/appsettings.cpp b/src/settings/appsettings.cpp
+index a76c25a5..7d51ac5d 100644
+--- a/src/settings/appsettings.cpp
++++ b/src/settings/appsettings.cpp
+@@ -65,6 +65,7 @@ public:
+     static AppSettings *instance;
+ 
+     AppSettingsPrivate()
++        : currentHtmlExporter(nullptr)
+     {
+         ;
+     }
+@@ -677,6 +678,7 @@ void AppSettings::setShowUnbreakableSpaceEnabled(bool enabled)
+     d->showUnbreakableSpaceEnabled = enabled;
+     emit showUnbreakableSpaceEnabledChanged(d->showUnbreakableSpaceEnabled);
+ }
++
+ AppSettings::AppSettings()
+     : d_ptr(new AppSettingsPrivate())
+ {
+@@ -843,17 +845,21 @@ AppSettings::AppSettings()
+ 
+     QString exporterName = appSettings.value(constants::GW_LAST_USED_EXPORTER_KEY).toString();
+ 
++    d->currentHtmlExporter = nullptr;
++
+     if (!exporterName.isEmpty()) {
+         d->currentHtmlExporter = ExporterFactory::instance()->exporterByName(exporterName);
+-    }
+ 
+-    if (d->currentHtmlExporter) {
+-        auto lastExportOptions = appSettings.value(constants::GW_LAST_USED_EXPORTER_PARAMS_KEY).toString();
++        if (d->currentHtmlExporter) {
++            auto lastExportOptions = appSettings.value(constants::GW_LAST_USED_EXPORTER_PARAMS_KEY).toString();
+ 
+-        if (!lastExportOptions.isEmpty()) {
+-            d->currentHtmlExporter->setOptions(lastExportOptions);
++            if (!lastExportOptions.isEmpty()) {
++                d->currentHtmlExporter->setOptions(lastExportOptions);
++            }
+         }
+-    } else {
++    }
++
++    if (!d->currentHtmlExporter) {
+         d->currentHtmlExporter = ExporterFactory::instance()->htmlExporters().first();
+     }
+ }
+-- 
+GitLab
+

diff --git a/app-editors/ghostwriter/ghostwriter-24.08.2-r1.ebuild b/app-editors/ghostwriter/ghostwriter-24.08.2-r1.ebuild
new file mode 100644
index 000000000000..85e2aa731416
--- /dev/null
+++ b/app-editors/ghostwriter/ghostwriter-24.08.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KDE_ORG_CATEGORY="office"
+ECM_HANDBOOK="optional"
+KFMIN=6.5.0
+QTMIN=6.7.2
+inherit ecm gear.kde.org
+
+DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
+HOMEPAGE="https://ghostwriter.kde.org/"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE=""
+
+RDEPEND="
+	app-text/hunspell:=
+	>=dev-qt/qtbase-${QTMIN}:6[gui,widgets]
+	>=dev-qt/qtsvg-${QTMIN}:6
+	>=dev-qt/qtwebchannel-${QTMIN}:6
+	>=dev-qt/qtwebengine-${QTMIN}:6
+	>=kde-frameworks/kcoreaddons-${KFMIN}:6
+	>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+	>=kde-frameworks/kxmlgui-${KFMIN}:6
+	>=kde-frameworks/sonnet-${KFMIN}:6
+	virtual/opengl
+"
+DEPEND="${RDEPEND}
+	>=dev-qt/qtbase-${QTMIN}:6[concurrent]
+"
+BDEPEND="
+	>=dev-qt/qttools-${QTMIN}:6[linguist]
+	virtual/pkgconfig
+"
+
+DOCS=( CHANGELOG.md README.md )
+
+# Picked for 24.08.3, hopefully to be respun:
+# https://invent.kde.org/office/ghostwriter/-/merge_requests/46
+PATCHES=( "${FILESDIR}/${P}-fix-segfault.patch" ) # bug 942928


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

end of thread, other threads:[~2024-11-06 19:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-10 10:53 [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/, app-editors/ghostwriter/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2024-11-06 19:52 Andreas Sturmlechner
2023-12-19 20:45 Andreas Sturmlechner
2020-03-11 22:05 Andreas Sturmlechner

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