diff mbox

[v4,2/2] python-cheetah: add new package

Message ID 1419175615-13068-2-git-send-email-gwenj@trabucayre.com
State Accepted
Headers show

Commit Message

Gwenhael Goavec-Merou Dec. 21, 2014, 3:26 p.m. UTC
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
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

Comments

Thomas Petazzoni Dec. 21, 2014, 9:04 p.m. UTC | #1
Dear Gwenhael Goavec-Merou,

On Sun, 21 Dec 2014 16:26:55 +0100, Gwenhael Goavec-Merou wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> 
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>

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
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 51630ba..3324f17 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/python-cheetah/Config.in b/package/python-cheetah/Config.in
new file mode 100644
index 0000000..24391a9
--- /dev/null
+++ b/package/python-cheetah/Config.in
@@ -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/
diff --git a/package/python-cheetah/python-cheetah.mk b/package/python-cheetah/python-cheetah.mk
new file mode 100644
index 0000000..523ad26
--- /dev/null
+++ b/package/python-cheetah/python-cheetah.mk
@@ -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))