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 <zakk@gentoozh.org>
This commit is contained in:
1 parent
b81d2a50e1
commit
91d2a61dab
1 file changed
+16
-9
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user