pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/wordtsar



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Mon Nov  9 17:35:46 UTC 2026

Modified Files:
        pkgsrc/editors/wordtsar: Makefile PLIST distinfo
Added Files:
        pkgsrc/editors/wordtsar/patches: patch-CMakeLists.txt
            patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp
Removed Files:
        pkgsrc/editors/wordtsar/patches: patch-src_third-party_zip_zip.h

Log Message:
editors/wordtsar: Update to 0.5.1850

Changelog:
0.5 build 1850
    It's been a long time since I made a release, and this one is a big one.

    What's New

    Release history for WordTsar, in reverse chronological order.

    0.5.1850 Beta (2026-10-09)

    New Layout and Rendering Engines

    Completely rewritten layout and rendering engines for improved performance,
    accuracy, and future capabilities.

    Performance difference is good. version 0.3 took about 800ms to lay out a
    full novel of around 110,000 words. Version 0.5 does the same novel in
    about 430ms.

    Wordwrap

    Wordwrap now behaves a little more like Word or LibreOffice Writer, etc.
    Wordstar would not wrap a solid line of characters... a single really long
    line would be made. We now wrap at the right margin instead of doing that.

    Wordwrap used to include tag/attribute (decorations) information, so when
    displaying decorations, the document would be reformatted, pages would
    break at different places, pages would be added or removed. Now the layout
    doesn't change when displaying tag, instead, a line can extend past the
    right end of the display. This is more like Wordstar, and doesn't change
    layout completely when it doesn't have to.

    Recent Files

    Recent files are remembered for easy file loading.

    Keyboard handlers

      + Wordstar keyboard handler (default)

      + Microsoft Word/CUA keyboard handler (very much untested)

    Changing keyboard handlers does not change how WordTsar works... it's still
    a Wordstar clone. So don't expect MS Word style selection block handling,
    etc.

    New layout/formatting commands

    Keys  Menu               Action              MS Word (CUA) Matches
    ^O\< ALt-L-L Left Justify Pargaraph Toggle   ^L
    ^O=  Alt-L-N Center Justify Paragraph Toggle ^E
    ^O>  Alt-L-G Right Align Paragraph Toggle    ^R
    ^O+  Alt-L-J Justift Paragraph Toggle        ^J

    Editor Color Configuration

    Full color configuration of editor components.

    System Preferences

    New comprehensive preferences dialog. Accessible from File Menu (Alt-F-E)
    or F1. If your terminal (XFCE Terminal for example) intercepts F1, you'll
    have to edit the terminal preferences.

    Configuration File

    New configuration file. No data is copied from the old configuration to the
    new.

      + Linux: $XDG\_CONFIG\_HOME/wordtsar/config.ini ?? ~/.config/wordtsar/
        config.ini ?? ./config.ini

      + macOS: ~/Library/Application Support/WordTsar/config.ini ?? ./
        config.ini

      + Windows: %APPDATA%\\WordTsar\\config.ini ?? .\\config.ini

    The old config file \<HOME_DIR>/WordTsar.ini is not copied and it is not
    deleted.

    Undo/Redo

    Full undo and redo support. ^U for Undo, Ctrl+Alt+U for Redo. Currently set
    to 100 levels.

    Page Mode

    New page display mode shows documents with visual page breaks. Toggle
    between page and continuous modes with ^OT. A Show Formatting pane can be
    opened and closed with ^OD (a cheap WordPerfect Reveal Codes). Not feature
    complete.

    Page Numbering

      + Page number formats: Arabic (1, 2, 3), Roman lower (i, ii, iii), Roman
        upper (I, II, III)

      + Set custom starting page number

    New Dot Commands

      + .lh (Line Height)

      + .aw (Auto Word Wrap)

      + .op (Omit Page Numbers)

      + .pl (Page Length)

      + .pn (Page Number with format)

      + .pr (Printer Orientation)

      + .pg (Print Page Numbers)

      + .sr (Sub/Superscript Roll)

      + .cp (Conditional Page Break)

      + .tb (Extended Tab Stops with type prefixes)

      + .rr (Extended Ruler with type prefixes)

    Variable Expansion

    Variables now expand during display and in headers/footers:

      + &@& - Current date

      + &!& - Current time

      + &\#& - Page number

      + &\_& - Line number

      + &\*& - Filename

      + &:& - Drive letter

      + &.& - Directory

      + &\\& - Full path

    RTF Import/Export

    Large improvements to RTF import and export including Unicode support,
    paragraph formatting, header/footer preservation, and codepage handling.

    Spell Check (all platforms)

      + Spell check individual word ^QN

      + Spell check typed in word ^QO

      + Spell check rest of document ^QL

    Top Status Bar

    items are clickable to select font, set attributes, and alignment

    Bottom Status Bar

    Insert/Overwrite and Page number are clickable items.

    Backup file changed

    backup file changed from filename.ws-bak to filename-bak.ws so it can be
    opened easily by WordTsar

    International Input

    CJK (Japanese, Chinese, Korean) and Thai input method support.

    Terminal Interface

    Run from a shell or via ssh. Pre-alpha. There is some mouse support, but
    it's patchy at best. Some dialogs require mouse and keyboard for navigation
    and/or selection. Use at your own risk. Executable name is ws (Gui
    executable name is WordTsar)

      + note: TUI is not designed to work over a serial interface to a terminal
        (such at vt-100, Wyse-60, etc)

    Math Expressions in Dot Commands

    Dot commands now support full arithmetic with unit-aware calculations. Use
    expressions like .rm 4c + 2i to mix centimeters and inches, .po 8 \* 2i for
    multiplication, or .lm +2c to adjust margins relative to their current
    value. All margin, page setup, and tab commands support math with inches,
    centimeters, millimeters, and points. (Limitation: addition and subtraction
    can mix measurements units i.e. .5i + 2c. Multiplation and Division cannot,
    and the dot command will be marked as an error)

    Math Library

    Switch from exprtk to picomath for math routines cut the binary size down
    by half.

    Wordstar files

    If a file being loaded doesn't have a known extension, WordTsar will do its
    best to figure out if it is a Wordstar file and load it. If that fails, it
    will load as plain text.

    If saving as Wordstar will result in data loss, a dialog will be displayed.

    Known extensions for Wordstar files are .ws, .ws3, .ws4, .ws5, .ws6, .ws7,
    .ws8

    Bug Fixes

    Multiple bug fixes, some in the ticket system on Sourceforge, most not.

    Notes

    .rr command

    The .rr command currently assumes everthing is Courier New 12 point font,
    so each dash (-) represents 144 twips or 0.1 of an inch (2.54 mm). The
    width of a single Courier New 12 point character. As far as I can tell,
    Worstar 7.0D also uses 0.1 of an inch.

    The .rr command has been extended with tab types. ^ is a center align tab,
    and > is a right align tab. For example:

    .rr l----------!----------\#----------^-----------!--------\>------------r

    .tb command

    The .tb command has been extended with tab type prefixes. ^ is center tab,
    > is right aligned tab, and # is decimal aligned tab. For example:

    .tb 1.0i ^2.1i 3i \>5i \#6.0i

    numbers with no measurement specifier (i for inches, etc) default to colum
    positions where each column is assumed to be 144 twips or 0.1 of an inch
    (2.54 mm). The width of a single Courier New 12 point character.

    ../.ig command

    The editor makes multiline comments look better without changing the
    comment itself.

    Misc

      + Core changes and foundational work

      + UTF-8 in-memory document storage

      + Unicode version 18 support

      + Linux, Windows, and MacOS builds


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/editors/wordtsar/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/editors/wordtsar/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/editors/wordtsar/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/wordtsar/patches/patch-CMakeLists.txt \
    pkgsrc/editors/wordtsar/patches/patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/editors/wordtsar/patches/patch-src_third-party_zip_zip.h

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

