From 63a209b0ceb0c80f7a8af7fd8b6fa56687bf1d0b Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 17 Jul 2022 10:43:49 -0400 Subject: fcitx5 --- app-i18n/fcitx5/fcitx5-5.0.18.ebuild | 94 ++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 app-i18n/fcitx5/fcitx5-5.0.18.ebuild (limited to 'app-i18n/fcitx5/fcitx5-5.0.18.ebuild') diff --git a/app-i18n/fcitx5/fcitx5-5.0.18.ebuild b/app-i18n/fcitx5/fcitx5-5.0.18.ebuild new file mode 100644 index 0000000..0c63274 --- /dev/null +++ b/app-i18n/fcitx5/fcitx5-5.0.18.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fcitx/fcitx5.git" + KEYWORDS="" +else + SRC_URI="https://github.com/fcitx/fcitx5/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Fcitx5 Next generation of fcitx " +HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx5" +SRC_URI+=" https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz" + +LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT" +SLOT="5" +IUSE="+enchant test coverage doc presage systemd wayland +X" +REQUIRED_USE=" + || ( wayland X ) + coverage? ( test ) +" + +RDEPEND="dev-libs/glib:2 + sys-apps/dbus + dev-libs/json-c + dev-libs/libfmt + sys-apps/util-linux + virtual/libiconv + virtual/libintl + x11-libs/libxkbcommon[X?] + wayland? ( + dev-libs/wayland + dev-libs/wayland-protocols + ) + X? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXinerama + x11-libs/libxkbfile + x11-libs/xcb-imdkit + ) + x11-misc/xkeyboard-config + x11-libs/cairo[X?] + x11-libs/pango + media-libs/fontconfig + enchant? ( app-text/enchant:= ) + systemd? ( sys-apps/systemd ) + app-text/iso-codes + app-i18n/unicode-cldr + dev-libs/libxml2 + dev-libs/libevent" +DEPEND="${RDEPEND} + kde-frameworks/extra-cmake-modules:5 + virtual/pkgconfig" + +src_prepare() { + pwd + ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/modules/spell/dict/en_dict-20121020.tar.gz || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" + -DENABLE_TEST=$(usex test) + -DENABLE_COVERAGE=$(usex coverage) + -DENABLE_ENCHANT=$(usex enchant) + -DENABLE_PRESAGE=$(usex presage) + -DENABLE_WAYLAND=$(usex wayland) + -DENABLE_X11=$(usex X) + -DENABLE_DOC=$(usex doc) + -DUSE_SYSTEMD=$(usex systemd) + ) + cmake_src_configure +} + +pkg_postinst() { + xdg_pkg_postinst + + elog + elog "Follow the instrcutions of https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx" + elog "and change the fcitx to fcitx5" + elog +} \ No newline at end of file -- cgit v1.2.3