mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 4/6] python-mako: new package
Date: Thu, 28 Jan 2016 18:27:06 +0100	[thread overview]
Message-ID: <1454002028-12486-4-git-send-email-l.stach@pengutronix.de> (raw)
In-Reply-To: <1454002028-12486-1-git-send-email-l.stach@pengutronix.de>

Mako is a template library written in Python. It provides a
familiar, non-XML syntax which compiles into Python modules
for maximum performance.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 rules/python-mako.in   | 11 ++++++++++
 rules/python-mako.make | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 rules/python-mako.in
 create mode 100644 rules/python-mako.make

diff --git a/rules/python-mako.in b/rules/python-mako.in
new file mode 100644
index 000000000000..bec88ccb4b96
--- /dev/null
+++ b/rules/python-mako.in
@@ -0,0 +1,11 @@
+## SECTION=python
+
+config PYTHON_MAKO
+	tristate
+	prompt "python-mako"
+	select PYTHON
+	select HOST_PYTHON_SETUPTOOLS
+	help
+	  Mako is a template library written in Python. It provides a
+	  familiar, non-XML syntax which compiles into Python modules
+	  for maximum performance. 
diff --git a/rules/python-mako.make b/rules/python-mako.make
new file mode 100644
index 000000000000..394d8a6eb6b1
--- /dev/null
+++ b/rules/python-mako.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON_MAKO) += python-mako
+
+#
+# Paths and names
+#
+PYTHON_MAKO_VERSION	:= 1.0.3
+PYTHON_MAKO_MD5		:= a78f20f6366a8a0659ce5532f8614e53
+PYTHON_MAKO		:= Mako-$(PYTHON_MAKO_VERSION)
+PYTHON_MAKO_SUFFIX	:= tar.gz
+PYTHON_MAKO_URL		:= https://pypi.python.org/packages/source/M/Mako/$(PYTHON_MAKO).$(PYTHON_MAKO_SUFFIX)
+PYTHON_MAKO_SOURCE	:= $(SRCDIR)/$(PYTHON_MAKO).$(PYTHON_MAKO_SUFFIX)
+PYTHON_MAKO_DIR		:= $(BUILDDIR)/$(PYTHON_MAKO)
+PYTHON_MAKO_LICENSE	:= MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON_MAKO_CONF_TOOL	:= python
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+PYTHON_MAKO_PYTHON_PATH = /usr/lib/python$(PYTHON_MAJORMINOR)/site-packages/mako
+
+$(STATEDIR)/python-mako.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python-mako)
+	@$(call install_fixup, python-mako,PRIORITY,optional)
+	@$(call install_fixup, python-mako,SECTION,base)
+	@$(call install_fixup, python-mako,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+	@$(call install_fixup, python-mako,DESCRIPTION,missing)
+
+	@cd "$(PYTHON_MAKO_PKGDIR)$(PYTHON_MAKO_PYTHON_PATH)" && \
+	find -type d -o -type f -name "*.py" -printf '%P\n' | while read fn; do \
+		$(call install_copy, python-mako, 0, 0, 0644, -, \
+		$(PYTHON_MAKO_PYTHON_PATH)/$$fn); \
+	done
+
+	@$(call install_finish, python-mako)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.7.0.rc3


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2016-01-28 17:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28 17:27 [ptxdist] [PATCH 1/6] python: install python2 symlink Lucas Stach
2016-01-28 17:27 ` [ptxdist] [PATCH 2/6] host-python-six: new package Lucas Stach
2016-01-28 17:27 ` [ptxdist] [PATCH 3/6] host-python-numpy: " Lucas Stach
2016-01-28 17:27 ` Lucas Stach [this message]
2016-01-28 17:27 ` [ptxdist] [PATCH 5/6] waffle: " Lucas Stach
2016-02-01 14:39   ` Michael Olbrich
2016-01-28 17:27 ` [ptxdist] [PATCH 6/6] piglit: " Lucas Stach
2016-02-01 14:43   ` Michael Olbrich
2016-02-11 11:26 ` [ptxdist] [PATCH 1/6] python: install python2 symlink Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454002028-12486-4-git-send-email-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox