mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
sed -E '/dev-libs\/gobject-introspection(:=|\s|$|-[0-9]|\[)/ { s/(>=)?dev-libs\/gobject-introspection(-[0-9.r-]*)?/>=dev-libs\/gobject-introspection-1.82.0-r2/ }' */*/*.ebuild -i
+ manually going over to undo the false positives or if the version
requirement was higher.
Bug: https://bugs.gentoo.org/947058
See-Also: ae37e3f389808700bd0f4343ee04888f0ef179d2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44336
Closes: https://github.com/gentoo/gentoo/pull/44336
Signed-off-by: Sam James <sam@gentoo.org>
61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
# Copyright 2023-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
MY_PN="fcitx5-gtk"
|
|
|
|
inherit cmake gnome2-utils unpacker xdg
|
|
|
|
DESCRIPTION="Gtk im module for fcitx5 and glib based dbus client library"
|
|
HOMEPAGE="https://github.com/fcitx/fcitx5-gtk"
|
|
SRC_URI="https://download.fcitx-im.org/fcitx5/${MY_PN}/${MY_PN}-${PV}.tar.zst -> ${P}.tar.zst"
|
|
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="5"
|
|
KEYWORDS="amd64 ~arm64 ~loong ~riscv ~x86"
|
|
IUSE="gtk2 +gtk3 +gtk4 +introspection +snooper onlyplugin wayland +X"
|
|
REQUIRED_USE="|| ( gtk2 gtk3 gtk4 )"
|
|
|
|
RDEPEND="
|
|
app-i18n/fcitx:5
|
|
>=dev-libs/glib-2.56
|
|
x11-libs/libxkbcommon
|
|
gtk2? ( x11-libs/gtk+:2 )
|
|
gtk3? ( x11-libs/gtk+:3[wayland?,X?] )
|
|
gtk4? ( gui-libs/gtk:4[wayland?,X?] )
|
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2 )
|
|
X? ( x11-libs/libX11 )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-util/glib-utils
|
|
virtual/pkgconfig
|
|
kde-frameworks/extra-cmake-modules:0
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DENABLE_GTK2_IM_MODULE=$(usex gtk2)
|
|
-DENABLE_GTK3_IM_MODULE=$(usex gtk3)
|
|
-DENABLE_GTK4_IM_MODULE=$(usex gtk4)
|
|
-DENABLE_SNOOPER=$(usex snooper)
|
|
-DENABLE_GIR=$(usex introspection)
|
|
-DBUILD_ONLY_PLUGIN=$(usex onlyplugin)
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_pkg_postinst
|
|
use gtk2 && gnome2_query_immodules_gtk2
|
|
use gtk3 && gnome2_query_immodules_gtk3
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_pkg_postrm
|
|
use gtk2 && gnome2_query_immodules_gtk2
|
|
use gtk3 && gnome2_query_immodules_gtk3
|
|
}
|