mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
package/argparse: new package
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> [Thomas: remove unnecessary BR2_PACKAGE_HAS_LUAINTERPRETER dependency.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
3240f59e96
commit
169d1632d5
@ -508,6 +508,7 @@ endif
|
|||||||
if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS
|
if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS
|
||||||
# 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/argparse/Config.in"
|
||||||
source "package/cgilua/Config.in"
|
source "package/cgilua/Config.in"
|
||||||
source "package/copas/Config.in"
|
source "package/copas/Config.in"
|
||||||
source "package/cosmo/Config.in"
|
source "package/cosmo/Config.in"
|
||||||
|
10
package/argparse/Config.in
Normal file
10
package/argparse/Config.in
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
config BR2_PACKAGE_ARGPARSE
|
||||||
|
bool "argparse"
|
||||||
|
help
|
||||||
|
Argparse is a feature-rich command line parser for Lua
|
||||||
|
inspired by argparse for Python. Argparse supports
|
||||||
|
positional arguments, options, flags, optional arguments,
|
||||||
|
subcommands and more. Argparse automatically generates
|
||||||
|
usage, help and error messages.
|
||||||
|
|
||||||
|
https://github.com/mpeterv/argparse
|
2
package/argparse/argparse.hash
Normal file
2
package/argparse/argparse.hash
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Locally calculated
|
||||||
|
sha256 e00e5637c937d7bfca96025f2c598ba4fffe9eb818d69952e77b4c08167a6be3 argparse-0.5.0-1.src.rock
|
13
package/argparse/argparse.mk
Normal file
13
package/argparse/argparse.mk
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# argparse
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
ARGPARSE_VERSION_UPSTREAM = 0.5.0
|
||||||
|
ARGPARSE_VERSION = $(ARGPARSE_VERSION_UPSTREAM)-1
|
||||||
|
ARGPARSE_SUBDIR = argparse
|
||||||
|
ARGPARSE_LICENSE = MIT
|
||||||
|
ARGPARSE_LICENSE_FILES = $(ARGPARSE_SUBDIR)/LICENSE
|
||||||
|
|
||||||
|
$(eval $(luarocks-package))
|
Loading…
x
Reference in New Issue
Block a user