* [Buildroot] [PATCH v2 1/1] python-docopt: new package
@ 2014-12-09 10:28 Alvaro G. M
2014-12-09 18:18 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Alvaro G. M @ 2014-12-09 10:28 UTC (permalink / raw)
To: buildroot
Signed-off-by: Alvaro G. M <alvaro.gamez@hazent.com>
---
Through means of the evil copy&paste, in last version of this patch,
python-docopt.mk was called python-bottle.mk.
package/Config.in | 1 +
package/python-docopt/Config.in | 11 +++++++++++
package/python-docopt/python-docopt.mk | 12 ++++++++++++
3 files changed, 24 insertions(+)
create mode 100644 package/python-docopt/Config.in
create mode 100644 package/python-docopt/python-docopt.mk
diff --git a/package/Config.in b/package/Config.in
index 600a68d..dd3a46e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
index 0000000..bb7d0de
--- /dev/null
+++ b/package/python-docopt/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_DOCOPT
+ bool "python-docopt"
+ depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+ 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
index 0000000..092358a
--- /dev/null
+++ b/package/python-docopt/python-docopt.mk
@@ -0,0 +1,12 @@
+################################################################################
+#
+# python-docopt
+#
+################################################################################
+
+PYTHON_DOCOPT_VERSION = 0.6.2
+PYTHON_DOCOPT_SITE = $(call github,docopt,docopt,$(PYTHON_DOCOPT_VERSION))
+PYTHON_DOCOPT_LICENSE = MIT
+PYTHON_DOCOPT_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
--
2.1.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] python-docopt: new package
2014-12-09 10:28 [Buildroot] [PATCH v2 1/1] python-docopt: new package Alvaro G. M
@ 2014-12-09 18:18 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-12-09 18:18 UTC (permalink / raw)
To: buildroot
Dear Alvaro G. M,
On Tue, 9 Dec 2014 11:28:13 +0100, Alvaro G. M wrote:
> Signed-off-by: Alvaro G. M <alvaro.gamez@hazent.com>
Applied, thanks. I did a small number of changes, though:
[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.]
See
http://git.buildroot.net/buildroot/commit/?id=765b7e1995fac384d26de269e33ad48697ed747a
for the final commit.
Thanks,
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:[~2014-12-09 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 10:28 [Buildroot] [PATCH v2 1/1] python-docopt: new package Alvaro G. M
2014-12-09 18:18 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox