Hi,
Just found this issue while working on awesome-3.5.1 which wants a
lua52 flavored lua-lgi.
Ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/lua-lgi/Makefile,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 Makefile
--- Makefile 5 May 2013 18:50:21 -0000 1.17
+++ Makefile 20 May 2013 14:53:55 -0000
@@ -5,7 +5,7 @@ SHARED_ONLY= Yes
COMMENT= lua bindings to libraries using GObject-Introspection
DISTNAME= lgi-0.7.1
-REVISION= 0
+REVISION= 1
PKGNAME= lua-${DISTNAME}
CATEGORIES= devel
@@ -32,7 +32,9 @@ TEST_TARGET= check
TEST_IS_INTERACTIVE=x11
pre-configure:
- ${SUBST_CMD} ${WRKSRC}/lgi/Makefile
+ ${SUBST_CMD} ${WRKSRC}/lgi/Makefile \
+ ${WRKSRC}/lgi/core.c \
+ ${WRKSRC}/lgi/core.lua
post-install:
${INSTALL_DATA_DIR} ${MODLUA_EXAMPLEDIR}
Index: patches/patch-lgi_core_c
===================================================================
RCS file: patches/patch-lgi_core_c
diff -N patches/patch-lgi_core_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-lgi_core_c 20 May 2013 14:53:55 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- lgi/core.c.orig Mon May 20 14:17:38 2013
++++ lgi/core.c Mon May 20 14:18:14 2013
+@@ -607,7 +607,7 @@ set_resident (lua_State *L)
+ }
+
+ int
+-luaopen_lgi_corelgilua51 (lua_State* L)
++luaopen_lgi_corelgilua${MODLUA_DEP_VERSION} (lua_State* L)
+ {
+ LgiStateMutex *mutex;
+
Index: patches/patch-lgi_core_lua
===================================================================
RCS file: patches/patch-lgi_core_lua
diff -N patches/patch-lgi_core_lua
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-lgi_core_lua 20 May 2013 14:53:55 -0000
@@ -0,0 +1,9 @@
+$OpenBSD$
+--- lgi/core.lua.orig Mon May 20 14:17:43 2013
++++ lgi/core.lua Mon May 20 14:18:24 2013
+@@ -11,4 +11,4 @@
+ -- 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.
+-return require 'lgi.corelgilua51'
++return require 'lgi.corelgilua${MODLUA_DEP_VERSION}'