blob: a1ed203b8f035f9ae6d0c818f06a55e8f9d4a834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake unpacker
DESCRIPTION="Fcitx5 Next generation of fcitx"
HOMEPAGE="https://fcitx-im.org/"
SRC_URI="https://download.fcitx-im.org/fcitx5/libime/libime-${PV}_dict.tar.zst"
LICENSE="LGPL-2+"
SLOT="5"
KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
IUSE="+data doc test"
RESTRICT="!test? ( test )"
RDEPEND="
>=app-i18n/fcitx-5.1.5:5
app-arch/zstd:=
dev-libs/boost:=
"
DEPEND="${RDEPEND}"
BDEPEND="
kde-frameworks/extra-cmake-modules:0
virtual/pkgconfig
doc? (
app-text/doxygen
dev-texlive/texlive-fontutils
)
"
src_configure() {
local mycmakeargs=(
-DENABLE_DATA=$(usex data)
-DENABLE_DOC=$(usex doc)
-DENABLE_TEST=$(usex test)
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_src_compile doc
}
src_install() {
cmake_src_install
use doc && dodoc -r "${BUILD_DIR}"/doc/*
}
|