Modified files:

Index: pkgsrc/editors/wordtsar/Makefile
diff -u pkgsrc/editors/wordtsar/Makefile:1.16 pkgsrc/editors/wordtsar/Makefile:1.17
--- pkgsrc/editors/wordtsar/Makefile:1.16       Tue Sep 29 06:04:50 2026
+++ pkgsrc/editors/wordtsar/Makefile    Mon Nov  9 17:35:45 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2026/09/29 06:04:50 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2026/11/09 17:35:45 ryoon Exp $
 
-DISTNAME=      WordTsar-0.3.719-src
-PKGNAME=       ${DISTNAME:tl:S/-src//}
-PKGREVISION=   10
+DISTNAME=      wordtsar-0.5.1850-src
+PKGNAME=       ${DISTNAME:S/-src//}
 CATEGORIES=    editors
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=wordtsar/}
 EXTRACT_SUFX=  .zip
@@ -12,35 +11,67 @@ HOMEPAGE=   https://wordtsar.ca/
 COMMENT=       Wordstar for the 21st Century
 LICENSE=       gnu-agpl-v3
 
-USE_TOOLS+=    bash pkg-config
+DISTFILES=     ${DEFAULT_DISTFILES}
+
+KUBA=          zip-0.3.15-miniz.3.1.2.tar.gz
+DISTFILES+=    ${KUBA}
+SITES.${KUBA}= -https://github.com/kuba--/zip/archive/refs/tags/v0.3.15+miniz.3.1.2.tar.gz
+
+SINI=          simpleini-4.27.tar.gz
+DISTFILES+=    ${SINI}
+SITES.${SINI}= -https://github.com/brofield/simpleini/archive/refs/tags/v4.27.tar.gz
+
+STB=           stb-0.0.0-4e9b368bfc071e97206ea5c6adba68dd0cbf8897.tar.gz
+DISTFILES+=    ${STB}
+SITES.${STB}=  -https://github.com/nothings/stb/archive/4e9b368bfc071e97206ea5c6adba68dd0cbf8897.tar.gz
+
+ETK=           exprtk-0.0.3.tar.gz
+DISTFILES+=    ${ETK}
+SITES.${ETK}=  -https://github.com/ArashPartow/exprtk/archive/refs/tags/0.0.3.tar.gz
+
+PMT=           picomath-1.1.0.tar.gz
+DISTFILES+=    ${PMT}
+SITES.${PMT}=  -https://github.com/Nitrillo/picomath/archive/refs/tags/v1.1.0.tar.gz
+
+HARU=          libharu-2.4.6.tar.gz
+DISTFILES+=    ${HARU}
+SITES.${HARU}= -https://github.com/libharu/libharu/archive/refs/tags/v2.4.6.tar.gz
+
+CPPU=          cpp-unicodelib-18.0.0.tar.gz
+DISTFILES+=    ${CPPU}
+SITES.${CPPU}= -https://github.com/yhirose/cpp-unicodelib/archive/refs/tags/v18.0.0.tar.gz
+
+PUGI=          pugixml-1.16.tar.gz
+DISTFILES+=    ${PUGI}
+SITES.${PUGI}= https://github.com/zeux/pugixml/releases/download/v1.16/
+
+WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}
+
+USE_TOOLS+=    pkg-config
 USE_LANGUAGES= c c++
 
