diff options
author | degroote <degroote> | 2013-07-22 19:38:07 +0000 |
---|---|---|
committer | degroote <degroote> | 2013-07-22 19:38:07 +0000 |
commit | d126a328821495dae44e8728a293d7f0912d3def (patch) | |
tree | a3a9054cc272f5c2483ffdf4be0f31a6573fbd46 | |
parent | b4ac176f3105495e78072a9d2f485e17e6e80469 (diff) | |
download | pkgsrc-d126a328821495dae44e8728a293d7f0912d3def.tar.gz |
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.
-rw-r--r-- | devel/lua-gi/DESCR | 2 | ||||
-rw-r--r-- | devel/lua-gi/Makefile | 25 | ||||
-rw-r--r-- | devel/lua-gi/PLIST | 29 | ||||
-rw-r--r-- | devel/lua-gi/distinfo | 6 | ||||
-rw-r--r-- | devel/lua-gi/patches/patch-Makefile | 38 |
5 files changed, 100 insertions, 0 deletions
diff --git a/devel/lua-gi/DESCR b/devel/lua-gi/DESCR new file mode 100644 index 00000000000..1cfa25451db --- /dev/null +++ b/devel/lua-gi/DESCR @@ -0,0 +1,2 @@ +LGI is gobject-introspection based dynamic Lua binding to GObject based +libraries. It allows using GObject-based libraries directly from Lua. diff --git a/devel/lua-gi/Makefile b/devel/lua-gi/Makefile new file mode 100644 index 00000000000..f1f07d62da0 --- /dev/null +++ b/devel/lua-gi/Makefile @@ -0,0 +1,25 @@ +# $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" diff --git a/devel/lua-gi/PLIST b/devel/lua-gi/PLIST new file mode 100644 index 00000000000..d39925427e0 --- /dev/null +++ b/devel/lua-gi/PLIST @@ -0,0 +1,29 @@ +@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 diff --git a/devel/lua-gi/distinfo b/devel/lua-gi/distinfo new file mode 100644 index 00000000000..45b3c1dd859 --- /dev/null +++ b/devel/lua-gi/distinfo @@ -0,0 +1,6 @@ +$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 diff --git a/devel/lua-gi/patches/patch-Makefile b/devel/lua-gi/patches/patch-Makefile new file mode 100644 index 00000000000..dbfdff0b788 --- /dev/null +++ b/devel/lua-gi/patches/patch-Makefile @@ -0,0 +1,38 @@ +$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 |