128.6. enchant-2.8.21
Spell-checking library over several engines, built with its Hunspell and Aspell providers
2.8.21-1 · LGPL-2.1-or-later · 0.6 SBU · 320.0 KiB, 15 files · 41_system, 268 of 1047 · ports/core/spelling/enchant
Homepage: https://rrthomas.github.io/enchant/
Why it is in KDOS. The comment above the 6 ports from aspell to enchant in script/phases/41_system/packages.d/spelling.txt:
Spell checking: the Aspell library and command with its English dictionary, Hunspell with its English dictionary and the MyThes thesaurus, and enchant over both. recoll's suggestions, mc's editor, weechat and profanity check through enchant; LibreOffice, Firefox, Thunderbird and the KDE applications read the Hunspell dictionary directly.
Enchant is the spell-checking library applications call instead of a particular checker: it loads a provider module for each spelling engine and picks a dictionary by language. The ports that link it include gspell, libspelling and qtspell, the spell-checking layers GTK and Qt applications use, the WebKitGTK engines, and fcitx5, AbiWord, gImageReader, WeeChat and Profanity. This build has two providers, Hunspell and Aspell, and the English dictionaries of both are in depends, so a check in English works on a fresh system.
Depends on: glib, aspell, aspell-en, hunspell, hunspell-en.
Required by (10): abiword, fcitx5, gimagereader, gspell, libspelling, profanity, qtspell, webkitgtk, webkitgtk6, weechat.
Sources: enchant-2.8.21.tar.gz (1.3 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install enchant'
build.sh:
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--disable-static \
--with-aspell \
--with-hunspell \
--without-nuspell \
--without-hspell \
--without-voikko \
--without-winspell \
--without-applespell \
--without-zemberek
make nodist_doc_DATA=
make DESTDIR=$PKG install nodist_doc_DATA=
--with-aspell— Build the Aspell provider, which reads aspell-en’s dictionaries. Upstream’s default is to build a provider when configure finds its library; naming it with--withmakes a missing library a failed configure instead of a smaller provider set.--with-hunspell— Build the Hunspell provider, which reads hunspell-en’s dictionaries from/usr/share/hunspell; named for the same reason.--without-nuspell,--without-hspell,--without-voikko— The Nuspell, Hebrew (Hspell) and Finnish (Voikko) engines, whose libraries are not ports. Naming them off keeps the provider set from following what the build root holds.--without-winspell,--without-applespell— The Windows and macOS system spell-checkers. configure tries WinSpell only on a native Windows build and AppleSpell only with an Objective-C++ compiler, and each needs that system’s headers.--without-zemberek— The Turkish Zemberek provider, which upstream marks experimental and deprecated and leaves off by default.nodist_doc_DATA=— Empty the make variable that lists the HTML renderings of the three manual pages (enchant-2.1,enchant-lsmod-2.1,enchant.5), which upstream makes withgroff -Thtmland installs under/usr/share/doc. Set on the command line of both make runs, it reaches every subdirectory’s make, so the HTML is neither built nor installed. The manual pages themselves install as pages.
Programs: enchant-2, enchant-lsmod-2.
Libraries: libenchant-2.so.
Directories: /usr/include/enchant-2, /usr/lib/enchant-2, /usr/share/enchant-2, /usr/share/licenses/enchant.