Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

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=

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.