1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake gnome2-utils xdg-utils git-r3
7 EGIT_REPO_URI
="https://github.com/fcitx/libime.git"
9 if [[ "${PV}" == 9999* ]]; then
15 _kenlmcommit
="01c49fe86714276f77be9278d00906fc994256c1"
17 SRC_URI
="https://download.fcitx-im.org/data/lm_sc.3gm.arpa-20140820.tar.bz2 -> fcitx5-lm_sc.3gm.arpa-20140820.tar.bz2
18 https://download.fcitx-im.org/data/dict.utf8-20210402.tar.xz -> fcitx5-dict.utf8-20210402.tar.xz
19 https://download.fcitx-im.org/data/table.tar.gz -> fcitx5-table.tar.gz
20 https://github.com/kpu/kenlm/archive/${_kenlmcommit}.tar.gz -> kenlm.tar.gz
23 DESCRIPTION
="Fcitx5 Next generation of fcitx "
24 HOMEPAGE
="https://fcitx-im.org/ https://gitlab.com/fcitx/libime"
26 LICENSE
="BSD-1 GPL-2+ LGPL-2+ MIT"
31 RDEPEND
="app-i18n/fcitx5"
34 kde-frameworks/extra-cmake-modules:5
38 ln -s "${DISTDIR}/fcitx5-lm_sc.3gm.arpa-20140820.tar.bz2" data
/lm_sc
.3gm.arpa-20140820.
tar.bz2 || die
39 ln -s "${DISTDIR}/fcitx5-dict.utf8-20210402.tar.xz" data
/dict.utf8-20210402.
tar.xz || die
40 ln -s "${DISTDIR}/fcitx5-table.tar.gz" data
/table.
tar.gz || die
41 tar -xvzf "${DISTDIR}/kenlm.tar.gz" -C src
/libime
/core
/kenlm || die
48 -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
49 -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"