From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7774D15852A for ; Thu, 15 Aug 2024 20:35:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC5F5E2A2F; Thu, 15 Aug 2024 20:35:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B49AE2A2F for ; Thu, 15 Aug 2024 20:35:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3C6C343008 for ; Thu, 15 Aug 2024 20:35:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 533E91EEB for ; Thu, 15 Aug 2024 20:35:23 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1723754088.04d15160b358179c5dabf2a1e142df6d541eef47.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/fcitx/, app-i18n/fcitx/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/fcitx/fcitx-5.1.10-r1.ebuild app-i18n/fcitx/files/fcitx-5.1.10-include-cstdint-for-gcc-15.patch X-VCS-Directories: app-i18n/fcitx/ app-i18n/fcitx/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 04d15160b358179c5dabf2a1e142df6d541eef47 X-VCS-Branch: master Date: Thu, 15 Aug 2024 20:35:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4424ea1e-f29e-4002-a084-6deb1761d95a X-Archives-Hash: d811037968efa1ffb252e4cb2ac1da66 commit: 04d15160b358179c5dabf2a1e142df6d541eef47 Author: Yongxiang Liang gmail com> AuthorDate: Thu Aug 15 05:56:58 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Aug 15 20:34:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d15160 app-i18n/fcitx: fix missing cstdint for GCC 15 Closes: https://bugs.gentoo.org/937737 Signed-off-by: Yongxiang Liang gmail.com> Signed-off-by: Sam James gentoo.org> app-i18n/fcitx/fcitx-5.1.10-r1.ebuild | 127 +++++++++++++++++++++ .../fcitx-5.1.10-include-cstdint-for-gcc-15.patch | 12 ++ 2 files changed, 139 insertions(+) diff --git a/app-i18n/fcitx/fcitx-5.1.10-r1.ebuild b/app-i18n/fcitx/fcitx-5.1.10-r1.ebuild new file mode 100644 index 000000000000..13e9dd85807e --- /dev/null +++ b/app-i18n/fcitx/fcitx-5.1.10-r1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="fcitx5" + +inherit cmake 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 ~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? ( sys-libs/zlib ) + enchant? ( app-text/enchant:2 ) + 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 + ) + !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 +" + +PATCHES=( + "${FILESDIR}/${P}-include-cstdint-for-gcc-15.patch" +) + +src_configure() { + 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_install() { + cmake_src_install + use doc && dodoc -r "${BUILD_DIR}"/doc/* +} + +src_test() { + # break by sandbox + local CMAKE_SKIP_TESTS=( + testdbus + testservicewatcher + ) + cmake_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + + elog + elog "Follow the instrcutions 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 +} diff --git a/app-i18n/fcitx/files/fcitx-5.1.10-include-cstdint-for-gcc-15.patch b/app-i18n/fcitx/files/fcitx-5.1.10-include-cstdint-for-gcc-15.patch new file mode 100644 index 000000000000..4dcf19d363de --- /dev/null +++ b/app-i18n/fcitx/files/fcitx-5.1.10-include-cstdint-for-gcc-15.patch @@ -0,0 +1,12 @@ +https://github.com/fcitx/fcitx5/pull/1119 + +--- a/src/lib/fcitx-utils/inputbuffer.h ++++ b/src/lib/fcitx-utils/inputbuffer.h +@@ -7,6 +7,7 @@ + #ifndef _FCITX_UTILS_INPUTBUFFER_H_ + #define _FCITX_UTILS_INPUTBUFFER_H_ + ++#include + #include + #include + #include