python-markdown: new package
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Sun, 21 Dec 2014 15:26:54 +0000 (16:26 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Dec 2014 20:56:36 +0000 (21:56 +0100)
[Thomas:
 - Remove host variant of python-markdown, as it is not needed.
 - Add runtime dependency on Python XML module.]

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/python-markdown/Config.in [new file with mode: 0644]
package/python-markdown/python-markdown.mk [new file with mode: 0644]

index 52a0bc7aa544db44c9a438fa0fcbc0d9908ed3ee..e27a80466f561937d685f948414729d9ae906a6b 100644 (file)
@@ -512,6 +512,7 @@ menu "external python modules"
        source "package/python-keyring/Config.in"
        source "package/python-libconfig/Config.in"
        source "package/python-mad/Config.in"
+       source "package/python-markdown/Config.in"
        source "package/python-markupsafe/Config.in"
        source "package/python-meld3/Config.in"
        source "package/python-msgpack/Config.in"
diff --git a/package/python-markdown/Config.in b/package/python-markdown/Config.in
new file mode 100644 (file)
index 0000000..6706684
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_MARKDOWN
+       bool "python-markdown"
+       # runtime dependency on Python's xml module
+       select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON
+       select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3
+       help
+         This is a Python implementation of John Gruber's Markdown
+
+         https://pypi.python.org/pypi/Markdown
diff --git a/package/python-markdown/python-markdown.mk b/package/python-markdown/python-markdown.mk
new file mode 100644 (file)
index 0000000..864825e
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-markdown
+#
+################################################################################
+
+PYTHON_MARKDOWN_VERSION = 2.5.2
+PYTHON_MARKDOWN_SOURCE = Markdown-$(PYTHON_MARKDOWN_VERSION).tar.gz
+PYTHON_MARKDOWN_SITE = http://pypi.python.org/packages/source/M/Markdown
+PYTHON_MARKDOWN_LICENSE = BSD-3c
+PYTHON_MARKDOWN_LICENSE_FILES = LICENSE.md
+PYTHON_MARKDOWN_SETUP_TYPE = distutils
+
+$(eval $(python-package))