Wed Jun 10 15:44:16 2015 UTC ()
Update devel/lua-gi to version 0.9.0
Changes since 0.8.0:
- new feature: allow defining new properties on custom GObject
subclasses implemented using lgi
- fix: improve compatibility with locales (turkish)
- fix: GPtrArray handling
- fix: improve behavior when running in assorted multiple-embedded
and concurrent scenarios
Changes since 0.7.2:
- new feature: add automatically-generated wrappers for
do_async()/do_finish() pairs. Documented as Gio.Async namespace
functionality.
- new feature: automatically initialize objects implementing
Gio.Initable and Gio.AsyncInitable interfaces.
- new feature: GLib.Error is now handled properly, functions
returning errors return GLib.Error instances instead of error
numbers and strings. This also allows overriding virtual methods
from Lua which report errors by returning GLib.Error
- new feature: GLib.Bytes support, adding # operator and 'data'
property allowing easy use of GLib.Bytes object. This leads to
deprecation of seldomly used modifiable buffers extensions.
- optimization: type attribute caching brings significant speedup of
method and property lookups.
- fix: Gtk: override for Gtk.Menu.popup() compatible with new GTK
annotation.
- fix: cairo: assorted small fixes of bad signatures, added some
convenience properties.
- fix: GLib: add overrides for GLib.MarkupParser
- fix: Gio: add overrides for Gio.DBus*Info structures
- fix: Pango: add override for Pango.GlyphString.glyphs array
- fix: Gdk: Add override inheriting specific Gdk.EventXxx from Gdk.Event
- fix: Compile cleanly against Lua5.2 with compatibility mode turned on
- fix: avoid leak when adding already cached owned record and for
retrieving Variant from Value.
Changes since 0.7.1:
- fix: improper marshalling of certain APIs passing pointers to
records.
- fix: cairo.PsSurface.create() had incorrect signature, missing
filename.
- fix: If GTK initialization fails, raise Lua exception instead of
hard-crash of calling process.
- fix: when running test in devel tree, prefer lgi from devel tree
instead of the installed one.
- add: cairo.Status.to_string() API
- fix: avoid referencing GdkRGBA in GDk override when targetting
Gdk2.0, which does not have GdkRGBA.
- fix: replace GStaticRecMutex with GRecMutex to avoid compilation
warnings.
- fix: Gtk.Container.'child' pseudoproperty works even in Gtk2, where
it was shadowed by internal field.
- fix: add workaround for improperly parsed g_bytes_get_data()
annotation.
- fix: add workarounf for incorrect annotation on
Pango.Layour.set_attributes(), which caused memory leak.
- fix: adapt to Gio.InputStream.[read|read_all|read_async] API
change, which does not accept buffer length argument any more (due
to the newly added annotations).
(khorben)
diff -r1.7 -r1.8 pkgsrc/devel/lua-gi/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/lua-gi/PLIST
diff -r1.3 -r1.4 pkgsrc/devel/lua-gi/distinfo
diff -r1.2 -r0 pkgsrc/devel/lua-gi/patches/patch-Makefile
diff -r0 -r1.1 pkgsrc/devel/lua-gi/patches/patch-lgi_Makefile
--- pkgsrc/devel/lua-gi/Makefile 2014/10/19 22:27:44 1.7
+++ pkgsrc/devel/lua-gi/Makefile 2015/06/10 15:44:15 1.8
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2014/10/19 22:27:44 alnsn Exp $
+# $NetBSD: Makefile,v 1.8 2015/06/10 15:44:15 khorben Exp $
DISTNAME= lgi-${VERSION}
PKGNAME= ${LUA_PKGPREFIX}-gi-${VERSION}
-VERSION= 0.7.1
-PKGREVISION= 3
+VERSION= 0.9.0
CATEGORIES= devel
MASTER_SITES= -https://codeload.github.com/pavouk/lgi/tar.gz/${VERSION}
@@ -14,12 +13,9 @@
USE_LANGUAGES+= c
USE_TOOLS+= pkg-config gmake
-WRKSRC= ${WRKDIR}/pavouk-lgi-1bbf1bc
-SUBST_CLASSES+= v
-SUBST_STAGE.v= pre-build
-SUBST_FILES.v= lgi/Makefile
-SUBST_VARS.v= _LUA_DOT_VERSION
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= LUA_VERSION=${_LUA_DOT_VERSION}
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
--- pkgsrc/devel/lua-gi/PLIST 2014/01/22 16:16:21 1.2
+++ pkgsrc/devel/lua-gi/PLIST 2015/06/10 15:44:15 1.3
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2014/01/22 16:16:21 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.3 2015/06/10 15:44:15 khorben Exp $
${LUA_CDIR}/lgi/corelgilua51.so
${LUA_LDIR}/lgi.lua
${LUA_LDIR}/lgi/class.lua
@@ -10,6 +10,9 @@
${LUA_LDIR}/lgi/log.lua
${LUA_LDIR}/lgi/namespace.lua
${LUA_LDIR}/lgi/override/Clutter.lua
+${LUA_LDIR}/lgi/override/GLib-Bytes.lua
+${LUA_LDIR}/lgi/override/GLib-Error.lua
+${LUA_LDIR}/lgi/override/GLib-Markup.lua
${LUA_LDIR}/lgi/override/GLib-Timer.lua
${LUA_LDIR}/lgi/override/GLib-Variant.lua
${LUA_LDIR}/lgi/override/GLib.lua
@@ -18,6 +21,7 @@
${LUA_LDIR}/lgi/override/GObject-Type.lua
${LUA_LDIR}/lgi/override/GObject-Value.lua
${LUA_LDIR}/lgi/override/Gdk.lua
+${LUA_LDIR}/lgi/override/Gio-DBus.lua
${LUA_LDIR}/lgi/override/Gio.lua
${LUA_LDIR}/lgi/override/Gst.lua
${LUA_LDIR}/lgi/override/Gtk.lua
--- pkgsrc/devel/lua-gi/distinfo 2014/01/22 16:16:21 1.3
+++ pkgsrc/devel/lua-gi/distinfo 2015/06/10 15:44:15 1.4
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.3 2014/01/22 16:16:21 jperkin Exp $
+$NetBSD: distinfo,v 1.4 2015/06/10 15:44:15 khorben Exp $
-SHA1 (lgi-0.7.1.tar.gz) = 53affb0a82bb1537d7ecef4d6f2a65bdd4d9e3bc
+SHA1 (lgi-0.9.0.tar.gz) = f06eb973e6d4a4460ac6a491758c844ced87c238
-RMD160 (lgi-0.7.1.tar.gz) = af49608d6af76c468fef0ab67f2a065ed8730152
+RMD160 (lgi-0.9.0.tar.gz) = 6526d092d4ce6c664bdd2642f6c49e6d6d1d2c65
-Size (lgi-0.7.1.tar.gz) = 268357 bytes
+Size (lgi-0.9.0.tar.gz) = 285248 bytes
-SHA1 (patch-Makefile) = 0ff1b55df7e7c6c236a4ca7f3109439b69f85e4a
$NetBSD: patch-lgi_Makefile,v 1.1 2015/06/10 15:44:16 khorben Exp $
Don't use mkdir and cp directly, use BSD_INSTALL_* abstraction instead
--- lgi/Makefile.orig 2015-03-23 22:48:44.000000000 +0000
+++ lgi/Makefile
@@ -74,11 +74,11 @@ OVERRIDES = $(wildcard override/*.lua)
CORESOURCES = $(wildcard *.lua)
install : $(CORE) $(VERSION_FILE)
- mkdir -p $(DESTDIR)$(LUA_LIBDIR)/lgi
- cp $(CORE) $(DESTDIR)$(LUA_LIBDIR)/lgi
- mkdir -p $(DESTDIR)$(LUA_SHAREDIR)
- cp ../lgi.lua $(DESTDIR)$(LUA_SHAREDIR)
- mkdir -p $(DESTDIR)$(LUA_SHAREDIR)/lgi
- cp $(CORESOURCES) $(VERSION_FILE) $(DESTDIR)$(LUA_SHAREDIR)/lgi
- mkdir -p $(DESTDIR)$(LUA_SHAREDIR)/lgi/override
- cp $(OVERRIDES) $(DESTDIR)$(LUA_SHAREDIR)/lgi/override
+ $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LUA_LIBDIR)/lgi
+ $(BSD_INSTALL_LIB) $(CORE) $(DESTDIR)$(LUA_LIBDIR)/lgi
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)
+ $(BSD_INSTALL_DATA) ../lgi.lua $(DESTDIR)$(LUA_SHAREDIR)
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)/lgi
+ $(BSD_INSTALL_DATA) $(CORESOURCES) $(VERSION_FILE) $(DESTDIR)$(LUA_SHAREDIR)/lgi
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(LUA_SHAREDIR)/lgi/override
+ $(BSD_INSTALL_DATA) $(OVERRIDES) $(DESTDIR)$(LUA_SHAREDIR)/lgi/override