summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongxiang Liang <tanekliang@gmail.com>2024-11-15 19:21:04 +0800
committerYixun Lan <dlan@gentoo.org>2024-11-17 17:44:12 +0800
commit01cc26b05fa1e1e015da09823629659a2a8bea72 (patch)
treebdbfbaaa82fd2a4b878d62013ceb9367f4448fe4 /app-i18n/librime/librime-1.12.0.ebuild
parentdev-ruby/unf: destabilize 0.1.4-r1 for ~x86 (diff)
downloadgentoo-01cc26b05fa1e1e015da09823629659a2a8bea72.tar.gz
gentoo-01cc26b05fa1e1e015da09823629659a2a8bea72.tar.bz2
gentoo-01cc26b05fa1e1e015da09823629659a2a8bea72.zip
app-i18n/librime: add 1.12.0
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-i18n/librime/librime-1.12.0.ebuild')
-rw-r--r--app-i18n/librime/librime-1.12.0.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/app-i18n/librime/librime-1.12.0.ebuild b/app-i18n/librime/librime-1.12.0.ebuild
new file mode 100644
index 000000000000..30ed5c8e5578
--- /dev/null
+++ b/app-i18n/librime/librime-1.12.0.ebuild
@@ -0,0 +1,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
+}