app-i18n/fcitx: sync 9999 with upstream, correct LICENSE

- The keyboard engine now parses iso-codes with nlohmann_json instead of
  json-c, classicui links librsvg, the X frontend links libxcb, and the
  Wayland frontend needs plasma-wayland-protocols; libuv and systemd carry
  subslots, so bind them.
- The spell module downloads en_dict at build time, which
  `FEATURES=network-sandbox` blocks, so fetch it through `SRC_URI`.
- Raise cmake_minimum_required to 3.16 because ECM warns below it
  (bug 964407).
- The sources carry SPDX-License-Identifier: LGPL-2.1-or-later, and
  LICENSES/ holds only that licence and Unicode-DFS-2016:
  https://github.com/fcitx/fcitx5/blob/456ff901705de75a979fa4b75b4be35edc73aeb9/src/lib/fcitx/instance.cpp

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk authored and 梁永祥 committed 2026-10-24 20:48:07 +08:00
1 parent 8305dec608
commit 2b59f8a015
2 files changed
+23 -5

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST en_dict-20121020.tar.gz 630491 BLAKE2B 2df897b1c9fb3a2ce186ee590e5f3ccbc7930f047218bf0fefa317f74b3287fc0be9c393d3310fe07208379118ec4c46608a1c703ef37b3aee65b2d790cb7f0d SHA512 8418bd02492bfd786c0fab93be4400ef027ec8e9fac02220cc1f653f5eb67f54573a6a84a15baba19bb34ab892745c87df16499d6304ea75009131e2ab3b97f2
+22 -5
View File
@@ -11,7 +11,10 @@ DESCRIPTION="Fcitx 5 is a generic input method framework"
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5"
EGIT_REPO_URI="https://github.com/fcitx/fcitx5.git"
LICENSE="LGPL-2+ Unicode-DFS-2016"
SPELL_EN_DICT_VER="20121020"
SRC_URI="https://download.fcitx-im.org/data/en_dict-${SPELL_EN_DICT_VER}.tar.gz"
LICENSE="LGPL-2.1+ Unicode-DFS-2016"
SLOT="5"
KEYWORDS=""
IUSE="+autostart doc +emoji +enchant +keyboard presage +server systemd test wayland +X"
@@ -26,6 +29,7 @@ RESTRICT="!test? ( test )"
RDEPEND="
!app-i18n/fcitx:4
dev-libs/libfmt
gnome-base/librsvg:2
sys-devel/gettext
virtual/libintl
x11-libs/cairo[X?]
@@ -40,15 +44,14 @@ RDEPEND="
keyboard? (
app-text/iso-codes
dev-libs/expat
dev-libs/json-c:=
x11-misc/xkeyboard-config
x11-libs/libxkbcommon[X?,wayland?]
)
systemd? (
sys-apps/systemd
sys-apps/systemd:=
)
!systemd? (
dev-libs/libuv
dev-libs/libuv:=
sys-apps/dbus
)
wayland? (
@@ -61,18 +64,32 @@ RDEPEND="
dev-libs/glib:2
>=x11-libs/xcb-imdkit-1.0.3:5
x11-libs/libX11
x11-libs/libxcb:=
x11-libs/libxkbfile
x11-libs/xcb-util
x11-libs/xcb-util-keysyms
x11-libs/xcb-util-wm
)
"
DEPEND="${RDEPEND}"
DEPEND="${RDEPEND}
keyboard? ( dev-cpp/nlohmann_json )
wayland? ( dev-libs/plasma-wayland-protocols )
"
BDEPEND="
virtual/pkgconfig
kde-frameworks/extra-cmake-modules:0
"
src_unpack() {
git-r3_src_unpack
cp "${DISTDIR}/en_dict-${SPELL_EN_DICT_VER}.tar.gz" "${S}/src/modules/spell/" || die
}
src_prepare() {
sed -e '/cmake_minimum_required/s/3\.13/3.16/' -i CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then
# std::osyncstream used in fcitx-utils/log.cpp is marked as experimental.