summaryrefslogtreecommitdiffstats
path: root/rules/python3-mako.make
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-06-06 16:37:04 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-24 11:17:04 +0200
commit178d691651b42787f8210444cca9d0706916dfa9 (patch)
treef123f54b605c4109d1728ab75d732142505a2c15 /rules/python3-mako.make
parenta5cf9f38c7510077c16ed90a8471513fffe13858 (diff)
downloadptxdist-178d691651b42787f8210444cca9d0706916dfa9.tar.gz
ptxdist-178d691651b42787f8210444cca9d0706916dfa9.tar.xz
python3-mako: new package
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> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/python3-mako.make')
-rw-r--r--rules/python3-mako.make54
1 files changed, 54 insertions, 0 deletions
diff --git a/rules/python3-mako.make b/rules/python3-mako.make
new file mode 100644
index 000000000..507db4442
--- /dev/null
+++ b/rules/python3-mako.make
@@ -0,0 +1,54 @@
+# -*-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)
+
+ @$(call install_glob, python3-mako, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/mako,, *.py)
+
+ @$(call install_finish, python3-mako)
+
+ @$(call touch)
+
+# vim: syntax=make