Commit c49cf378 authored by mandree's avatar mandree
Browse files

Add new port devel/lua-lgi.

LGI is a gobject-introspection based dynamic Lua binding to GObject-based
libraries. It allows using GObject-based libraries directly from Lua.

WWW: https://github.com/pavouk/lgi

PR:		ports/174597
Submitted by:	Maxim Andreev <andreevmaxim@gmail.com>
parent c18094c0
......@@ -1141,6 +1141,7 @@
SUBDIR += lua-cjson
SUBDIR += lua-filename
SUBDIR += lua-gettext
SUBDIR += lua-lgi
SUBDIR += lua-posix
SUBDIR += lua-pty
SUBDIR += lua-rds-parser
......
# $FreeBSD$
PORTNAME= lgi
PORTVERSION= 0.6.2
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= andreevmaxim@gmail.com
COMMENT= Lua bindings to libraries using GObject-Introspection
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
RUN_DEPENDS:= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/pavouk-lgi-a4ad06c
USE_GITHUB= yes
GH_ACCOUNT= pavouk
USE_LUA= 5.1+
USE_GMAKE= yes
CPPFLAGS+= -I${LOCALBASE}/include/${LUA_SUBDIR}
.include <bsd.port.mk>
SHA256 (lgi-0.6.2.tar.gz) = 662008e969f3ac8d28b2551549760969d86c86e140e841505a584af88c733909
SIZE (lgi-0.6.2.tar.gz) = 253076
--- lgi/Makefile.orig 2012-12-15 21:18:35.000000000 +0400
+++ lgi/Makefile 2012-12-15 21:20:31.000000000 +0400
@@ -6,8 +6,11 @@
#
PREFIX = /usr/local
-LUA_LIBDIR = $(PREFIX)/lib/lua/5.1
-LUA_SHAREDIR = $(PREFIX)/share/lua/5.1
+LUA_LIBDIR ?= $(PREFIX)/lib/lua/5.1
+LUA_SHAREDIR ?= $(PREFIX)/share/lua/5.1
+LUA_CFLAGS ?= -I$(LUA_INCDIR)
+LUA_LIBDIR ?= $(LUA_MODLIBDIR)
+LUA_SHAREDIR ?= $(LUA_MODSHAREDIR)
GINAME = gobject-introspection-1.0
PKGS = $(GINAME) gmodule-2.0 libffi
LGI is a gobject-introspection based dynamic Lua binding to GObject-based
libraries. It allows using GObject-based libraries directly from Lua.
WWW: https://github.com/pavouk/lgi
lib/lua51/lgi/corelgilua51.so
share/lua/5.1/lgi.lua
share/lua/5.1/lgi/class.lua
share/lua/5.1/lgi/component.lua
share/lua/5.1/lgi/core.lua
share/lua/5.1/lgi/enum.lua
share/lua/5.1/lgi/ffi.lua
share/lua/5.1/lgi/init.lua
share/lua/5.1/lgi/log.lua
share/lua/5.1/lgi/namespace.lua
share/lua/5.1/lgi/override/Clutter.lua
share/lua/5.1/lgi/override/GLib-Variant.lua
share/lua/5.1/lgi/override/GLib.lua
share/lua/5.1/lgi/override/GObject-Closure.lua
share/lua/5.1/lgi/override/GObject-Object.lua
share/lua/5.1/lgi/override/GObject-Type.lua
share/lua/5.1/lgi/override/GObject-Value.lua
share/lua/5.1/lgi/override/Gdk.lua
share/lua/5.1/lgi/override/Gio.lua
share/lua/5.1/lgi/override/Gst.lua
share/lua/5.1/lgi/override/Gtk.lua
share/lua/5.1/lgi/override/Pango.lua
share/lua/5.1/lgi/override/PangoCairo.lua
share/lua/5.1/lgi/override/cairo.lua
share/lua/5.1/lgi/record.lua
share/lua/5.1/lgi/version.lua
@dirrm share/lua/5.1/lgi/override
@dirrm share/lua/5.1/lgi
@dirrm lib/lua51/lgi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment