blob: 30ed5c8e55783d9f3bb2886f733004a44aaf3838 (
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
|
# Copyright 2012-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake multiprocessing flag-o-matic
DESCRIPTION="RIME (Rime Input Method Engine) core library"
HOMEPAGE="https://rime.im/ https://github.com/rime/librime"
SRC_URI="https://github.com/rime/librime/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD BSD-2 Boost-1.0 MIT"
SLOT="0/1-${PV}"
KEYWORDS="~amd64 ~loong ~x86"
IUSE="debug test"
RESTRICT="!test? ( test )"
RDEPEND="
app-i18n/opencc:=
dev-cpp/glog:=
dev-cpp/yaml-cpp:=
>=dev-libs/boost-1.74:=
dev-libs/leveldb:=
dev-libs/marisa
"
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )
"
DOCS=( CHANGELOG.md README.md )
src_configure() {
# for glog
if use debug; then
append-cxxflags -DDCHECK_ALWAYS_ON
local CMAKE_BUILD_TYPE=Debug
else
append-cxxflags -DNDEBUG
fi
local mycmakeargs=(
-DBUILD_TEST=$(usex test)
-DCMAKE_BUILD_PARALLEL_LEVEL=$(makeopts_jobs)
-DENABLE_EXTERNAL_PLUGINS=ON
-DINSTALL_PRIVATE_HEADERS=ON
)
cmake_src_configure
}
|