1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake xdg-utils git-r3
7 EGIT_REPO_URI="https://github.com/fcitx/libime.git"
9 SRC_URI="https://download.fcitx-im.org/data/lm_sc.arpa-20220630.tar.xz -> fcitx5-lm_sc.arpa-20220630.tar.xz
10 https://download.fcitx-im.org/data/dict_sc.txt-20220628.tar.xz -> fcitx5-dict_sc.txt-20220628.tar.xz
11 https://download.fcitx-im.org/data/table.tar.gz -> fcitx5-table.tar.gz
13 EGIT_SUBMODULES=(src/libime/kenlm)
15 if [[ "${PV}" == 9999* ]]; then
18 KEYWORDS="~amd64 ~x86"
22 DESCRIPTION="Fcitx5 Next generation of fcitx "
23 HOMEPAGE="https://fcitx-im.org/ https://gitlab.com/fcitx/libime"
25 LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT"
30 RDEPEND="app-i18n/fcitx:5"
33 kde-frameworks/extra-cmake-modules:5
37 ln -s "${DISTDIR}/fcitx5-lm_sc.arpa-20220630.tar.xz" data/lm_sc.arpa-20220630.tar.xz || die
38 ln -s "${DISTDIR}/fcitx5-dict_sc.txt-20220628.tar.xz" data/dict_sc.txt-20220628.tar.xz || die
39 ln -s "${DISTDIR}/fcitx5-table.tar.gz" data/table.tar.gz || die
46 -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
47 -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"