app-i18n/librime-lua: fix CMake 4, update to EAPI 8, re-add Lua 5.1 & LuaJIT

Upstream treats librime-lua as a source-level plugin that is built
together with librime, so it never set an explicit minimum CMake
version. The ebuild now patches CMakeLists.txt to declare
`cmake_minimum_required(VERSION 3.12)`, matching librime.

Also re-enable support for lua5.1 and luajit.

Closes: https://bugs.gentoo.org/913118
Closes: https://github.com/gentoo/gentoo/pull/42612
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Yongxiang Liang 2025-06-16 02:42:50 +08:00 committed by Yixun Lan
parent dc1ecd3b42
commit f93f43d107
No known key found for this signature in database
GPG Key ID: 31AAEA47594DBBED
2 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
# Copyright 2020-2024 Gentoo Authors
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
LUA_COMPAT=( lua5-{3..4} )
EAPI="8"
LUA_COMPAT=( lua5-{1..4} luajit )
inherit cmake lua-single
@ -36,7 +36,7 @@ fi
src_prepare() {
sed \
-e "1icmake_minimum_required(VERSION 3.0)\nproject(${PN})\n" \
-e "1icmake_minimum_required(VERSION 3.12)\nproject(${PN})\n" \
-e "s/ PARENT_SCOPE//" \
-e "\$a\\\n" \
-e "\$aadd_library(\${plugin_modules} MODULE \${plugin_objs})" \

View File

@ -1,8 +1,8 @@
# Copyright 2020-2024 Gentoo Authors
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
LUA_COMPAT=( lua5-{3..4} )
EAPI="8"
LUA_COMPAT=( lua5-{1..4} luajit )
inherit cmake lua-single
@ -35,7 +35,7 @@ fi
src_prepare() {
sed \
-e "1icmake_minimum_required(VERSION 3.0)\nproject(${PN})\n" \
-e "1icmake_minimum_required(VERSION 3.12)\nproject(${PN})\n" \
-e "s/ PARENT_SCOPE//" \
-e "\$a\\\n" \
-e "\$aadd_library(\${plugin_modules} MODULE \${plugin_objs})" \