Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Assaf Inbal <shmuelzon@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 09/12] luaposix: New package
Date: Mon, 20 May 2013 15:56:41 +0300	[thread overview]
Message-ID: <1369054604-26139-9-git-send-email-shmuelzon@gmail.com> (raw)
In-Reply-To: <1369054604-26139-1-git-send-email-shmuelzon@gmail.com>

Luaposix is a Lua frontend to posix functions.

Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
---
 package/Config.in                                         |  1 +
 package/luaposix/Config.in                                | 10 ++++++++++
 .../luaposix/luaposix-remove-cross-compile-check.patch    | 13 +++++++++++++
 package/luaposix/luaposix.mk                              | 15 +++++++++++++++
 4 files changed, 39 insertions(+)
 create mode 100644 package/luaposix/Config.in
 create mode 100644 package/luaposix/luaposix-remove-cross-compile-check.patch
 create mode 100644 package/luaposix/luaposix.mk

diff --git a/package/Config.in b/package/Config.in
index 3351f21..9c615b5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -314,6 +314,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"
diff --git a/package/luaposix/Config.in b/package/luaposix/Config.in
new file mode 100644
index 0000000..a4bad8d
--- /dev/null
+++ b/package/luaposix/Config.in
@@ -0,0 +1,10 @@
+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/rrthomas/luaposix
diff --git a/package/luaposix/luaposix-remove-cross-compile-check.patch b/package/luaposix/luaposix-remove-cross-compile-check.patch
new file mode 100644
index 0000000..37dc2db
--- /dev/null
+++ b/package/luaposix/luaposix-remove-cross-compile-check.patch
@@ -0,0 +1,13 @@
+--- a/configure	2012-06-05 21:50:55.000000000 +0300
++++ b/configure	2012-07-16 14:41:15.000000000 +0300
+@@ -14654,10 +14654,6 @@
+   LUA_OLD_CPPFLAGS="$CPPFLAGS"
+   CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
+   if test "$cross_compiling" = yes; then :
+-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "cannot run test program while cross compiling
+-See \`config.log' for more details" "$LINENO" 5; }
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/package/luaposix/luaposix.mk b/package/luaposix/luaposix.mk
new file mode 100644
index 0000000..db55df0
--- /dev/null
+++ b/package/luaposix/luaposix.mk
@@ -0,0 +1,15 @@
+#############################################################
+#
+# luaposix
+#
+#############################################################
+
+LUAPOSIX_VERSION = 5.1.20
+LUAPOSIX_SITE = https://github.com/downloads/luaposix/luaposix
+LUAPOSIX_LICENSE = MIT
+LUAPOSIX_LICENSE_FILES = COPYRIGHT
+LUAPOSIX_DEPENDENCIES = lua host-lua luabitop
+LUAPOSIX_CONF_ENV = LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib"
+LUAPOSIX_CONF_OPT = --libdir="/usr/lib/lua" --datarootdir="/usr/share/lua"
+
+$(eval $(autotools-package))
-- 
1.8.1.2

  parent reply	other threads:[~2013-05-20 12:56 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20 12:56 [Buildroot] [PATCH 01/12] coxpcall: Updated source location Assaf Inbal
2013-05-20 12:56 ` [Buildroot] [PATCH 02/12] luasocket: Update " Assaf Inbal
2013-06-16 19:47   ` Peter Korsgaard
2013-06-17  5:18     ` Assaf Inbal
2013-05-20 12:56 ` [Buildroot] [PATCH 03/12] sqlite: Added host compilation support Assaf Inbal
2013-05-20 13:26   ` Yann E. MORIN
2013-05-20 14:27     ` Assaf Inbal
2013-05-20 16:00       ` Yann E. MORIN
2013-05-20 12:56 ` [Buildroot] [PATCH 04/12] lbase64: New package Assaf Inbal
2013-05-20 14:52   ` Thomas Petazzoni
2013-05-20 15:23     ` Assaf Inbal
2013-05-20 17:25       ` Thomas Petazzoni
2013-05-22  6:19         ` Arnout Vandecappelle
2013-05-22  6:55           ` Assaf Inbal
2013-05-22  7:28             ` Thomas Petazzoni
2013-05-22  7:01           ` Thomas Petazzoni
2013-05-22  7:06             ` Arnout Vandecappelle
2013-05-22  7:29               ` Bryan Hundven
2013-05-22  7:42                 ` Thomas Petazzoni
2013-05-22  7:46                   ` Bryan Hundven
2013-05-22  7:30               ` Thomas Petazzoni
2013-05-20 16:00   ` François Perrad
2013-06-16 19:52     ` Peter Korsgaard
2013-06-17  5:31       ` Assaf Inbal
2013-06-17 20:59         ` Peter Korsgaard
2013-05-20 12:56 ` [Buildroot] [PATCH 05/12] lua-ev: " Assaf Inbal
2013-05-20 16:05   ` François Perrad
2013-06-16 19:53     ` Peter Korsgaard
2013-06-17  5:58       ` Assaf Inbal
2013-06-17 21:14         ` Peter Korsgaard
2013-05-20 12:56 ` [Buildroot] [PATCH 06/12] luabitop: " Assaf Inbal
2013-06-16 20:03   ` Peter Korsgaard
2013-05-20 12:56 ` [Buildroot] [PATCH 07/12] luacrypto: " Assaf Inbal
2013-05-20 16:07   ` François Perrad
2013-06-16 20:16     ` Peter Korsgaard
2013-06-17  6:18       ` Assaf Inbal
2013-06-17 21:18         ` Peter Korsgaard
2013-05-20 12:56 ` [Buildroot] [PATCH 08/12] luaexpatutils: " Assaf Inbal
2013-06-19 21:24   ` Peter Korsgaard
2013-05-20 12:56 ` Assaf Inbal [this message]
2013-05-20 16:09   ` [Buildroot] [PATCH 09/12] luaposix: " François Perrad
2013-06-19 21:34   ` Peter Korsgaard
2013-06-20  4:45     ` Assaf Inbal
2013-06-20  5:57       ` Arnout Vandecappelle
2013-06-20  6:10       ` Thomas Petazzoni
2013-06-20  7:05         ` Assaf Inbal
2013-06-20  7:39           ` Assaf Inbal
2013-06-20  7:46             ` Thomas Petazzoni
2013-05-20 12:56 ` [Buildroot] [PATCH 10/12] luasec: " Assaf Inbal
2013-05-20 16:10   ` François Perrad
2013-08-12 17:46   ` Thomas Petazzoni
2013-05-20 12:56 ` [Buildroot] [PATCH 11/12] luasql: " Assaf Inbal
2013-05-20 16:13   ` François Perrad
2013-08-12 17:47   ` Thomas Petazzoni
2013-05-20 12:56 ` [Buildroot] [PATCH 12/12] orbit: " Assaf Inbal
2013-08-13  9:53   ` Thomas Petazzoni
2013-08-13 10:16     ` Assaf Inbal
2013-06-16 19:46 ` [Buildroot] [PATCH 01/12] coxpcall: Updated source location Peter Korsgaard
2013-06-17  5:17   ` Assaf Inbal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369054604-26139-9-git-send-email-shmuelzon@gmail.com \
    --to=shmuelzon@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox