mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-15 22:18:46 -04:00
47 lines
1.0 KiB
Bash
47 lines
1.0 KiB
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake xdg-utils flag-o-matic toolchain-funcs
|
|
|
|
if [[ "${PV}" == 9999* ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/fcitx/libime.git"
|
|
EGIT_SUBMODULES=(src/libime/core/kenlm)
|
|
else
|
|
KEYWORDS="~amd64 ~arm64 ~loong ~x86"
|
|
SRC_URI="https://download.fcitx-im.org/fcitx5/libime/libime-${PV}_dict.tar.xz"
|
|
fi
|
|
|
|
DESCRIPTION="Fcitx5 Next generation of fcitx "
|
|
HOMEPAGE="https://fcitx-im.org/ https://gitlab.com/fcitx/libime"
|
|
|
|
LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT"
|
|
SLOT="5"
|
|
|
|
RDEPEND="app-i18n/fcitx:5"
|
|
DEPEND="${RDEPEND}
|
|
app-arch/zstd:=
|
|
dev-libs/boost:=
|
|
kde-frameworks/extra-cmake-modules:5
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_prepare() {
|
|
cmake_src_prepare
|
|
xdg_environment_reset
|
|
}
|
|
|
|
src_configure() {
|
|
if [[ $(tc-get-cxx-stdlib) == libc++ ]]; then
|
|
append-cxxflags -D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
|
|
fi
|
|
|
|
local mycmakeargs=(
|
|
-DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
|
-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
|
|
)
|
|
cmake_src_configure
|
|
}
|