forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-i18n/librime: version bump, 1.7.3
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Yixun Lan <[email protected]>
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST librime-1.5.3.tar.gz 2847083 BLAKE2B 4ffb2c5ddaf52f9c9227fa4ea019ef2965e61139f678798c08ef37dc52b863763651b63ed820caad0de1b06f48ab5c1a7a2682653340d2ae7f5f9eec3cec80b2 SHA512 4d7f6ec43bd5728f59f0b3581bcd8a46128651430b6873017d80659942b8f6aa1a2f25f439ba8fba461fe22acbf701c2da7a786104a2e4852a70a89cdc0452d3 | ||
DIST librime-1.6.0.tar.gz 2856645 BLAKE2B de6d843a5028f6b0308c3432ada7dd00c08a71e73fe799b157fd71a4054c757a00d3b0fdc7743d94d6e87b03f256e822ee29c16c86f96f5d24c7d864266c4f78 SHA512 4aeace0f1628293d4b607483ab976841093a1ff03df8bf63d545715af00254d1f0b1bdcd120795ea688d152287069881e0740372f40e2174a14ae6f53b7f950b | ||
DIST librime-1.6.1.tar.gz 2856751 BLAKE2B c6b01342dcc9e8ee571cb14a36b851a50bf7b191211197421647ab05e6fa64c676f8936920870dcc335d06c635e354fed706832e41192bccd0a17aff02df1a43 SHA512 944361e9459662bb97b97ce9e2651acf0beb368b3769d1b9576cf4e5c2779302cae470fa39f5bc262cabb6a0e8590bcb77d32ffc87d7385b9465869fe7d5bcb3 | ||
DIST librime-1.7.3.tar.gz 2859513 BLAKE2B 834622860cdc3038d1b983f476bca70f211dfbc3bc2b565a998163e22688841ee3a0c7f9a64bce285e2f3f5b5a9a802bd5506f17904ccb3291babf80d4748fb5 SHA512 8767d17c3d14a5a1bbb8269fab1627b907de72c288b362fdbc6191223937da21e8b18471b4ae8f83ce5afc0ec5c3ab12fbcb49930eb9969c1764c7390d9ee4b0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Copyright 2012-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="7" | ||
|
||
inherit cmake | ||
|
||
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-${PV}" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
IUSE="debug test" | ||
RESTRICT="!test? ( test )" | ||
|
||
BDEPEND="dev-libs/capnproto:0" | ||
RDEPEND="app-i18n/opencc:0= | ||
>=dev-cpp/glog-0.3.5:0= | ||
dev-cpp/yaml-cpp:0= | ||
dev-libs/boost:0=[threads] | ||
dev-libs/capnproto:0= | ||
dev-libs/leveldb:0= | ||
dev-libs/marisa:0=" | ||
DEPEND="${RDEPEND} | ||
dev-libs/darts | ||
dev-libs/utfcpp | ||
x11-base/xorg-proto | ||
test? ( dev-cpp/gtest )" | ||
|
||
DOCS=(CHANGELOG.md README.md) | ||
|
||
src_prepare() { | ||
# Use headers of dev-libs/darts, dev-libs/utfcpp and x11-base/xorg-proto. | ||
sed -e "/\${PROJECT_SOURCE_DIR}\/thirdparty/d" -i CMakeLists.txt || die | ||
rm -r thirdparty || die | ||
|
||
cmake_src_prepare | ||
} | ||
|
||
src_configure() { | ||
local -x CXXFLAGS="${CXXFLAGS} -I${ESYSROOT}/usr/include/utf8cpp" | ||
|
||
if use debug; then | ||
CXXFLAGS+=" -DDCHECK_ALWAYS_ON" | ||
else | ||
CXXFLAGS+=" -DNDEBUG" | ||
fi | ||
|
||
local mycmakeargs=( | ||
-DBOOST_USE_CXX11=ON | ||
-DBUILD_TEST=$(usex test ON OFF) | ||
-DCMAKE_DISABLE_FIND_PACKAGE_Gflags=ON | ||
-DENABLE_EXTERNAL_PLUGINS=ON | ||
-DINSTALL_PRIVATE_HEADERS=ON | ||
) | ||
|
||
cmake_src_configure | ||
} |