Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/argparse: new package
@ 2016-06-02 15:05 Marcin Niestroj
  2016-06-11 14:47 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Niestroj @ 2016-06-02 15:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
---
 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

diff --git a/package/Config.in b/package/Config.in
index ae74f17..b7ad54a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/argparse/Config.in b/package/argparse/Config.in
new file mode 100644
index 0000000..c7ed7ae
--- /dev/null
+++ b/package/argparse/Config.in
@@ -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
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))
-- 
2.8.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/argparse: new package
  2016-06-02 15:05 [Buildroot] [PATCH] package/argparse: new package Marcin Niestroj
@ 2016-06-11 14:47 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-06-11 14:47 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu,  2 Jun 2016 17:05:53 +0200, Marcin Niestroj wrote:

> +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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-11 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-02 15:05 [Buildroot] [PATCH] package/argparse: new package Marcin Niestroj
2016-06-11 14:47 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox