dev-util/rust-analyzer: bump version to 20220704
[gentoo-zh.git] / app-i18n / libime / libime-9999.ebuild
blob33b9a8f5672f432810cf0494b22ef0c7ee7a7131
1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
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
16         KEYWORDS=""
17 else
18         KEYWORDS="~amd64 ~x86"
19         EGIT_COMMIT="${PV}"
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"
26 SLOT="5"
27 IUSE=""
28 REQUIRED_USE=""
30 RDEPEND="app-i18n/fcitx:5"
31 DEPEND="${RDEPEND}
32         dev-libs/boost
33         kde-frameworks/extra-cmake-modules:5
34         virtual/pkgconfig"
36 src_prepare() {
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
40         cmake_src_prepare
41         xdg_environment_reset
44 src_configure() {
45         local mycmakeargs=(
46                 -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
47                 -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
48         )
49         cmake_src_configure
52 src_install(){
53         cmake_src_install