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/5] python3-mako: new package
Date: Tue,  6 Jun 2017 16:37:04 +0200	[thread overview]
Message-ID: <20170606143705.5219-4-l.stach@pengutronix.de> (raw)
In-Reply-To: <20170606143705.5219-1-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/python3-mako.in   | 11 ++++++++++
 rules/python3-mako.make | 57 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/python3-mako.in
 create mode 100644 rules/python3-mako.make

diff --git a/rules/python3-mako.in b/rules/python3-mako.in
new file mode 100644
index 000000000000..2efc23a22bbe
--- /dev/null
+++ b/rules/python3-mako.in
@@ -0,0 +1,11 @@
+## SECTION=python3
+
+config PYTHON3_MAKO
+	tristate
+	prompt "python3-mako"
+	select PYTHON3
+	select HOST_PYTHON3_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/python3-mako.make b/rules/python3-mako.make
new file mode 100644
index 000000000000..1d34f84b63c5
--- /dev/null
+++ b/rules/python3-mako.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 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_PYTHON3_MAKO) += python3-mako
+
+#
+# Paths and names
+#
+PYTHON3_MAKO_VERSION	:= 1.0.6
+PYTHON3_MAKO_MD5	:= a28e22a339080316b2acc352b9ee631c
+PYTHON3_MAKO		:= Mako-$(PYTHON3_MAKO_VERSION)
+PYTHON3_MAKO_SUFFIX	:= tar.gz
+PYTHON3_MAKO_URL	:= https://pypi.python.org/packages/56/4b/cb75836863a6382199aefb3d3809937e21fa4cb0db15a4f4ba0ecc2e7e8e/$(PYTHON3_MAKO).$(PYTHON3_MAKO_SUFFIX)
+PYTHON3_MAKO_SOURCE	:= $(SRCDIR)/$(PYTHON3_MAKO).$(PYTHON3_MAKO_SUFFIX)
+PYTHON3_MAKO_DIR	:= $(BUILDDIR)/python3-$(PYTHON3_MAKO)
+PYTHON3_MAKO_LICENSE	:= MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_MAKO_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-mako.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-mako)
+	@$(call install_fixup, python3-mako,PRIORITY,optional)
+	@$(call install_fixup, python3-mako,SECTION,base)
+	@$(call install_fixup, python3-mako,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+	@$(call install_fixup, python3-mako,DESCRIPTION,missing)
+
+	@for file in `find $(PYTHON3_MAKO_PKGDIR)/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/mako  \
+			! -type d ! -name "*.py" -printf "%P\n"`; do \
+		$(call install_copy, python3-mako, 0, 0, 0644, -, \
+			/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/mako/$$file); \
+	done
+
+	@$(call install_finish, python3-mako)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2017-06-06 14:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
2017-06-07  9:25   ` Roland Hieber
2017-06-06 14:37 ` Lucas Stach [this message]
2017-06-06 14:37 ` [ptxdist] [PATCH 5/5] piglit: " Lucas Stach

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=20170606143705.5219-4-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