From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/4] host-python-six: new package
Date: Mon, 8 Jun 2015 12:05:58 +0200 [thread overview]
Message-ID: <1433757960-27712-2-git-send-email-l.stach@pengutronix.de> (raw)
In-Reply-To: <1433757960-27712-1-git-send-email-l.stach@pengutronix.de>
Six is a Python 2 and 3 compatibility library.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
rules/host-python-six.in | 8 +++++++
rules/host-python-six.make | 55 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 rules/host-python-six.in
create mode 100644 rules/host-python-six.make
diff --git a/rules/host-python-six.in b/rules/host-python-six.in
new file mode 100644
index 000000000000..d1e9f5b61f23
--- /dev/null
+++ b/rules/host-python-six.in
@@ -0,0 +1,8 @@
+## SECTION=python
+
+config HOST_PYTHON_SIX
+ tristate
+ prompt "python-six"
+ select HOST_PYTHON
+ help
+ Six is a Python 2 and 3 compatibility library.
diff --git a/rules/host-python-six.make b/rules/host-python-six.make
new file mode 100644
index 000000000000..d80e2057896a
--- /dev/null
+++ b/rules/host-python-six.make
@@ -0,0 +1,55 @@
+# -*-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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_PYTHON_SIX) += host-python-six
+
+#
+# Paths and names
+#
+HOST_PYTHON_SIX_VERSION := 1.9.0
+HOST_PYTHON_SIX_MD5 := 476881ef4012262dfc8adc645ee786c4
+HOST_PYTHON_SIX := six-$(HOST_PYTHON_SIX_VERSION)
+HOST_PYTHON_SIX_SUFFIX := tar.gz
+HOST_PYTHON_SIX_URL := https://pypi.python.org/packages/source/s/six/$(HOST_PYTHON_SIX).$(HOST_PYTHON_SIX_SUFFIX)
+HOST_PYTHON_SIX_SOURCE := $(SRCDIR)/$(HOST_PYTHON_SIX).$(HOST_PYTHON_SIX_SUFFIX)
+HOST_PYTHON_SIX_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON_SIX)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_PYTHON_SIX_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-python-six.compile:
+ @$(call targetinfo)
+ @cd $(HOST_PYTHON_SIX_DIR) && \
+ $(HOST_ENV) $(PTXCONF_SYSROOT_HOST)/bin/python$(PYTHON_MAJORMINOR) \
+ setup.py build
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-python-six.install:
+ @$(call targetinfo)
+ @cd $(HOST_PYTHON_SIX_DIR) && \
+ $(HOST_ENV) $(PTXCONF_SYSROOT_HOST)/bin/python$(PYTHON_MAJORMINOR) \
+ setup.py install --root=$(HOST_PYTHON_SIX_PKGDIR) --prefix=
+ @$(call touch)
+
+# vim: syntax=make
--
2.1.4
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2015-06-08 10:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 10:05 [ptxdist] [PATCH 1/4] python: install python2 symlink Lucas Stach
2015-06-08 10:05 ` Lucas Stach [this message]
2015-06-08 10:05 ` [ptxdist] [PATCH 3/4] python-mako: new package Lucas Stach
2015-06-08 10:06 ` [ptxdist] [PATCH 4/4] 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=1433757960-27712-2-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