gentoo/dev-lua/lgi/files/lgi-0.9.2-multi_lua_impl.patch
Nicolas PARLANT 86ec2f36b3
dev-lua/lgi: add 0.9.2_p20251219
update EAPI 7 -> 8
fix redirect HOMEPAGE/gh_repo

add snapshot with meson, bugfixes, gtk4 support

add missing sys-apps/dbus (dbus-run-session), x11-misc/xvfb-run for tests

patch to fix pango_test and progress_test

always install examples (~460k)

Closes: https://bugs.gentoo.org/836839
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45262
Closes: https://github.com/gentoo/gentoo/pull/45262
Signed-off-by: Sam James <sam@gentoo.org>
2026-01-05 23:31:10 +00:00

33 lines
997 B
Diff

allow lua multi-implementation
@GENTOO_LUA_VERSION@ will be replaced after sources copied for each lua implementation
--- a/lgi/core.c
+++ b/lgi/core.c
@@ -697,7 +697,7 @@ set_resident (lua_State *L)
}
G_MODULE_EXPORT int
-luaopen_lgi_corelgilua51 (lua_State* L)
+luaopen_lgi_corelgi@GENTOO_LUA_VERSION@ (lua_State* L)
{
LgiStateMutex *mutex;
gint state_id;
--- a/lgi/core.lua
+++ b/lgi/core.lua
@@ -11,7 +11,7 @@
-- This module decides what kind of core routines should be loaded.
-- Currently only one implementation exists, standard-Lua C-side
-- implementation, LuaJIT-FFI-based one is planned.
-local core = require 'lgi.corelgilua51'
+local core = require 'lgi.corelgi@GENTOO_LUA_VERSION@'
-- Helper methods for converting between CamelCase and uscore_delim
-- names.
--- a/lgi/meson.build
+++ b/lgi/meson.build
@@ -1,4 +1,4 @@
-liblgi = shared_module('corelgilua51',
+liblgi = shared_module('corelgi@GENTOO_LUA_VERSION@',
sources: [
'buffer.c',
'callable.c',