package/luainterpreter: rename the _HAS and _PROVIDES variables
The basic rule for a package is to have its options named after the package name. There is no reason this should not also be the case for virtual packages. Besides, this will allow us to switch luainterpreter to use the soon-to-be-introduced virtual-package infrastructure. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Mike Zick <minimod@morethan.org> Cc: Francois Perrad <fperrad@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
db4b9774b3
commit
50dfaef6ec
|
@ -371,7 +371,7 @@ source "package/jimtcl/Config.in"
|
||||||
source "package/lua/Config.in"
|
source "package/lua/Config.in"
|
||||||
source "package/luainterpreter/Config.in"
|
source "package/luainterpreter/Config.in"
|
||||||
source "package/luajit/Config.in"
|
source "package/luajit/Config.in"
|
||||||
if BR2_PACKAGE_HAS_LUA_INTERPRETER && !BR2_PREFER_STATIC_LIB
|
if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_PREFER_STATIC_LIB
|
||||||
# lua modules are dynamically loaded, so not available on static builds
|
# lua modules are dynamically loaded, so not available on static builds
|
||||||
menu "Lua libraries/modules"
|
menu "Lua libraries/modules"
|
||||||
source "package/cgilua/Config.in"
|
source "package/cgilua/Config.in"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LBASE64
|
config BR2_PACKAGE_LBASE64
|
||||||
bool "lbase64"
|
bool "lbase64"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
depends on !BR2_PACKAGE_LUA_5_2
|
depends on !BR2_PACKAGE_LUA_5_2
|
||||||
help
|
help
|
||||||
A base64 library for Lua
|
A base64 library for Lua
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LPEG
|
config BR2_PACKAGE_LPEG
|
||||||
bool "lpeg"
|
bool "lpeg"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
LPeg is a new pattern-matching library for Lua,
|
LPeg is a new pattern-matching library for Lua,
|
||||||
based on Parsing Expression Grammars (PEGs).
|
based on Parsing Expression Grammars (PEGs).
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LPTY
|
config BR2_PACKAGE_LPTY
|
||||||
bool "lpty"
|
bool "lpty"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
A simple facility for lua to control other programs via
|
A simple facility for lua to control other programs via
|
||||||
PTYs.
|
PTYs.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LRANDOM
|
config BR2_PACKAGE_LRANDOM
|
||||||
bool "lrandom"
|
bool "lrandom"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
A library for generating random numbers
|
A library for generating random numbers
|
||||||
based on the Mersenne Twister
|
based on the Mersenne Twister
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
config BR2_PACKAGE_LSQLITE3
|
config BR2_PACKAGE_LSQLITE3
|
||||||
bool "lsqlite3"
|
bool "lsqlite3"
|
||||||
select BR2_PACKAGE_SQLITE
|
select BR2_PACKAGE_SQLITE
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
a thin Lua wrapper for the SQLite3 library.
|
a thin Lua wrapper for the SQLite3 library.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUA_CJSON
|
config BR2_PACKAGE_LUA_CJSON
|
||||||
bool "lua-cjson"
|
bool "lua-cjson"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
The Lua CJSON module provides JSON support for Lua. It features:
|
The Lua CJSON module provides JSON support for Lua. It features:
|
||||||
- Fast, standards compliant encoding/parsing routines
|
- Fast, standards compliant encoding/parsing routines
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUA_EV
|
config BR2_PACKAGE_LUA_EV
|
||||||
bool "lua-ev"
|
bool "lua-ev"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
select BR2_PACKAGE_LIBEV
|
select BR2_PACKAGE_LIBEV
|
||||||
depends on !(BR2_avr32 || BR2_bfin) # libev
|
depends on !(BR2_avr32 || BR2_bfin) # libev
|
||||||
help
|
help
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUA_MSGPACK_NATIVE
|
config BR2_PACKAGE_LUA_MSGPACK_NATIVE
|
||||||
bool "lua-msgpack-native"
|
bool "lua-msgpack-native"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
depends on !BR2_PACKAGE_LUA_5_2
|
depends on !BR2_PACKAGE_LUA_5_2
|
||||||
help
|
help
|
||||||
This is a native, C language implementation of msgpack
|
This is a native, C language implementation of msgpack
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUA
|
config BR2_PACKAGE_LUA
|
||||||
bool "lua"
|
bool "lua"
|
||||||
select BR2_PACKAGE_HAS_LUA_INTERPRETER
|
select BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
Lua is a powerful, fast, light-weight, embeddable scripting language.
|
Lua is a powerful, fast, light-weight, embeddable scripting language.
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ config BR2_PACKAGE_LUA
|
||||||
|
|
||||||
if BR2_PACKAGE_LUA
|
if BR2_PACKAGE_LUA
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
||||||
default "lua"
|
default "lua"
|
||||||
|
|
||||||
choice
|
choice
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
config BR2_PACKAGE_LUAEXPAT
|
config BR2_PACKAGE_LUAEXPAT
|
||||||
bool "luaexpat"
|
bool "luaexpat"
|
||||||
select BR2_PACKAGE_EXPAT
|
select BR2_PACKAGE_EXPAT
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
LuaExpat is a SAX XML parser based on the Expat library.
|
LuaExpat is a SAX XML parser based on the Expat library.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUAFILESYSTEM
|
config BR2_PACKAGE_LUAFILESYSTEM
|
||||||
bool "luafilesystem"
|
bool "luafilesystem"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
LuaFileSystem offers a portable way to access
|
LuaFileSystem offers a portable way to access
|
||||||
the underlying directory structure and file attributes.
|
the underlying directory structure and file attributes.
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
config BR2_PACKAGE_HAS_LUA_INTERPRETER
|
config BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
||||||
string
|
string
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
|
|
||||||
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
|
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
|
||||||
string
|
string
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
LUAINTERPRETER_SOURCE =
|
LUAINTERPRETER_SOURCE =
|
||||||
LUAINTERPRETER_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_LUA_INTERPRETER))
|
LUAINTERPRETER_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_LUAINTERPRETER))
|
||||||
|
|
||||||
LUAINTERPRETER_ABIVER = $(call qstrip,$(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION))
|
LUAINTERPRETER_ABIVER = $(call qstrip,$(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION))
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_HAS_LUA_INTERPRETER),y)
|
ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
|
||||||
ifeq ($(LUAINTERPRETER_DEPENDENCIES),)
|
ifeq ($(LUAINTERPRETER_DEPENDENCIES),)
|
||||||
$(error No lua interpreter implementation selected. Configuration error.)
|
$(error No lua interpreter implementation selected. Configuration error.)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUAJIT
|
config BR2_PACKAGE_LUAJIT
|
||||||
bool "luajit"
|
bool "luajit"
|
||||||
select BR2_PACKAGE_HAS_LUA_INTERPRETER
|
select BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
# Luajit is only available for some target architectures, and
|
# Luajit is only available for some target architectures, and
|
||||||
# has some complexity wrt 32/64. See luajit.mk for details.
|
# has some complexity wrt 32/64. See luajit.mk for details.
|
||||||
depends on BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64') || BR2_powerpc || BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel
|
depends on BR2_i386 || (BR2_x86_64 && BR2_HOSTARCH='x86_64') || BR2_powerpc || BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel
|
||||||
|
@ -14,7 +14,7 @@ config BR2_PACKAGE_LUAJIT
|
||||||
|
|
||||||
if BR2_PACKAGE_LUAJIT
|
if BR2_PACKAGE_LUAJIT
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
|
||||||
default "luajit"
|
default "luajit"
|
||||||
|
|
||||||
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
|
config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUAPOSIX
|
config BR2_PACKAGE_LUAPOSIX
|
||||||
bool "luaposix"
|
bool "luaposix"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA_5_1
|
select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA_5_1
|
||||||
# LuaBitOp is already included in LuaJIT
|
# LuaBitOp is already included in LuaJIT
|
||||||
help
|
help
|
||||||
|
|
|
@ -2,7 +2,7 @@ config BR2_PACKAGE_LUASEC
|
||||||
bool "luasec"
|
bool "luasec"
|
||||||
select BR2_PACKAGE_OPENSSL
|
select BR2_PACKAGE_OPENSSL
|
||||||
select BR2_PACKAGE_LUASOCKET
|
select BR2_PACKAGE_LUASOCKET
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
LuaSec is a binding for OpenSSL library to provide TLS/SSL
|
LuaSec is a binding for OpenSSL library to provide TLS/SSL
|
||||||
communication.
|
communication.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUASOCKET
|
config BR2_PACKAGE_LUASOCKET
|
||||||
bool "luasocket"
|
bool "luasocket"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
LuaSocket is the most comprehensive networking support library
|
LuaSocket is the most comprehensive networking support library
|
||||||
for the Lua language.
|
for the Lua language.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_LUASQL_SQLITE3
|
config BR2_PACKAGE_LUASQL_SQLITE3
|
||||||
bool "luasql-sqlite3"
|
bool "luasql-sqlite3"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
select BR2_PACKAGE_SQLITE
|
select BR2_PACKAGE_SQLITE
|
||||||
help
|
help
|
||||||
LuaSQL is a simple interface from Lua to a DBMS.
|
LuaSQL is a simple interface from Lua to a DBMS.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
config BR2_PACKAGE_LZLIB
|
config BR2_PACKAGE_LZLIB
|
||||||
bool "lzlib"
|
bool "lzlib"
|
||||||
select BR2_PACKAGE_ZLIB
|
select BR2_PACKAGE_ZLIB
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
This package provides a library to access zlib library
|
This package provides a library to access zlib library
|
||||||
functions and also to read/write gzip files using an
|
functions and also to read/write gzip files using an
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_RINGS
|
config BR2_PACKAGE_RINGS
|
||||||
bool "rings"
|
bool "rings"
|
||||||
depends on BR2_PACKAGE_HAS_LUA_INTERPRETER
|
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
|
||||||
help
|
help
|
||||||
Provides a way to create new Lua states from within Lua.
|
Provides a way to create new Lua states from within Lua.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue