pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

markdown-editor: Add markdown-editor-2.10.0



Module Name:	pkgsrc-wip
Committed By:	Alexander Kondrat <a%kondrat.su@localhost>
Pushed By:	a.kondrat
Date:		Fri Oct 30 15:18:15 2026 +0300
Changeset:	1b5d3b3ef35fbb771456e1efdd63862854fcb916

Added Files:
	markdown-editor/COMMIT_MSG
	markdown-editor/DESCR
	markdown-editor/Makefile
	markdown-editor/PLIST
	markdown-editor/distinfo
	markdown-editor/patches/patch-tests_tst_roundtripfuzz.cpp

Log Message:
markdown-editor: Add markdown-editor-2.10.0

Markdown-editor is a lightweight, native WYSIWYG Markdown editor written in
C++ with Qt6 (no Electron).  It supports TeX formulas, Mermaid/PlantUML
diagrams, document tabs, spell checking, export to PDF, HTML, LaTeX, ODT,
DOCX and EPUB, and provides its user interface in nine languages.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1b5d3b3ef35fbb771456e1efdd63862854fcb916

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 markdown-editor/COMMIT_MSG                         |  1 +
 markdown-editor/DESCR                              |  4 +++
 markdown-editor/Makefile                           | 37 ++++++++++++++++++++++
 markdown-editor/PLIST                              | 12 +++++++
 markdown-editor/distinfo                           |  6 ++++
 .../patches/patch-tests_tst_roundtripfuzz.cpp      | 17 ++++++++++
 6 files changed, 77 insertions(+)

diffs:
diff --git a/markdown-editor/COMMIT_MSG b/markdown-editor/COMMIT_MSG
new file mode 100644
index 0000000000..2b345db97d
--- /dev/null
+++ b/markdown-editor/COMMIT_MSG
@@ -0,0 +1 @@
+markdown-editor-2.10.0: WYSIWYG Markdown editor with TeX formulas and diagrams (Qt6)
diff --git a/markdown-editor/DESCR b/markdown-editor/DESCR
new file mode 100644
index 0000000000..adf9dafcca
--- /dev/null
+++ b/markdown-editor/DESCR
@@ -0,0 +1,4 @@
+Markdown-editor is a lightweight, native WYSIWYG Markdown editor written in
+C++ with Qt6 (no Electron).  It supports TeX formulas, Mermaid/PlantUML
+diagrams, document tabs, spell checking, export to PDF, HTML, LaTeX, ODT,
+DOCX and EPUB, and provides its user interface in nine languages.
diff --git a/markdown-editor/Makefile b/markdown-editor/Makefile
new file mode 100644
index 0000000000..bc30ab1f1f
--- /dev/null
+++ b/markdown-editor/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME=	Markdown-editor-2.10.0
+CATEGORIES=	editors
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ManuelAriasCalleja/}
+GITHUB_PROJECT=	Markdown-editor
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+FETCH_USING=	curl
+
+MAINTAINER=	pkgsrc-wip%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/ManuelAriasCalleja/Markdown-editor
+COMMENT=	WYSIWYG Markdown editor with TeX formulas and diagrams (Qt6)
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=		c++
+USE_TOOLS+=		pkg-config
+CMAKE_PREFIX_PATH+=	${PREFIX}/qt6
+CMAKE_CONFIGURE_ARGS+=	-DSPELL_CHECK_STATIC=OFF
+ICON_THEMES=		yes
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_MESSAGE.prefix=	Fixing Exec path in md-editor.desktop
+SUBST_FILES.prefix=	md-editor.desktop
+SUBST_SED.prefix=	-e 's|^Exec=md-editor|Exec=${PREFIX}/bin/md-editor|'
+
+DOCDIR=			${PREFIX}/share/doc/${PKGBASE}
+INSTALLATION_DIRS+=	${DOCDIR}
+post-install:
+	${INSTALL_DATA}	${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}/LICENSE
+
+.include "../../devel/cmake/build.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../textproc/hunspell/buildlink3.mk"
+.include "../../devel/qt6-qttools/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/markdown-editor/PLIST b/markdown-editor/PLIST
new file mode 100644
index 0000000000..761d827593
--- /dev/null
+++ b/markdown-editor/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+bin/md-editor
+share/applications/md-editor.desktop
+share/doc/${PKGBASE}/LICENSE
+share/icons/hicolor/128x128/apps/md-editor.png
+share/icons/hicolor/16x16/apps/md-editor.png
+share/icons/hicolor/24x24/apps/md-editor.png
+share/icons/hicolor/256x256/apps/md-editor.png
+share/icons/hicolor/32x32/apps/md-editor.png
+share/icons/hicolor/48x48/apps/md-editor.png
+share/icons/hicolor/64x64/apps/md-editor.png
+share/icons/hicolor/scalable/apps/md-editor.svg
diff --git a/markdown-editor/distinfo b/markdown-editor/distinfo
new file mode 100644
index 0000000000..c22f2e8d6e
--- /dev/null
+++ b/markdown-editor/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (Markdown-editor-2.10.0.tar.gz) = dcb8692ffe23fdfbbc8cbf30f3f8ad1b8629cb42f439bdfea40a6a96ea97f50b
+SHA512 (Markdown-editor-2.10.0.tar.gz) = 4766259fba6952c0c532529f06d1bc2f67325fd40c44580a97345ec0512a55a051ebcbffe0354adb027d6050e5655aa4cdf6c7cecc2f4fcbdc4fe4188b9fd022
+Size (Markdown-editor-2.10.0.tar.gz) = 1597117 bytes
+SHA1 (patch-tests_tst_roundtripfuzz.cpp) = 13ae180d9c2e79e5176767cfb7cfffe064b7ce55
diff --git a/markdown-editor/patches/patch-tests_tst_roundtripfuzz.cpp b/markdown-editor/patches/patch-tests_tst_roundtripfuzz.cpp
new file mode 100644
index 0000000000..caa1d1afbe
--- /dev/null
+++ b/markdown-editor/patches/patch-tests_tst_roundtripfuzz.cpp
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Qt 6.11 changed QChar::unicode() to return char16_t, which the integral
+QString::arg overloads reject; widen to int explicitly so the fuzz test
+compiles against newer Qt.
+
+--- tests/tst_roundtripfuzz.cpp.orig
++++ tests/tst_roundtripfuzz.cpp
+@@ -254,7 +254,7 @@
+             QString esc;
+             for (const QChar c : s) {
+                 if (c.unicode() < 0x20 || c.unicode() > 0x7e)
+-                    esc += QStringLiteral("\\u%1").arg(c.unicode(), 4, 16, QLatin1Char('0'));
++                    esc += QStringLiteral("\\u%1").arg(static_cast<int>(c.unicode()), 4, 16, QLatin1Char('0'));
+                 else
+                     esc += c;
+             }


Home | Main Index | Thread Index | Old Index