diff options
author | Yongxiang Liang <tanekliang@gmail.com> | 2024-01-05 12:29:56 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2024-01-11 00:20:01 +0000 |
commit | 35044f2f8d7f67dbd9310bb08eb7a2f54345656a (patch) | |
tree | 90806be24df38f91771d322c0f15cb8725b52c7e /app-i18n/fcitx-gtk | |
parent | app-i18n/fcitx-qt: add 5.1.4 (diff) | |
download | gentoo-35044f2f8d7f67dbd9310bb08eb7a2f54345656a.tar.gz gentoo-35044f2f8d7f67dbd9310bb08eb7a2f54345656a.tar.bz2 gentoo-35044f2f8d7f67dbd9310bb08eb7a2f54345656a.zip |
app-i18n/fcitx-gtk: add 5.1.1
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-i18n/fcitx-gtk')
-rw-r--r-- | app-i18n/fcitx-gtk/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/fcitx-gtk/fcitx-gtk-5.1.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app-i18n/fcitx-gtk/Manifest b/app-i18n/fcitx-gtk/Manifest index 31583eb9c645..f740dbd370c3 100644 --- a/app-i18n/fcitx-gtk/Manifest +++ b/app-i18n/fcitx-gtk/Manifest @@ -1 +1,2 @@ DIST fcitx-gtk-5.1.0.tar.xz 54128 BLAKE2B d6c4f6607067955b260a3a53b29bad210b6358151ae0542ff5d414e8fd75aebc51c9d616f845e4c47e28bd7f18874e0bfb62a8a288a7ae66d0bab9d2c54ba9d6 SHA512 6b042714a4facb253d0e5cce119239e923511b809681909b63a2c1d47ecfc403672522c24f9ac91c12ed3e0b61c5023ec9e340d51f6aefc3f61fa1a1fbe39dfc +DIST fcitx-gtk-5.1.1.tar.xz 53716 BLAKE2B 6231d3b0c2fd788f0f780aee41837b9d8fb21f730b271082d8517f6f0da7e0a0d5216fd6364998bfe535872cf334b63fb1b326167175657d2c5cb59bac4aae45 SHA512 14dc84661e33435df5157127b2a4a81adc399cdc833e1c32795783d60bf10fd301fb658fc48673cad87abccfe3bccbb7b4ee0d0da74460b7ef1d6529a554a3eb diff --git a/app-i18n/fcitx-gtk/fcitx-gtk-5.1.1.ebuild b/app-i18n/fcitx-gtk/fcitx-gtk-5.1.1.ebuild new file mode 100644 index 000000000000..815b4c7bb7f6 --- /dev/null +++ b/app-i18n/fcitx-gtk/fcitx-gtk-5.1.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="fcitx5-gtk" + +inherit cmake gnome2-utils 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.xz -> ${P}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="5" +KEYWORDS="~amd64 ~loong ~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 ) + X? ( x11-libs/libX11 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + kde-frameworks/extra-cmake-modules:0 +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +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 +} |