commit:     08150c931b54430ce6360bf1d99fb170040d56b1
Author:     jinqiang zhang <peeweep <AT> 0x0 <DOT> ee>
AuthorDate: Sat Jan 31 08:49:47 2026 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sat Jan 31 11:57:29 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08150c93

app-i18n/fcitx-qt: inherit dot-a.eclass

use dot-a.eclass to avoid installing broken static libraries w/ LTO

Closes: https://bugs.gentoo.org/968514
Closes: https://github.com/gentoo/gentoo/pull/45590
Approved-by: Yongxiang Liang <tanekliang <AT> gmail.com>
Signed-off-by: jinqiang zhang <peeweep <AT> 0x0.ee>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/fcitx-qt/fcitx-qt-5.1.12-r1.ebuild | 71 +++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

diff --git a/app-i18n/fcitx-qt/fcitx-qt-5.1.12-r1.ebuild 
b/app-i18n/fcitx-qt/fcitx-qt-5.1.12-r1.ebuild
new file mode 100644
index 000000000000..7bdac46fb613
--- /dev/null
+++ b/app-i18n/fcitx-qt/fcitx-qt-5.1.12-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="fcitx5-qt"
+
+inherit cmake dot-a unpacker
+
+DESCRIPTION="Qt library and IM module for fcitx5"
+HOMEPAGE="https://github.com/fcitx/fcitx5-qt";
+SRC_URI="https://download.fcitx-im.org/fcitx5/${MY_PN}/${MY_PN}-${PV}.tar.zst 
-> ${P}.tar.zst"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+LICENSE="BSD LGPL-2.1+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
+IUSE="qt5 onlyplugin staticplugin +qt6 +X wayland"
+REQUIRED_USE="
+       || ( qt5 qt6 )
+       qt5? ( X )
+       staticplugin? ( onlyplugin )
+"
+
+RDEPEND="
+       !onlyplugin? (
+               >=app-i18n/fcitx-5.1.13:5
+               qt5? ( dev-qt/qtconcurrent:5 )
+       )
+       qt5? (
+               dev-qt/qtcore:5
+               dev-qt/qtdbus:5
+               dev-qt/qtgui:5=
+               dev-qt/qtwidgets:5
+               wayland? ( dev-qt/qtwayland:5 )
+       )
+       qt6? (
+               dev-qt/qtbase:6=[dbus,gui,widgets,wayland?]
+               wayland? ( dev-qt/qtwayland:6 )
+       )
+       X? (
+               x11-libs/libX11
+               x11-libs/libxcb
+               x11-libs/libxkbcommon
+       )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       kde-frameworks/extra-cmake-modules:0
+       virtual/pkgconfig
+       !onlyplugin? ( sys-devel/gettext )
+"
+
+src_configure() {
+       use staticplugin && lto-guarantee-fat
+       local mycmakeargs=(
+               -DENABLE_QT4=no
+               -DENABLE_QT5=$(usex qt5)
+               -DENABLE_QT6=$(usex qt6)
+               -DENABLE_QT6_WAYLAND_WORKAROUND=$(usex qt6 $(usex wayland))
+               -DENABLE_X11=$(usex X)
+               -DBUILD_ONLY_PLUGIN=$(usex onlyplugin)
+               -DBUILD_STATIC_PLUGIN=$(usex staticplugin)
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       use staticplugin && strip-lto-bytecode
+}

Reply via email to