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
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')
-rw-r--r--app-i18n/librime/Manifest1
-rw-r--r--app-i18n/librime/librime-1.12.0.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/app-i18n/librime/Manifest b/app-i18n/librime/Manifest
index 222df00da0fe..ad7ec3a6f636 100644
--- a/app-i18n/librime/Manifest
+++ b/app-i18n/librime/Manifest
@@ -1,3 +1,4 @@
DIST librime-1.11.2.tar.gz 2635435 BLAKE2B 6106b6934761fd61508756bfcdfc2b892ee6b31eec9816569e9a6b96fd91cf6255f119de23dac70e8b56f06c52f7bd278d9ad2434419681a18d75e2c14b86077 SHA512 7b8ba708489d4d6bd6f71618f3c3270d07e088aae5ecdfcba5128a456dc49d3799e335b3ba386a1894ee01f5c5a51993e0a1821ff46d8addb02d0c8c4aacf5f3
+DIST librime-1.12.0.tar.gz 2638566 BLAKE2B cbd734181eb80dd919a0f27d787dd5625974ed8b76e7f294308a7ee1b50ee904ac6460e3da4b3c1ec96c65dcfef011ae8dc6f6db880a21b2ab6fd2c96bfe203e SHA512 46c2d740dea5c0592266c7b3aaff1deba50ff5be6dbab48cc2fd49a5b7b0c9c28d8e0cc858e7d4845b70b7850c1e20ef559525ed3b70da9ad1bd65562f0df400
DIST librime-1.7.3.tar.gz 2859513 BLAKE2B 834622860cdc3038d1b983f476bca70f211dfbc3bc2b565a998163e22688841ee3a0c7f9a64bce285e2f3f5b5a9a802bd5506f17904ccb3291babf80d4748fb5 SHA512 8767d17c3d14a5a1bbb8269fab1627b907de72c288b362fdbc6191223937da21e8b18471b4ae8f83ce5afc0ec5c3ab12fbcb49930eb9969c1764c7390d9ee4b0
DIST librime-1.9.0.tar.gz 2628091 BLAKE2B 5026fbe537520679b60b7f39cab65e97e175d574ad709e2b09bb5d71f6655f48f9f046d2caeaad73dcd839f58cd76796eded4deb775d6817a99ab7de107187a1 SHA512 7f432bbfeedc0949391fca82ebf080d113089ec9f0ab40f4bc63cf3037052a27b4ef44e55e7fc43b1217cf6635c62be0fb7520c3cc1492ec169fe5ee864e61ea
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
+}