Mon Jul 22 19:38:07 2013 UTC ()
Import lgi-0.71
LGI is gobject-introspection based dynamic Lua binding to GObject based
libraries. It allows using GObject-based libraries directly from Lua.
(degroote)
diff -r0 -r1.1 pkgsrc/devel/lua-gi/DESCR
diff -r0 -r1.1 pkgsrc/devel/lua-gi/Makefile
diff -r0 -r1.1 pkgsrc/devel/lua-gi/PLIST
diff -r0 -r1.1 pkgsrc/devel/lua-gi/distinfo
diff -r0 -r1.1 pkgsrc/devel/lua-gi/patches/patch-Makefile
LGI is gobject-introspection based dynamic Lua binding to GObject based
libraries. It allows using GObject-based libraries directly from Lua.
# $NetBSD: Makefile,v 1.1 2013/07/22 19:38:07 degroote Exp $
#
PKGNAME= lua-gi-${VERSION}
VERSION= 0.7.1
DISTNAME= ${VERSION}
CATEGORIES= devel
MASTER_SITES= http://github.com/pavouk/lgi/archive/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/pavouk/lgi
COMMENT= Gobject-introspection based dynamic Lua binding
LICENSE= mit
USE_LANGUAGES+= c
USE_TOOLS+= pkg-config gmake
WRKSRC= ${WRKDIR}/lgi-${VERSION}
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2013/07/22 19:38:07 degroote Exp $
lib/lua/5.2/lgi/corelgilua51.so
share/lua/5.2/lgi.lua
share/lua/5.2/lgi/class.lua
share/lua/5.2/lgi/component.lua
share/lua/5.2/lgi/core.lua
share/lua/5.2/lgi/enum.lua
share/lua/5.2/lgi/ffi.lua
share/lua/5.2/lgi/init.lua
share/lua/5.2/lgi/log.lua
share/lua/5.2/lgi/namespace.lua
share/lua/5.2/lgi/override/Clutter.lua
share/lua/5.2/lgi/override/GLib-Timer.lua
share/lua/5.2/lgi/override/GLib-Variant.lua
share/lua/5.2/lgi/override/GLib.lua
share/lua/5.2/lgi/override/GObject-Closure.lua
share/lua/5.2/lgi/override/GObject-Object.lua
share/lua/5.2/lgi/override/GObject-Type.lua
share/lua/5.2/lgi/override/GObject-Value.lua
share/lua/5.2/lgi/override/Gdk.lua
share/lua/5.2/lgi/override/Gio.lua
share/lua/5.2/lgi/override/Gst.lua
share/lua/5.2/lgi/override/Gtk.lua
share/lua/5.2/lgi/override/Pango.lua
share/lua/5.2/lgi/override/PangoCairo.lua
share/lua/5.2/lgi/override/cairo.lua
share/lua/5.2/lgi/package.lua
share/lua/5.2/lgi/record.lua
share/lua/5.2/lgi/version.lua
$NetBSD: distinfo,v 1.1 2013/07/22 19:38:07 degroote Exp $
SHA1 (0.7.1.tar.gz) = ae1268852b38507c9324e89aa3d950602b5ae8e1
RMD160 (0.7.1.tar.gz) = 87852dfbc6f3f9944df56324aadbaab6e3b2b802
Size (0.7.1.tar.gz) = 268327 bytes
SHA1 (patch-Makefile) = ecba51fb9bc78c08e89bebfc981206a2587e63f4
$NetBSD: patch-Makefile,v 1.1 2013/07/22 19:38:07 degroote 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=5.2
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