commit:     b5307d209706841de2a859a02de433e46c8f8eaa
Author:     Yongxiang Liang <tanekliang <AT> gmail <DOT> com>
AuthorDate: Wed Dec 24 03:43:54 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Thu Dec 25 10:46:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5307d20

app-i18n/fcitx: add 5.1.17

Signed-off-by: Yongxiang Liang <tanekliang <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/fcitx/Manifest            |   1 +
 app-i18n/fcitx/fcitx-5.1.17.ebuild | 128 +++++++++++++++++++++++++++++++++++++
 2 files changed, 129 insertions(+)

diff --git a/app-i18n/fcitx/Manifest b/app-i18n/fcitx/Manifest
index 6d5d2f4e3522..bc08dbbe412e 100644
--- a/app-i18n/fcitx/Manifest
+++ b/app-i18n/fcitx/Manifest
@@ -1,3 +1,4 @@
 DIST fcitx-5.1.12.tar.zst 8317084 BLAKE2B 
097881acde8fc1cf6960fd20878bb25c483684ff9ad9ffa133081d91fffd50c53b29998b1577866f10a8cb409a3c0fc96766909f6bdf268313e768de79e372ea
 SHA512 
82943f6c2e809e8d9049d457f59e52bc202daf922abec032efc589eefad77b4db4398fbaea92c019eaeaa40ccf51585a8a80676a7909433a8576dc63fb639645
 DIST fcitx-5.1.14.tar.zst 8374893 BLAKE2B 
e390a2faf54ab8f3a3748d72955104b7080ead8f4bb540341902cb3ba985fd77ce19d881ef8ff387a10145b9cf0d403c6d80ffb48d0f951822e3577c20c72344
 SHA512 
2a85f8d79bbf483b8feb13d7617f67ec4c56e0b7ba7b1328af9fc1f0214999cc73bb1c3a541e7974d00a0a2cb31f91da4cd7709388c91de2f2737c5055fd6563
 DIST fcitx-5.1.16.tar.zst 8384825 BLAKE2B 
42404fcd929cef67d8291a38427d5e6b5c5d552f28f3121a691edf86cd72633db1ddf48bbbf5bcfb5eb80d04c29c9b605d84921f47a3d4720ec5e739ed8022ab
 SHA512 
5d9b340f8be725b61a52d9a0f6f2bd9172f01262f37633c5db6177dd128873db51bbf8222e2117723f423fbd7035c97d3eb447ac587b73c5f17923c12597bc47
+DIST fcitx-5.1.17.tar.zst 8407147 BLAKE2B 
9b99d9a53b5bcd89942b848e3b4adae0e8f950e3a679a2d30b995caadfe09472c7d9611e05f80504874cf8185108914faf1711a29e9a1d258b5789509901cab0
 SHA512 
fe3f13d7615ae823b0746bd731d0eac4df90b216c22c186c4f63ab71c0450f38adfa558e906a5493bb5eab873bffea913477c8dcb2ba7055668305cf995e235f

diff --git a/app-i18n/fcitx/fcitx-5.1.17.ebuild 
b/app-i18n/fcitx/fcitx-5.1.17.ebuild
new file mode 100644
index 000000000000..216da3620747
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-5.1.17.ebuild
@@ -0,0 +1,128 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="fcitx5"
+
+inherit cmake flag-o-matic toolchain-funcs unpacker xdg
+
+DESCRIPTION="Fcitx 5 is a generic input method framework"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5";
+SRC_URI="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-${PV}_dict.tar.zst 
-> ${P}.tar.zst"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+LICENSE="LGPL-2+ Unicode-DFS-2016"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+autostart doc +emoji +enchant +keyboard presage +server systemd test 
wayland +X"
+REQUIRED_USE="
+       || ( wayland X )
+       X? ( keyboard )
+       wayland? ( keyboard )
+"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       !app-i18n/fcitx:4
+       dev-libs/libfmt
+       sys-devel/gettext
+       virtual/libintl
+       x11-libs/cairo[X?]
+       x11-libs/gdk-pixbuf:2
+       x11-libs/pango[X?]
+       doc? (
+               app-text/doxygen
+               dev-texlive/texlive-fontutils
+       )
+       emoji? ( virtual/zlib:= )
+       enchant? ( app-text/enchant:2 )
+       keyboard? (
+               app-text/iso-codes
+               dev-libs/expat
+               dev-cpp/nlohmann_json
+               x11-misc/xkeyboard-config
+               x11-libs/libxkbcommon[X?,wayland?]
+       )
+       systemd? (
+               sys-apps/systemd
+       )
+       !systemd? (
+               dev-libs/libuv
+               sys-apps/dbus
+       )
+       wayland? (
+               dev-libs/glib:2
+               dev-libs/wayland
+               dev-libs/wayland-protocols
+               dev-util/wayland-scanner
+       )
+       X? (
+               dev-libs/glib:2
+               >=x11-libs/xcb-imdkit-1.0.3:5
+               x11-libs/libX11
+               x11-libs/libxkbfile
+               x11-libs/xcb-util
+               x11-libs/xcb-util-keysyms
+               x11-libs/xcb-util-wm
+       )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       kde-frameworks/extra-cmake-modules:0
+"
+
+src_configure() {
+       if [[ $(tc-get-cxx-stdlib) == "libc++" ]]; then
+               # std::osyncstream used in fcitx-utils/log.cpp is marked as 
experimental.
+               append-cxxflags $(test-flags-CXX -fexperimental-library)
+       fi
+
+       local mycmakeargs=(
+               -DENABLE_DBUS=on
+               -DENABLE_XDGAUTOSTART=$(usex autostart)
+               -DENABLE_SERVER=$(usex server)
+               -DENABLE_KEYBOARD=$(usex keyboard)
+               -DENABLE_TEST=$(usex test)
+               -DENABLE_ENCHANT=$(usex enchant)
+               -DENABLE_EMOJI=$(usex emoji)
+               -DENABLE_PRESAGE=$(usex presage)
+               -DENABLE_WAYLAND=$(usex wayland)
+               -DENABLE_X11=$(usex X)
+               -DENABLE_DOC=$(usex doc)
+               -DUSE_SYSTEMD=$(usex systemd)
+       )
+       cmake_src_configure
+}
+
+src_compile() {
+       cmake_src_compile
+       use doc && cmake_src_compile doc
+}
+
+src_test() {
+       # break by sandbox
+       local CMAKE_SKIP_TESTS=(
+               testdbus
+               testservicewatcher
+       )
+       cmake_src_test
+}
+
+src_install() {
+       cmake_src_install
+       use doc && dodoc -r "${BUILD_DIR}"/doc/*
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       elog
+       elog "Follow the instructions on:"
+       elog "https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx";
+       elog "https://fcitx-im.org/wiki/Setup_Fcitx_5";
+       elog "https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland";
+       elog
+}

Reply via email to