commit:     b854ea2ea5935da0f91773face55e087539b45a9
Author:     Yongxiang Liang <tanekliang <AT> gmail <DOT> com>
AuthorDate: Wed Dec 24 04:08:20 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Thu Dec 25 10:46:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b854ea2e

app-i18n/librime: add 1.15.0

Signed-off-by: Yongxiang Liang <tanekliang <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 app-i18n/librime/Manifest              |  1 +
 app-i18n/librime/librime-1.15.0.ebuild | 53 ++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/app-i18n/librime/Manifest b/app-i18n/librime/Manifest
index cc16de4e4cd0..812997f6a825 100644
--- a/app-i18n/librime/Manifest
+++ b/app-i18n/librime/Manifest
@@ -1,2 +1,3 @@
 DIST librime-1.13.1.tar.gz 2639960 BLAKE2B 
3fdeea1d150f68a63469988d2bce87c48a9e2ed04ffb3a7c10d0a27f856c9a6949bba4af5c41e111777044f715b1ed00f0bb8a1fb09382e9ec49412ae271e5f3
 SHA512 
949d7a94bb498dc1a92aaae5e3216efd25dd0b5d52aaa7f69953ccc63f1bc2590be87636bd85111d0a5222b4ef8e4e152beb45349a9f91df58de2ae631d2b040
 DIST librime-1.14.0.tar.gz 2642080 BLAKE2B 
cefb02ba93fa90666fdd56cfd8b6f8eb326d1c3ed4c63031d992ff833101c0a91ed065eee72b70fe8d6ba3cbbbd48f820282fbb9831062288cb4d016b6f0c9bf
 SHA512 
44baa823a79a1fbc8b48b149184a614a5710c2f858d4c06ffa99768a657b193f392d260532ba635e163eae73e55590632233c50e48b356e64433465c7451ac0f
+DIST librime-1.15.0.tar.gz 2642600 BLAKE2B 
9f67b2591de01148eee88580768784187635ed52a721765e2c919a03f6985063dcc1e3a24b9e02a90d41e3e961866c5a07552e6ed40ba2c2439bbb1b8fcc1a08
 SHA512 
9f808cc8dfe462a9076b2feb01acbd18505f23438757bd7f2efca9226c8115ce5c5852a70cae0abe85ecaea2a11b4944c8d4a1c06965af4bed5cd0274a07c369

diff --git a/app-i18n/librime/librime-1.15.0.ebuild 
b/app-i18n/librime/librime-1.15.0.ebuild
new file mode 100644
index 000000000000..fd2e047300dd
--- /dev/null
+++ b/app-i18n/librime/librime-1.15.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2012-2025 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 ~arm64 ~loong ~ppc ~ppc64 ~riscv ~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() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/944741
+       # https://github.com/rime/librime/issues/954
+       filter-lto
+
+       # 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
+}

Reply via email to