diff options
Diffstat (limited to 'app-i18n/fcitx5-gtk')
-rw-r--r-- | app-i18n/fcitx5-gtk/Manifest | 2 | ||||
-rw-r--r-- | app-i18n/fcitx5-gtk/fcitx5-gtk-5.0.8.ebuild | 60 |
2 files changed, 62 insertions, 0 deletions
diff --git a/app-i18n/fcitx5-gtk/Manifest b/app-i18n/fcitx5-gtk/Manifest new file mode 100644 index 0000000..718c0a4 --- /dev/null +++ b/app-i18n/fcitx5-gtk/Manifest @@ -0,0 +1,2 @@ +DIST fcitx5-gtk-5.0.8.tar.gz 75818 BLAKE2B bf1ddc4d19de0784b29419aa14186d5fd6d93ed12e01cd0ea0dc687c3c38198cdfb396b06fdac2e48dce2374ec96953618dae8f645a2b84eabea56fc152b1dd2 SHA512 99c1972bfc109ff65f80a009aed92780e457e5730a9f3bdab460fafe71bbe76538b1f49378116be09deccc74ace016737e145229390c5cb6126ec08a7cb02cbd +EBUILD fcitx5-gtk-5.0.8.ebuild 1454 BLAKE2B 4357523a3934e3c1dd4b252c77e040427adcb89d31f74ba2a7908a38e65c6144115759d47ffa1fae01cdab937c79b552ce3a4e8f31330be76447d31784c2c815 SHA512 542472fddfae169bba97b69479e0dae316b69524a71e649dffedb4aad354a500ec354ca7b038e3c7cbfd99cf071e9d1da87bee791498366fa9a97a4618c0775c diff --git a/app-i18n/fcitx5-gtk/fcitx5-gtk-5.0.8.ebuild b/app-i18n/fcitx5-gtk/fcitx5-gtk-5.0.8.ebuild new file mode 100644 index 0000000..bb89967 --- /dev/null +++ b/app-i18n/fcitx5-gtk/fcitx5-gtk-5.0.8.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake gnome2-utils xdg + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fcitx/fcitx5-gtk.git" + KEYWORDS="" +else + SRC_URI="https://github.com/fcitx/fcitx5-gtk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Gtk im module for fcitx5 and glib based dbus client library" +HOMEPAGE="https://github.com/fcitx/fcitx5-gtk" + +LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT" +SLOT="5" +IUSE="+gtk2 +gtk3 +introspection +snooper" + +RDEPEND="app-i18n/fcitx5 + gtk2? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + introspection? ( dev-libs/gobject-introspection ) + kde-frameworks/extra-cmake-modules" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" + -DCMAKE_BUILD_TYPE=Release + -DENABLE_GTK2_IM_MODULE=$(usex gtk2) + -DENABLE_GTK3_IM_MODULE=$(usex gtk3) + -DENABLE_GTK4_IM_MODULE=OFF + -DENABLE_SNOOPER=$(usex snooper) + -DENABLE_GIR=$(usex introspection) + ) + 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 +}
\ No newline at end of file |