logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/
commit: 8f06e68006318cd653f989c6a7ec17fffc4ac7ed
parent a1ada178e896bd1518c70828c4c3598ce5575f05
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  9 Feb 2026 02:35:50 +0100

app-i18n/fcitx-{configtool,qt}: treeclean (Qt5)

Diffstat:

Dapp-i18n/fcitx-configtool/Manifest1-
Dapp-i18n/fcitx-configtool/fcitx-configtool-5.0.17.ebuild71-----------------------------------------------------------------------
Dapp-i18n/fcitx-configtool/metadata.xml16----------------
Dapp-i18n/fcitx-qt/Manifest1-
Dapp-i18n/fcitx-qt/fcitx-qt-5.0.17.ebuild56--------------------------------------------------------
Dapp-i18n/fcitx-qt/files/0001-CMake-Add-option-to-disable-X11-support.patch63---------------------------------------------------------------
Dapp-i18n/fcitx-qt/files/0002-CMake-Add-option-to-disable-DBus-support.patch74--------------------------------------------------------------------------
Dapp-i18n/fcitx-qt/metadata.xml12------------
8 files changed, 0 insertions(+), 294 deletions(-)

diff --git a/app-i18n/fcitx-configtool/Manifest b/app-i18n/fcitx-configtool/Manifest @@ -1 +0,0 @@ -DIST fcitx-configtool-5.0.17.tar.gz 155255 BLAKE2B 3882fd32845c3441885133a619d6ad6371f01b3764d5c5a2806fa57f900eff502adb3bb7058f608b86aef6967b605e67e4ad574383fc5baff87aff0459174eda SHA512 1cdeaa3c84c18d6df2f5ee15fd5664bb790aeafaec575d66837d34369279231bcc53afc16f025546243fd3c6d94f325f1e5aaac8636c975d5cd84a8853d285c8 diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-5.0.17.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-5.0.17.ebuild @@ -1,71 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake xdg-utils - -MY_PN="fcitx5-configtool" -DESCRIPTION="GUI configuration tool for Fcitx" -HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5-configtool" -SRC_URI="https://github.com/fcitx/fcitx5-configtool/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="5" -KEYWORDS="~amd64 ~x86" -IUSE="+config-qt +kcm test X" -RESTRICT="!test? ( test )" - -DEPEND=" - app-i18n/fcitx:5 - app-i18n/fcitx-qt:5[-only-plugin] - app-text/iso-codes - config-qt? ( kde-frameworks/kitemviews:5 ) - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - dev-qt/qtconcurrent:5 - kde-frameworks/kwidgetsaddons:5 - sys-devel/gettext - x11-misc/xkeyboard-config - kcm? ( - dev-qt/qtquickcontrols2:5 - kde-frameworks/kcoreaddons:5 - kde-frameworks/ki18n:5 - kde-frameworks/kiconthemes:5 - kde-frameworks/kpackage:5 - kde-frameworks/plasma:5 - kde-frameworks/kdeclarative:5 - kde-frameworks/kirigami:5 - x11-libs/libxkbcommon - ) - X? ( - dev-qt/qtx11extras:5 - x11-libs/libX11 - x11-libs/libxkbfile - ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - kde-frameworks/extra-cmake-modules - virtual/pkgconfig -" - -S="${WORKDIR}/${MY_PN}-${PV}" - -src_configure() { - local mycmakeargs=( - -DENABLE_CONFIG_QT=$(usex config-qt) - -DENABLE_KCM=$(usex kcm) - -DENABLE_TEST=$(usex test) - ) - cmake_src_configure -} - -pkg_postinst() { - xdg_desktop_database_update -} - -pkg_postrm() { - xdg_desktop_database_update -} diff --git a/app-i18n/fcitx-configtool/metadata.xml b/app-i18n/fcitx-configtool/metadata.xml @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>i@bitbili.net</email> - <name>Ryan Qian</name> - </maintainer> - <upstream> - <remote-id type="github">fcitx/fcitx5-configtool</remote-id> - <bugs-to>https://github.com/fcitx/fcitx5-configtool/issues</bugs-to> - </upstream> - <use> - <flag name="config-qt">Enable fcitx5-config-qt</flag> - <flag name="kcm">Enable KDE Config Module</flag> - </use> -</pkgmetadata> diff --git a/app-i18n/fcitx-qt/Manifest b/app-i18n/fcitx-qt/Manifest @@ -1 +0,0 @@ -DIST fcitx-qt-5.0.17.tar.gz 129398 BLAKE2B 32c4e1bb9dbdecec7eb688b7c8770613ca468a7e8773b79cafef7b38839c52308fe6475daeab35eccae5d7476f34aef6693bb102c3728bf6251ce491fe4aba96 SHA512 8f1dace932fe05b1f30b99987aa8f94a0477efa01360870bede1acb27f29f9eaaec7b9ff50b2a8f1cae54fd6b405b89b53123dcb3260ec75d73c0b43ae24e8c9 diff --git a/app-i18n/fcitx-qt/fcitx-qt-5.0.17.ebuild b/app-i18n/fcitx-qt/fcitx-qt-5.0.17.ebuild @@ -1,56 +0,0 @@ -# Copyright 2021-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake - -MY_PN="fcitx5-qt" -DESCRIPTION="Qt library and IM module for fcitx5" -HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5-qt" -SRC_URI="https://github.com/fcitx/fcitx5-qt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD LGPL-2.1+" -SLOT="5" -KEYWORDS="~amd64 ~x86" -IUSE="dbus only-plugin static-plugin X" -REQUIRED_USE="static-plugin? ( only-plugin )" - -DEPEND=" - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtwidgets:5 - x11-libs/libxkbcommon - !only-plugin? ( >=app-i18n/fcitx-5.0.16:5 ) - dbus? ( dev-qt/qtdbus:5 ) - X? ( - x11-libs/libX11 - x11-libs/libxcb - ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - !only-plugin? ( sys-devel/gettext ) - kde-frameworks/extra-cmake-modules - virtual/pkgconfig -" - -S="${WORKDIR}/${MY_PN}-${PV}" - -PATCHES=( - "${FILESDIR}/0001-CMake-Add-option-to-disable-X11-support.patch" - "${FILESDIR}/0002-CMake-Add-option-to-disable-DBus-support.patch" -) - -src_configure() { - # gentoo only support qt5 officially, disable qt4 & qt6 for now - local mycmakeargs=( - -DENABLE_DBUS=$(usex dbus) - -DENABLE_QT4=no - -DENABLE_QT6=no - -DENABLE_X11=$(usex X) - -DBUILD_ONLY_PLUGIN=$(usex only-plugin) - -DBUILD_STATIC_PLUGIN=$(usex static-plugin) - ) - cmake_src_configure -} diff --git a/app-i18n/fcitx-qt/files/0001-CMake-Add-option-to-disable-X11-support.patch b/app-i18n/fcitx-qt/files/0001-CMake-Add-option-to-disable-X11-support.patch @@ -1,63 +0,0 @@ -From cc3bdb96d4fb991b373068114143515ead5bc7d6 Mon Sep 17 00:00:00 2001 -From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me> -Date: Wed, 21 Sep 2022 08:59:16 +0200 -Subject: [PATCH 1/2] CMake: Add option to disable X11 support - ---- - CMakeLists.txt | 27 +++++++++++++++------------ - 1 file changed, 15 insertions(+), 12 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e526b58..144884d 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -13,6 +13,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) - option(ENABLE_QT4 "Enable Qt 4" On) - option(ENABLE_QT5 "Enable Qt 5" On) - option(ENABLE_QT6 "Enable Qt 6" Off) -+option(ENABLE_X11 "Enable X11" On) - option(BUILD_ONLY_PLUGIN "Build only plugin" Off) - option(BUILD_STATIC_PLUGIN "Build plugin as static" Off) - option(WITH_FCITX_PLUGIN_NAME "Enable plugin name with fcitx" On) -@@ -42,24 +43,26 @@ include(ECMSetupVersion) - include(ECMGenerateHeaders) - include(ECMUninstallTarget) - --find_package(XCB REQUIRED COMPONENTS XCB) - find_package(XKBCommon 0.5.0 REQUIRED COMPONENTS XKBCommon) - if (NOT BUILD_ONLY_PLUGIN) --find_package(Fcitx5Utils 5.0.16 REQUIRED) -+ find_package(Fcitx5Utils 5.0.16 REQUIRED) -+endif() -+if (ENABLE_X11) -+ find_package(XCB REQUIRED COMPONENTS XCB) -+ find_package(X11 REQUIRED) -+ -+ add_library(X11Import UNKNOWN IMPORTED) -+ set_target_properties(X11Import PROPERTIES -+ IMPORTED_LOCATION "${X11_X11_LIB}" -+ INTERFACE_INCLUDE_DIRECTORIES "${X11_X11_INCLUDE_PATH}") - endif() --find_package(X11 REQUIRED) -- --add_library(X11Import UNKNOWN IMPORTED) --set_target_properties(X11Import PROPERTIES -- IMPORTED_LOCATION "${X11_X11_LIB}" -- INTERFACE_INCLUDE_DIRECTORIES "${X11_X11_INCLUDE_PATH}") - - if (BUILD_ONLY_PLUGIN) --# Dup a little bit option here. --include(CompilerSettings) -+ # Dup a little bit option here. -+ include(CompilerSettings) - else() --include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake") --find_package(Gettext REQUIRED) -+ include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake") -+ find_package(Gettext REQUIRED) - endif() - - set(Fcitx5Qt6_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}/Fcitx5Qt6) --- -2.41.0 - diff --git a/app-i18n/fcitx-qt/files/0002-CMake-Add-option-to-disable-DBus-support.patch b/app-i18n/fcitx-qt/files/0002-CMake-Add-option-to-disable-DBus-support.patch @@ -1,74 +0,0 @@ -From 76db7740c646dfcc5738696c974ae385fd2ed773 Mon Sep 17 00:00:00 2001 -From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me> -Date: Wed, 21 Sep 2022 08:59:30 +0200 -Subject: [PATCH 2/2] CMake: Add option to disable DBus support - ---- - CMakeLists.txt | 13 ++++++++++--- - qt5/CMakeLists.txt | 10 +++++++--- - 2 files changed, 17 insertions(+), 6 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 144884d..f0830ba 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -10,6 +10,7 @@ find_package(ECM 1.4.0 REQUIRED) - - set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) - -+option(ENABLE_DBUS "Enable DBus" On) - option(ENABLE_QT4 "Enable Qt 4" On) - option(ENABLE_QT5 "Enable Qt 5" On) - option(ENABLE_QT6 "Enable Qt 6" Off) -@@ -75,19 +76,25 @@ if(ENABLE_QT4) - endif() - - if(ENABLE_QT5) -- find_package(Qt5 ${REQUIRED_QT5_VERSION} CONFIG REQUIRED Core DBus Widgets) -+ find_package(Qt5 ${REQUIRED_QT5_VERSION} CONFIG REQUIRED Core Widgets) - find_package(Qt5Gui ${REQUIRED_QT5_VERSION} REQUIRED Private) -+ if(ENABLE_DBUS) -+ find_package(Qt5 ${REQUIRED_QT5_VERSION} CONFIG REQUIRED DBus) -+ endif() - add_subdirectory(qt5) - endif() - - if(ENABLE_QT6) -- find_package(Qt6 ${REQUIRED_QT6_VERSION} CONFIG REQUIRED Core DBus Widgets) -+ find_package(Qt6 ${REQUIRED_QT6_VERSION} CONFIG REQUIRED Core Widgets) - find_package(Qt6Gui ${REQUIRED_QT6_VERSION} REQUIRED Private) -+ if (ENABLE_DBUS) -+ find_package(Qt6 ${REQUIRED_QT6_VERSION} CONFIG REQUIRED DBus) -+ endif() - add_subdirectory(qt6) - endif() - - if(NOT BUILD_ONLY_PLUGIN) --add_subdirectory(po) -+ add_subdirectory(po) - endif() - - enable_testing() -diff --git a/qt5/CMakeLists.txt b/qt5/CMakeLists.txt -index 9defa3d..f2c207b 100644 ---- a/qt5/CMakeLists.txt -+++ b/qt5/CMakeLists.txt -@@ -1,8 +1,12 @@ --add_subdirectory(dbusaddons) --add_subdirectory(platforminputcontext) -+if (ENABLE_DBUS) -+ add_subdirectory(dbusaddons) -+ add_subdirectory(platforminputcontext) -+endif() - - if(NOT BUILD_ONLY_PLUGIN) -- add_subdirectory(guiwrapper) -+ if (ENABLE_DBUS) -+ add_subdirectory(guiwrapper) -+ endif() - add_subdirectory(widgetsaddons) - add_subdirectory(quickphrase-editor) - add_subdirectory(immodule-probing) --- -2.41.0 - diff --git a/app-i18n/fcitx-qt/metadata.xml b/app-i18n/fcitx-qt/metadata.xml @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <upstream> - <remote-id type="github">fcitx/fcitx5-qt</remote-id> - <bugs-to>https://github.com/fcitx/fcitx5-qt/issues</bugs-to> - </upstream> - <use> - <flag name="only-plugin">Build only plugin</flag> - <flag name="static-plugin">Build plugin as static</flag> - </use> -</pkgmetadata>