pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/lua-gi
Module Name: pkgsrc
Committed By: wiz
Date: Mon Apr 20 06:24:41 UTC 2026
Modified Files:
pkgsrc/devel/lua-gi: Makefile distinfo
Added Files:
pkgsrc/devel/lua-gi/patches: patch-lgi_ffi.lua
Log Message:
lua-gi: adapt for glib 2.87
using upstream pull request
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/lua-gi/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/lua-gi/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/lua-gi/patches/patch-lgi_ffi.lua
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/lua-gi/Makefile
diff -u pkgsrc/devel/lua-gi/Makefile:1.16 pkgsrc/devel/lua-gi/Makefile:1.17
--- pkgsrc/devel/lua-gi/Makefile:1.16 Thu Oct 23 20:36:32 2025
+++ pkgsrc/devel/lua-gi/Makefile Mon Apr 20 06:24:40 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2025/10/23 20:36:32 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2026/04/20 06:24:40 wiz Exp $
DISTNAME= lgi-${VERSION}
PKGNAME= ${LUA_PKGPREFIX}-gi-${VERSION}
-PKGREVISION= 4
+PKGREVISION= 5
VERSION= 0.9.2
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=pavouk/}
Index: pkgsrc/devel/lua-gi/distinfo
diff -u pkgsrc/devel/lua-gi/distinfo:1.10 pkgsrc/devel/lua-gi/distinfo:1.11
--- pkgsrc/devel/lua-gi/distinfo:1.10 Tue Oct 26 10:15:34 2021
+++ pkgsrc/devel/lua-gi/distinfo Mon Apr 20 06:24:40 2026
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:15:34 nia Exp $
+$NetBSD: distinfo,v 1.11 2026/04/20 06:24:40 wiz Exp $
BLAKE2s (lgi-0.9.2.tar.gz) = e4a718c21a0855fb97f407de8f55e20a74384d163192f4e66f8c92868eb607e0
SHA512 (lgi-0.9.2.tar.gz) = 755a96b78530f42da6d4e2664f8e37cb07a356419e7e6448003c3f841c9d98ad18b851715d9eb203ea7eb27b13ec46223fa8a1c90a99fd12960ce85b0a695335
Size (lgi-0.9.2.tar.gz) = 291463 bytes
SHA1 (patch-lgi_Makefile) = b74dd92555ab30aadf61cb2a5799ddce54339b8b
+SHA1 (patch-lgi_ffi.lua) = d935ea6e74a868888e3cd5bd684ffc874d3d852c
Added files:
Index: pkgsrc/devel/lua-gi/patches/patch-lgi_ffi.lua
diff -u /dev/null pkgsrc/devel/lua-gi/patches/patch-lgi_ffi.lua:1.1
--- /dev/null Mon Apr 20 06:24:41 2026
+++ pkgsrc/devel/lua-gi/patches/patch-lgi_ffi.lua Mon Apr 20 06:24:41 2026
@@ -0,0 +1,34 @@
+$NetBSD: patch-lgi_ffi.lua,v 1.1 2026/04/20 06:24:41 wiz Exp $
+
+ffi: Adapt load_enum to glib 2.87 changes
+https://github.com/lgi-devs/lgi/pull/352
+
+--- lgi/ffi.lua.orig 2017-10-09 18:55:55.000000000 +0000
++++ lgi/ffi.lua
+@@ -76,16 +76,22 @@ function ffi.load_enum(gtype, name)
+
+ -- Creates new enum/flags table with all values from specified gtype.
+ function ffi.load_enum(gtype, name)
+- local GObject = core.repo.GObject
++ local GLib, GObject = core.repo.GLib, core.repo.GObject
+ local is_flags = GObject.Type.is_a(gtype, GObject.Type.FLAGS)
+ local enum_component = component.create(
+ gtype, is_flags and enum.bitflags_mt or enum.enum_mt, name)
+ local type_class = GObject.TypeClass.ref(gtype)
+ local enum_class = core.record.cast(
+ type_class, is_flags and GObject.FlagsClass or GObject.EnumClass)
+- for i = 0, enum_class.n_values - 1 do
+- local val = core.record.fromarray(enum_class.values, i)
+- enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value
++ if GLib.check_version(2, 87, 0) then
++ for i = 0, enum_class.n_values - 1 do
++ local val = core.record.fromarray(enum_class.values, i)
++ enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value
++ end
++ else
++ for _, val in ipairs(enum_class.values) do
++ enum_component[core.upcase(val.value_nick):gsub('%-', '_')] = val.value
++ end
+ end
+ type_class:unref()
+ return enum_component
Home |
Main Index |
Thread Index |
Old Index