Skip to contentSkip to conversation

python-markdown: add new package

PATCH New Gwenhael Goavec-Merou 2 participants 4 messages Dec 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 python-markdown: add new package

From: Gwenhael Goavec-Merou <[email protected]>

---
Changes v1 -> v2:
- Change license

 package/Config.in                          |  1 +
 package/python-markdown/Config.in          |  6 ++++++
 package/python-markdown/python-markdown.mk | 15 +++++++++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 package/python-markdown/Config.in
 create mode 100644 package/python-markdown/python-markdown.mk
package/Config.in +1 -0
index 81bb9e3..51630ba 100644
@@ -511,6 +511,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"
package/python-markdown/Config.in new file +6 -0
new file mode 100644
index 0000000..e5e164e
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_MARKDOWN
+	bool "python-markdown"
+	help
+	  This is a Python implementation of John Gruber's Markdown 
+
+	  https://pypi.python.org/pypi/Markdown
package/python-markdown/python-markdown.mk new file +15 -0
new file mode 100644
index 0000000..05783a0
@@ -0,0 +1,15 @@
+################################################################################
+#
+# 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))
+$(eval $(host-python-package))
Signature · 1 line
2.0.4
#1 lore raw

PATCH v4 2/2 python-cheetah: add new package

From: Gwenhael Goavec-Merou <[email protected]>

---
Changes v3 -> v4:
- fix dependencies again: suppress depency to markdown in mk file

Changes v2 -> v3:
- fix dependencies

Changes v1 -> v2:
- Add python-cheetah patch

 package/Config.in                        |  1 +
 package/python-cheetah/Config.in         | 13 +++++++++++++
 package/python-cheetah/python-cheetah.mk | 14 ++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 package/python-cheetah/Config.in
 create mode 100644 package/python-cheetah/python-cheetah.mk
package/Config.in +1 -0
index 51630ba..3324f17 100644
@@ -489,6 +489,7 @@ menu "external python modules"
 	source "package/python-bottle/Config.in"
 	source "package/python-certifi/Config.in"
 	source "package/python-cffi/Config.in"
+	source "package/python-cheetah/Config.in"
 	source "package/python-configobj/Config.in"
 	source "package/python-configshell-fb/Config.in"
 	source "package/python-crc16/Config.in"
package/python-cheetah/Config.in new file +13 -0
new file mode 100644
index 0000000..24391a9
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_CHEETAH
+	bool "python-cheetah"
+	# runtime dependency only
+	select BR2_PACKAGE_PYTHON_MARKDOWN
+	help
+	  Cheetah is an open source template engine and code generation tool.
+
+	  It can be used standalone or combined with other tools and frameworks.
+	  Web development is its principle use, but Cheetah is very flexible
+	  and is also being used to generate C++ game code, Java, sql, form
+	  emails and even Python code.
+
+	  https://pypi.python.org/pypi/Cheetah/
package/python-cheetah/python-cheetah.mk new file +14 -0
new file mode 100644
index 0000000..523ad26
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cheetah
+#
+################################################################################
+
+PYTHON_CHEETAH_VERSION = 2.4.4
+PYTHON_CHEETAH_SOURCE = Cheetah-$(PYTHON_CHEETAH_VERSION).tar.gz
+PYTHON_CHEETAH_SITE = http://pypi.python.org/packages/source/C/Cheetah
+PYTHON_CHEETAH_LICENSE = MIT
+PYTHON_CHEETAH_SETUP_TYPE = setuptools
+PYTHON_CHEETAH_DEPENDENCIES += host-python-markdown
+
+$(eval $(python-package))
Signature · 1 line
2.0.4
#2 lore raw

PATCH v4 2/2 python-cheetah: add new package

Dear Gwenhael Goavec-Merou,

Quoted 3 lines · Gwenhael Goavec-Merou

From: Gwenhael Goavec-Merou <[email protected]>

I was a bit scared to see that this thing is not maintained since 2010, but oh well, if you're using it :-)

I've applied your patch, after doing some changes:

[Thomas:
- Remove dependency on host-python-markdown, apparently not needed (it builds fine in a minimal chroot, which doesn't have python-markdown installed)
- Remove runtime dependency on markdown, I can run Cheetah basic examples without python-markdown installed.
- Add dependency on Python 2 only, since it doesn't build for Python 3.]

Thanks,

Thomas

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

PATCH v4 1/2 python-markdown: add new package

In reply to Gwenhael Goavec-Merou

Dear Gwenhael Goavec-Merou,

Quoted 3 lines · Gwenhael Goavec-Merou

From: Gwenhael Goavec-Merou <[email protected]>

Thanks, applied, after doing various changes:

[Thomas:
- Remove host variant of python-markdown, as it is not needed.
- Add runtime dependency on Python XML module.]

Thomas

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