Add support for Enchant 2
Gnome Subtitles currently supports Enchant >= 1.6 including 2.X releases. This is a runtime dependency and no build dependency exists regarding Enchant.
However, gnome-subtitles.exe.config is mapping to the 1.X version which means the 2.X version isn't used even if it's the only one available on the system:
<dllmap dll="libenchant" target="libenchant.so.1" />
Find a way to allow to configure Gnome Subtitles for each version (some option on autogen?).
On the meanwhile, a workaround for distros using Enchant 2 is to patch the gnome-subtitles.exe.config file to point to that version:
<dllmap dll="libenchant" target="libenchant-2.so.2" />