From 91d2a61dab5c0dbec32708f49131dd288e91092d Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 24 Oct 2026 15:37:12 +1100 Subject: [PATCH] app-i18n/ibus-rime: switch 9999 to cmake.eclass, correct LICENSE - Upstream now generates rime.xml from rime.xml.in, so the sed on rime.xml failed, and the Makefile wrapper leaves `CMAKE_INSTALL_PREFIX` unset, so translations went to /usr/local; build with cmake.eclass instead. - Pass `RIME_DATA_DIR` because FindRimeData otherwise requires rime-data at build time, and skip the librime and plum submodules, which the CMake build does not use. - ibus-engine-rime links libglib-2.0 directly, and librime changes its subslot with every release, so add glib and bind librime. - Upstream allows any later version of the license: https://raw.githubusercontent.com/rime/ibus-rime/57fba74724611b3c21e36656123fb62cf10b759c/README.md Signed-off-by: Zakk --- app-i18n/ibus-rime/ibus-rime-9999.ebuild | 25 +++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/app-i18n/ibus-rime/ibus-rime-9999.ebuild b/app-i18n/ibus-rime/ibus-rime-9999.ebuild index 5aec461a61..c2b69e9508 100644 --- a/app-i18n/ibus-rime/ibus-rime-9999.ebuild +++ b/app-i18n/ibus-rime/ibus-rime-9999.ebuild @@ -1,26 +1,33 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit git-r3 +inherit cmake git-r3 DESCRIPTION="Rime Input Method Engine for IBus Framework" HOMEPAGE="https://rime.im/ https://github.com/rime/ibus-rime" EGIT_REPO_URI="https://github.com/rime/${PN}.git" +EGIT_SUBMODULES=() -LICENSE="GPL-3" +LICENSE="GPL-3+" SLOT="0" COMMON_DEPEND="app-i18n/ibus - app-i18n/librime + app-i18n/librime:= + dev-libs/glib:2 x11-libs/libnotify" -DEPEND="${COMMON_DEPEND} - dev-build/cmake" +DEPEND="${COMMON_DEPEND}" RDEPEND="${COMMON_DEPEND} app-i18n/rime-data" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig +" -src_prepare() { - sed -i -e "/libexecdir/s:/usr/lib:/usr/libexec:" Makefile || die - sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die +src_configure() { + local mycmakeargs=( + -DRIME_DATA_DIR="${EPREFIX}/usr/share/rime-data" + ) + cmake_src_configure }