python-docopt: new package
authorAlvaro G. M <alvaro.gamez@hazent.com>
Tue, 9 Dec 2014 10:28:13 +0000 (11:28 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Dec 2014 18:17:00 +0000 (19:17 +0100)
[Thomas:
  - Remove dependency on python || python3, as we did for all other
    python modules that work with both Python 2 and Python 3.
  - Rewrap help text.
  - Add <pkg>_LICENSE_FILES value.]

Signed-off-by: Alvaro G. M <alvaro.gamez@hazent.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-docopt/Config.in [new file with mode: 0644]
package/python-docopt/python-docopt.mk [new file with mode: 0644]

index 600a68d32714380ce2cb49feeccf9b25af493306..dd3a46e18f43ba4bcd75231790bf8229ba6bef62 100644 (file)
@@ -492,6 +492,7 @@ menu "external python modules"
        source "package/python-crc16/Config.in"
        source "package/python-daemon/Config.in"
        source "package/python-dialog/Config.in"
+       source "package/python-docopt/Config.in"
        source "package/python-dpkt/Config.in"
        source "package/python-enum34/Config.in"
        source "package/python-flask/Config.in"
diff --git a/package/python-docopt/Config.in b/package/python-docopt/Config.in
new file mode 100644 (file)
index 0000000..a3a482f
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_DOCOPT
+       bool "python-docopt"
+       help
+         docopt helps you create most beautiful command-line
+         interfaces easily.  The option parser is generated based on
+         the beautiful help message that you write yourself. This way
+         you don't need to write this stupid repeatable parser-code,
+         and instead can write only the help message-- the way you
+         want it.
+
+         https://github.com/docopt/docopt
diff --git a/package/python-docopt/python-docopt.mk b/package/python-docopt/python-docopt.mk
new file mode 100644 (file)
index 0000000..f87d2f8
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-docopt
+#
+################################################################################
+
+PYTHON_DOCOPT_VERSION = 0.6.2
+PYTHON_DOCOPT_SITE = $(call github,docopt,docopt,$(PYTHON_DOCOPT_VERSION))
+PYTHON_DOCOPT_LICENSE = MIT
+PYTHON_DOCOPT_LICENSE_FILES = LICENSE-MIT
+PYTHON_DOCOPT_SETUP_TYPE = setuptools
+
+$(eval $(python-package))