-INSTALLATION_DIRS+=    bin
+CFLAGS+=       -DZIP_HAVE_SYMLINK=1
 
-REPLACE_BASH+= rev.sh
+CMAKE_CONFIGURE_ARGS+= -DCMAKE_BUILD_TYPE=Release
 
-# unclear why this is necessary or where this comes from
-SUBST_CLASSES+=                path
-SUBST_SED.path+=       -e s,../../src/core/include/version.h,../src/core/include/version.h,
-SUBST_FILES.path+=     build/Makefile
-SUBST_STAGE.path=      post-configure
-SUBST_MESSAGE.path=    Fixing path to version.h
-
-do-configure:
-       ${MKDIR} ${WRKSRC}/build
-       ${CHMOD} 755 ${WRKSRC}/rev.sh
-       cd ${WRKSRC}/build && \
-               ${CONFIGURE_ENV} ${QTDIR}/bin/qmake ../wordtsar.pro
-
-do-build:
-       cd ${WRKSRC}/build && \
-               ${MAKE_ENV} ${MAKE}
-
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/build/WordTsar \
-               ${DESTDIR}${PREFIX}/bin
-
-.include "../../converters/utf8proc/buildlink3.mk"
-.include "../../textproc/pugixml/buildlink3.mk"
-.include "../../x11/qt5-qtbase/buildlink3.mk"
+BUILDLINK_TRANSFORM+=  l:hunspell:hunspell-1.7
+.include "../../mk/dlopen.buildlink3.mk"
+BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+
+post-extract:
+       ${MV} ${WRKDIR}/zip-0.3.15-miniz.3.1.2 ${WRKSRC}/third-party/zip
+       ${MV} ${WRKDIR}/cpp-unicodelib-18.0.0 ${WRKSRC}/third-party/cpp-unicodelib
+       ${MV} ${WRKDIR}/exprtk-0.0.3 ${WRKSRC}/third-party/exprtk
+       ${MV} ${WRKDIR}/libharu-2.4.6 ${WRKSRC}/third-party/libharu
+       ${MV} ${WRKDIR}/picomath-1.1.0 ${WRKSRC}/third-party/picomath
+       ${MV} ${WRKDIR}/pugixml-1.16 ${WRKSRC}/third-party/pugixml
+       ${MV} ${WRKDIR}/simpleini-4.27 ${WRKSRC}/third-party/simpleini
+       ${MV} ${WRKDIR}/stb-4e9b368bfc071e97206ea5c6adba68dd0cbf8897 ${WRKSRC}/third-party/stb
+
+       ${FIND} ${WRKSRC} -name '*.orig' | xargs ${RM} -f
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/libexecinfo/buildlink3.mk"
+.include "../../textproc/hunspell/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/editors/wordtsar/PLIST
diff -u pkgsrc/editors/wordtsar/PLIST:1.1 pkgsrc/editors/wordtsar/PLIST:1.2
--- pkgsrc/editors/wordtsar/PLIST:1.1   Tue Sep 10 13:58:17 2024
+++ pkgsrc/editors/wordtsar/PLIST       Mon Nov  9 17:35:45 2026
@@ -1,2 +1,2 @@
-@comment $NetBSD: PLIST,v 1.1 2024/09/10 13:58:17 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.2 2026/11/09 17:35:45 ryoon Exp $
 bin/WordTsar

Index: pkgsrc/editors/wordtsar/distinfo
diff -u pkgsrc/editors/wordtsar/distinfo:1.2 pkgsrc/editors/wordtsar/distinfo:1.3
--- pkgsrc/editors/wordtsar/distinfo:1.2        Wed Oct  2 06:51:35 2024
+++ pkgsrc/editors/wordtsar/distinfo    Mon Nov  9 17:35:45 2026
@@ -1,6 +1,31 @@
-$NetBSD: distinfo,v 1.2 2024/10/02 06:51:35 nia Exp $
+$NetBSD: distinfo,v 1.3 2026/11/09 17:35:45 ryoon Exp $
 
-BLAKE2s (WordTsar-0.3.719-src.zip) = 7cdcaecdb9310b2821cd5449f88a8e9eaa313afd78f7411c634123252ace876a
-SHA512 (WordTsar-0.3.719-src.zip) = 60ffb855c290f0414160b508c36189489d7b9afed5c2cff36e9d0999ec369849ed3bbf54d4bfbce4aa2852a02df664fa481eb692309befb03eb5b47ec38a4ab5
-Size (WordTsar-0.3.719-src.zip) = 3366105 bytes
-SHA1 (patch-src_third-party_zip_zip.h) = b1109dd61e2a53eea21cea94b3c591021f5f0ffc
+BLAKE2s (cpp-unicodelib-18.0.0.tar.gz) = 1199446491f0b91fa4f7ad3407386cc6664c9aefb47f31c4ca09653637d31889
+SHA512 (cpp-unicodelib-18.0.0.tar.gz) = 1933a2cc8e190566cd11230de0477082d7b90dadf85e00db7fba9128910d1320869523202157b1b53d83cde9cc5887c203001ca3c70f0e2a9f101e4cc1ef4267
+Size (cpp-unicodelib-18.0.0.tar.gz) = 1806957 bytes
+BLAKE2s (exprtk-0.0.3.tar.gz) = 1288d2930c89cc782733a6573e50b45ad02e852527e012bb22c616dda9d93d67
+SHA512 (exprtk-0.0.3.tar.gz) = 1493b68929d3cb4e97c0180ef6f111ae4edbbee072ab78223976005b8402e4e7b56d94f013fbbc009f4db2652167fa3b4ba3c33d4029572ebbe61a36df9da9e4
+Size (exprtk-0.0.3.tar.gz) = 1533147 bytes
+BLAKE2s (libharu-2.4.6.tar.gz) = 40aedd14cc9de40141f85cb071f1ad9bd8579b7454679e059114056aafeba39d
+SHA512 (libharu-2.4.6.tar.gz) = c16b1770cd06ffb3d02649de2f4a9e84ca2c42d82183194e01802bf8c6745609a176185d00e37bb06cae9b3245c154cf7e267e47bd71b3b9aa572c28214fec69
+Size (libharu-2.4.6.tar.gz) = 1420425 bytes
+BLAKE2s (picomath-1.1.0.tar.gz) = 746bc1201830d6cd8c92bc3ac3cc02998dacd36d9e43e9e0febeac494ca5f68a
+SHA512 (picomath-1.1.0.tar.gz) = a68232e3d5663515039dc4fd79ac1e02d24582d9c98e5672e6b4513ca6b53bb80a5d5c68a440c14d7dc41a189eed19cf28d744894bf3533b087b01b38130bef0
+Size (picomath-1.1.0.tar.gz) = 18518 bytes
+BLAKE2s (pugixml-1.16.tar.gz) = 45d1696b6c346932c4ac42f6e70c766d61d9e6372eee09968ad1aeb71f40a5a0
+SHA512 (pugixml-1.16.tar.gz) = a550e18c998d4eb7eaadcfe4db7e5616b95e04315fb571563625be1882a54a8e9ac710de79d9451f9dddea8600c898487f2d067d0916dd7abc6e3e29a1624e0b
+Size (pugixml-1.16.tar.gz) = 588574 bytes
+BLAKE2s (simpleini-4.27.tar.gz) = 57fbb8bbebb137b5642a671c484913407828ced361ae4e6c635983fa883c357d
+SHA512 (simpleini-4.27.tar.gz) = f2ba16c76f88d8e299429c401c6076417299c98b0976c25c4fc07ebe563828da93a533e1a2cc4b7078c090416fd02ee4b095313d43b1060dee398b1d31ac7517
+Size (simpleini-4.27.tar.gz) = 90942 bytes
+BLAKE2s (stb-0.0.0-4e9b368bfc071e97206ea5c6adba68dd0cbf8897.tar.gz) = 9bd8a4ba313023efc0dac42e49d2b4b2ffa833b417ffa8ae5c410a91f3f72d0a
+SHA512 (stb-0.0.0-4e9b368bfc071e97206ea5c6adba68dd0cbf8897.tar.gz) = 60227ea75172e89eb50233ee1e0eef1cb6ee1a93926e45bd62f009d15ce8863d129f2a82d336d2082714bcf26319c96800bca3622a67f6324ce060acf7a570a1
+Size (stb-0.0.0-4e9b368bfc071e97206ea5c6adba68dd0cbf8897.tar.gz) = 1515460 bytes
+BLAKE2s (wordtsar-0.5.1850-src.zip) = 5a255d4010edebe16f38e9f88738b0235a9ad99ed622056816e092634432998d
+SHA512 (wordtsar-0.5.1850-src.zip) = d75edd08711a5878c995fed4615bcccb2a0cbb7ed7f6b672a9b90eee22574c2dfe883f5fb8d4efedae093b9acbfb49e073333ad5216b59d12e9134f7ffc60bf4
+Size (wordtsar-0.5.1850-src.zip) = 2027347 bytes
+BLAKE2s (zip-0.3.15-miniz.3.1.2.tar.gz) = ee27666b8402a30f8f20ed5ec3e9e692fd53392a4d8f2befc18c414f9110d6d9
+SHA512 (zip-0.3.15-miniz.3.1.2.tar.gz) = 22623b645c9a1c3f2d1aa47ff41dc1a52b3afd45c7eefe32bbe95ce306d2d5cfd4ae3056c29a5f12d7be684c6ceebefcc5c37b5bc628db15e1536857b5740cae
+Size (zip-0.3.15-miniz.3.1.2.tar.gz) = 525413 bytes
+SHA1 (patch-CMakeLists.txt) = 46c942383ba076b2e75ca5cd724847243375fd35
+SHA1 (patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp) = 74e98024cfea2acd1c57317926007cf5ac226d61

