Commit 6618ab94 authored by Assaf Inbal's avatar Assaf Inbal Committed by Peter Korsgaard
Browse files

luaposix: New package



Luaposix is a Lua frontend to posix functions.

Signed-off-by: default avatarAssaf Inbal <shmuelzon@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent a869bf8c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -321,6 +321,7 @@ source "package/luacrypto/Config.in"
source "package/luaexpat/Config.in"
source "package/luaexpatutils/Config.in"
source "package/luafilesystem/Config.in"
source "package/luaposix/Config.in"
source "package/luasocket/Config.in"
source "package/lua-ev/Config.in"
source "package/lua-msgpack-native/Config.in"
+11 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_LUAPOSIX
	bool "luaposix"
	help
	  luaposix is a POSIX binding, including curses, for Lua 5.1
	  and 5.2; Like most libraries it simply binds to C APIs on
	  the underlying system, so it won't work on a non-POSIX
	  system. However, it does try to detect the level of POSIX
	  conformance of the underlying system and bind only available
	  APIs

	  https://github.com/luaposix/luaposix
+16 −0
Original line number Diff line number Diff line
Checking the Lua version inside the headers requires compiling a small
C program. However, autoconf will raise an error when attempting to do so
while cross-compiling. Hence, this specific test is removed.

Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
--- a/configure.ac	2013-06-20 07:23:27.943091833 +0300
+++ b/configure.ac	2013-06-20 07:23:30.644441710 +0300
@@ -105,7 +105,7 @@
 
 dnl Lua 5.1 or 5.2
 AX_PROG_LUA(501, 503)
 AX_LUA_HEADERS
-AX_LUA_HEADERS_VERSION(501, 503)
+#AX_LUA_HEADERS_VERSION(501, 503)
 AC_SUBST(LUA)
 AC_SUBST(LUA_INCLUDE)
+15 −0
Original line number Diff line number Diff line
################################################################################
#
# luaposix
#
################################################################################

LUAPOSIX_VERSION = 5.1.20
LUAPOSIX_SITE = https://github.com/downloads/luaposix/luaposix
LUAPOSIX_LICENSE = MIT
LUAPOSIX_LICENSE_FILES = COPYING
LUAPOSIX_DEPENDENCIES = lua host-lua
LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua" --datarootdir="/usr/share/lua"
LUAPOSIX_AUTORECONF = YES

$(eval $(autotools-package))