blob: f3d8887bec2e35a58ada84eecf14acb6f216b370 (
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
51
|
# Copyright 2012-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit cmake-utils
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/rime/librime"
EGIT_SUBMODULES=()
fi
DESCRIPTION="RIME (Rime Input Method Engine) core library"
HOMEPAGE="https://rime.im/ https://github.com/rime/librime"
if [[ "${PV}" == "9999" ]]; then
SRC_URI=""
else
SRC_URI="https://github.com/rime/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="BSD"
SLOT="0/1"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="test"
BDEPEND=""
RDEPEND="app-i18n/opencc:0=
dev-cpp/glog:0=
dev-cpp/yaml-cpp:0=
dev-libs/boost:0=[threads]
dev-libs/leveldb:0=
dev-libs/marisa:0="
DEPEND="${RDEPEND}
x11-base/xorg-proto
test? ( dev-cpp/gtest )"
DOCS=(CHANGELOG.md README.md)
src_configure() {
local mycmakeargs=(
-DBOOST_USE_CXX11=ON
-DBUILD_TEST=$(usex test ON OFF)
-DCMAKE_DISABLE_FIND_PACKAGE_Gflags=ON
-DCMAKE_DISABLE_FIND_PACKAGE_Iconv=ON
-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
)
cmake-utils_src_configure
}
|