summaryrefslogtreecommitdiffstats
path: root/package/luasocket
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-01-11 16:42:03 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-01-13 23:15:33 +0100
commit4a09e9b54f6bbfec304ed84bfe199b245fcff35d (patch)
tree66b73b5784bd5f8071cdf4e76929cc4226d1dc8c /package/luasocket
parent9c47cd5b6471e62874fa88e58c1bf9b44742a9c3 (diff)
downloadbuildroot-4a09e9b54f6bbfec304ed84bfe199b245fcff35d.tar.gz
buildroot-4a09e9b54f6bbfec304ed84bfe199b245fcff35d.zip
luainterpreter: create virtual package
This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/luasocket')
-rw-r--r--package/luasocket/Config.in1
-rw-r--r--package/luasocket/luasocket.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/package/luasocket/Config.in b/package/luasocket/Config.in
index 45263030f3..619d649677 100644
--- a/package/luasocket/Config.in
+++ b/package/luasocket/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_LUASOCKET
bool "luasocket"
+ depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
help
LuaSocket is the most comprehensive networking support library
for the Lua language.
diff --git a/package/luasocket/luasocket.mk b/package/luasocket/luasocket.mk
index 4b01a3e3f1..6a2d4c8b6b 100644
--- a/package/luasocket/luasocket.mk
+++ b/package/luasocket/luasocket.mk
@@ -6,7 +6,7 @@
LUASOCKET_VERSION = 2.0.2
LUASOCKET_SITE = http://luaforge.net/frs/download.php/2664
-LUASOCKET_DEPENDENCIES = lua
+LUASOCKET_DEPENDENCIES = luainterpreter
LUASOCKET_LICENSE = MIT
LUASOCKET_LICENSE_FILES = LICENSE
OpenPOWER on IntegriCloud