[Buildroot] [git commit] package/argparse: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Jun 11 14:46:38 UTC 2016


commit: https://git.buildroot.net/buildroot/commit/?id=169d1632d59bc0ddf32e5e5b538c8f5099467064
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Marcin Niestroj <m.niestroj at grinn-global.com>
[Thomas: remove unnecessary BR2_PACKAGE_HAS_LUAINTERPRETER dependency.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/Config.in              |  1 +
 package/argparse/Config.in     | 10 ++++++++++
 package/argparse/argparse.hash |  2 ++
 package/argparse/argparse.mk   | 13 +++++++++++++
 4 files changed, 26 insertions(+)

diff --git a/package/Config.in b/package/Config.in
index f1bc86d..3d99d72 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -508,6 +508,7 @@ endif
 if BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS
 # lua modules are dynamically loaded, so not available on static builds
 menu "Lua libraries/modules"
+	source "package/argparse/Config.in"
 	source "package/cgilua/Config.in"
 	source "package/copas/Config.in"
 	source "package/cosmo/Config.in"
diff --git a/package/argparse/Config.in b/package/argparse/Config.in
new file mode 100644
index 0000000..d207b04
--- /dev/null
+++ b/package/argparse/Config.in
@@ -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
diff --git a/package/argparse/argparse.hash b/package/argparse/argparse.hash
new file mode 100644
index 0000000..a4746bc
--- /dev/null
+++ b/package/argparse/argparse.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	e00e5637c937d7bfca96025f2c598ba4fffe9eb818d69952e77b4c08167a6be3  argparse-0.5.0-1.src.rock
diff --git a/package/argparse/argparse.mk b/package/argparse/argparse.mk
new file mode 100644
index 0000000..095f0a3
--- /dev/null
+++ b/package/argparse/argparse.mk
@@ -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))


More information about the buildroot mailing list