Added files:

Index: pkgsrc/editors/wordtsar/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/editors/wordtsar/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Mon Nov  9 17:35:46 2026
+++ pkgsrc/editors/wordtsar/patches/patch-CMakeLists.txt        Mon Nov  9 17:35:45 2026
@@ -0,0 +1,122 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2026/11/09 17:35:45 ryoon Exp $
+
+* Support NetBSD and/or more platforms.
+* Avoid GET_RUNTIME_DEPENDENCIES error under NetBSD.
+
+--- CMakeLists.txt.orig        2026-10-08 17:45:26.000000000 +0000
++++ CMakeLists.txt
+@@ -26,7 +26,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
+ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
+ 
+ # Linux and MacOS compile options
+-if(CMAKE_SYSTEM_NAME STREQUAL Linux)
++if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Linux)
+     set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wdeprecated-declarations")
+     set(CMAKE_CXX_FLAGS_DEBUG "-g -rdynamic -DDEBUG ")
+     set(CMAKE_CXX_FLAGS_RELEASE "-O2")
+@@ -424,7 +424,15 @@ if(BUILD_TUI)
+     # Platform link libs + optional font backends.
+     if(WIN32)
+         target_link_libraries(ws PRIVATE ws2_32 Dbghelp gdi32 user32 dwrite d2d1)
+-    elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
++    elseif(APPLE)
++        # Spell checking: NSSpellChecker, as the GUI uses
++        target_sources(ws PRIVATE src/core/spellcheck/macspellcheck.mm)
++        find_library(COREFOUNDATION_LIBRARY CoreFoundation)
++        find_library(CORETEXT_LIBRARY CoreText)
++        target_link_libraries(ws PRIVATE
++            "-framework Foundation" "-framework AppKit"
++            ${COREFOUNDATION_LIBRARY} ${CORETEXT_LIBRARY})
++    else()
+         target_link_libraries(ws PRIVATE pthread hunspell dl)
+ 
+         find_package(PkgConfig QUIET)
+@@ -444,14 +452,6 @@ if(BUILD_TUI)
+                 target_link_libraries(ws PRIVATE ${HARFBUZZ_LIBRARIES} ${FREETYPE_LIBRARIES})
+             endif()
+         endif()
+-    elseif(APPLE)
+-        # Spell checking: NSSpellChecker, as the GUI uses
+-        target_sources(ws PRIVATE src/core/spellcheck/macspellcheck.mm)
+-        find_library(COREFOUNDATION_LIBRARY CoreFoundation)
+-        find_library(CORETEXT_LIBRARY CoreText)
+-        target_link_libraries(ws PRIVATE
+-            "-framework Foundation" "-framework AppKit"
+-            ${COREFOUNDATION_LIBRARY} ${CORETEXT_LIBRARY})
+     endif()
+ 
+     if(MSVC)
+@@ -553,7 +553,15 @@ if(BUILD_TUI)
+ 
+     if(WIN32)
+         target_link_libraries(WSTuiTest PRIVATE ws2_32 Dbghelp gdi32 user32 dwrite d2d1)
+-    elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
++    elseif(APPLE)
++        # Spell checking: NSSpellChecker, as the GUI uses
++        target_sources(WSTuiTest PRIVATE src/core/spellcheck/macspellcheck.mm)
++        find_library(COREFOUNDATION_LIBRARY CoreFoundation)
++        find_library(CORETEXT_LIBRARY CoreText)
++        target_link_libraries(WSTuiTest PRIVATE
++            "-framework Foundation" "-framework AppKit"
++            ${COREFOUNDATION_LIBRARY} ${CORETEXT_LIBRARY})
++    else()
+         target_link_libraries(WSTuiTest PRIVATE pthread hunspell dl)
+         if(PKG_CONFIG_FOUND)
+             if(FONTCONFIG_FOUND)
+@@ -567,14 +575,6 @@ if(BUILD_TUI)
+                 target_link_libraries(WSTuiTest PRIVATE ${HARFBUZZ_LIBRARIES} ${FREETYPE_LIBRARIES})
+             endif()
+         endif()
+-    elseif(APPLE)
+-        # Spell checking: NSSpellChecker, as the GUI uses
+-        target_sources(WSTuiTest PRIVATE src/core/spellcheck/macspellcheck.mm)
+-        find_library(COREFOUNDATION_LIBRARY CoreFoundation)
+-        find_library(CORETEXT_LIBRARY CoreText)
+-        target_link_libraries(WSTuiTest PRIVATE
+-            "-framework Foundation" "-framework AppKit"
+-            ${COREFOUNDATION_LIBRARY} ${CORETEXT_LIBRARY})
+     endif()
+ 
+     if(MSVC)
+@@ -618,11 +618,6 @@ if (WIN32)
+       ws2_32
+       Dbghelp
+    )
+-elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+-   list(APPEND LIBS
+-      pthread
+-      hunspell
+-   )
+ elseif(APPLE)
+    # macOS specific libraries (CoreText: font lookup in gui/utils/fontutils.cpp)
+    list(APPEND LIBS
+@@ -630,6 +625,11 @@ elseif(APPLE)
+       "-framework AppKit"
+       "-framework CoreText"
+    )
++else()
++   list(APPEND LIBS
++      pthread
++      hunspell
++   )
+ endif()
+ 
+ target_link_libraries(WordTsar PUBLIC ${LIBS})
+@@ -780,6 +780,10 @@ else()
+         RUNTIME DESTINATION bin
+         COMPONENT Applications
+     )
++    #install(TARGETS ws
++    #    RUNTIME DESTINATION bin
++    #    COMPONENT Applications
++    #)
+ endif()
+ 
+ # Generate deployment script for distributing the application
+@@ -788,5 +792,5 @@ qt_generate_deploy_app_script(
+     OUTPUT_SCRIPT deploy_script
+     NO_UNSUPPORTED_PLATFORM_ERROR
+ )
+-install(SCRIPT ${deploy_script})
++#install(SCRIPT ${deploy_script})
+ endif() # BUILD_GUI
Index: pkgsrc/editors/wordtsar/patches/patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp
diff -u /dev/null pkgsrc/editors/wordtsar/patches/patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp:1.1
--- /dev/null   Mon Nov  9 17:35:46 2026
+++ pkgsrc/editors/wordtsar/patches/patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp     Mon Nov  9 17:35:45 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_third-party_chillout_src_chillout_posix_posixcrashhandler.cpp,v 1.1 2026/11/09 17:35:45 ryoon Exp $
+
+--- src/third-party/chillout/src/chillout/posix/posixcrashhandler.cpp.orig     2026-11-09 08:43:35.666847062 +0000
++++ src/third-party/chillout/src/chillout/posix/posixcrashhandler.cpp
+@@ -12,7 +12,7 @@
+ #include <sstream>
+ #include <memory>
+ 
+-#ifdef __APPLE__
++#if defined(__APPLE__) || defined(__NetBSD__)
+ #include <unistd.h>
+ #endif
+ 



Home | Main Index | Thread Index | Old Index