pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/lua-gi Update devel/lua-gi to version 0.9.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6c7cbf1f139e
branches:  trunk
changeset: 652951:6c7cbf1f139e
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Wed Jun 10 15:44:15 2015 +0000

description:
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).

diffstat:

 devel/lua-gi/Makefile                   |  12 +++------
 devel/lua-gi/PLIST                      |   6 ++++-
 devel/lua-gi/distinfo                   |   9 +++----
 devel/lua-gi/patches/patch-Makefile     |  38 ---------------------------------
 devel/lua-gi/patches/patch-lgi_Makefile |  26 ++++++++++++++++++++++
 5 files changed, 39 insertions(+), 52 deletions(-)

diffs (143 lines):

diff -r fd43d00b7745 -r 6c7cbf1f139e devel/lua-gi/Makefile
--- a/devel/lua-gi/Makefile     Wed Jun 10 15:01:14 2015 +0000
+++ b/devel/lua-gi/Makefile     Wed Jun 10 15:44:15 2015 +0000
@@ -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"
diff -r fd43d00b7745 -r 6c7cbf1f139e devel/lua-gi/PLIST
--- a/devel/lua-gi/PLIST        Wed Jun 10 15:01:14 2015 +0000
+++ b/devel/lua-gi/PLIST        Wed Jun 10 15:44:15 2015 +0000
@@ -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
diff -r fd43d00b7745 -r 6c7cbf1f139e devel/lua-gi/distinfo
--- a/devel/lua-gi/distinfo     Wed Jun 10 15:01:14 2015 +0000
+++ b/devel/lua-gi/distinfo     Wed Jun 10 15:44:15 2015 +0000
@@ -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
-RMD160 (lgi-0.7.1.tar.gz) = af49608d6af76c468fef0ab67f2a065ed8730152
-Size (lgi-0.7.1.tar.gz) = 268357 bytes
-SHA1 (patch-Makefile) = 0ff1b55df7e7c6c236a4ca7f3109439b69f85e4a
+SHA1 (lgi-0.9.0.tar.gz) = f06eb973e6d4a4460ac6a491758c844ced87c238
+RMD160 (lgi-0.9.0.tar.gz) = 6526d092d4ce6c664bdd2642f6c49e6d6d1d2c65
+Size (lgi-0.9.0.tar.gz) = 285248 bytes
diff -r fd43d00b7745 -r 6c7cbf1f139e devel/lua-gi/patches/patch-Makefile
--- a/devel/lua-gi/patches/patch-Makefile       Wed Jun 10 15:01:14 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-$NetBSD: patch-Makefile,v 1.2 2014/01/22 16:16:21 jperkin Exp $
-
-Don't hardcode PREFIX
-Fix the LUA version to match the one installed by pkgsrc
-Don't use mkdir and cp directly, use BSD_INSTALL_* abstraction instead
-
---- lgi/Makefile.orig  2013-03-04 21:10:19.000000000 +0000
-+++ lgi/Makefile       2013-07-21 21:56:37.000000000 +0000
-@@ -5,8 +5,7 @@
- # License: MIT
- #
- 
--PREFIX = /usr/local
--LUA_VERSION=5.1
-+LUA_VERSION=@_LUA_DOT_VERSION@
- LUA_LIBDIR = $(PREFIX)/lib/lua/$(LUA_VERSION)
- LUA_SHAREDIR = $(PREFIX)/share/lua/$(LUA_VERSION)
- 
-@@ -74,11 +73,11 @@
- 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
diff -r fd43d00b7745 -r 6c7cbf1f139e devel/lua-gi/patches/patch-lgi_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-gi/patches/patch-lgi_Makefile   Wed Jun 10 15:44:15 2015 +0000
@@ -0,0 +1,26 @@
+$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



Home | Main Index | Thread Index | Old Index