Skip to contentSkip to conversation

package/argparse: new package

PATCH New Marcin Niestroj 2 participants 2 messages Jun 2, 2016 – Jun 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/argparse: new package

---
 package/Config.in              |  1 +
 package/argparse/Config.in     | 11 +++++++++++
 package/argparse/argparse.hash |  2 ++
 package/argparse/argparse.mk   | 13 +++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/argparse/Config.in
 create mode 100644 package/argparse/argparse.hash
 create mode 100644 package/argparse/argparse.mk
package/Config.in +1 -0
index ae74f17..b7ad54a 100644
@@ -506,6 +506,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"
package/argparse/Config.in new file +11 -0
new file mode 100644
index 0000000..c7ed7ae
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_ARGPARSE
+	bool "argparse"
+	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+	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
package/argparse/argparse.hash new file +2 -0
new file mode 100644
index 0000000..a4746bc
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	e00e5637c937d7bfca96025f2c598ba4fffe9eb818d69952e77b4c08167a6be3  argparse-0.5.0-1.src.rock
package/argparse/argparse.mk new file +13 -0
new file mode 100644
index 0000000..095f0a3
@@ -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))
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/1 package/argparse: new package

Hello,

package/argparse/Config.in line 3

Quoted 3 lines · Marcin Niestroj
package/argparse/Config.in new file +3 -0
+config BR2_PACKAGE_ARGPARSE
+	bool "argparse"
+	depends on BR2_PACKAGE_HAS_LUAINTERPRETER

This dependency is not needed, since argparse/Config.in is already included in an if ... endif block with this condition.

I've fixed this and applied your patch. Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com