mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [ptxdist] [PATCH 2/2] pyzmq: add new package
Date: Thu, 13 Mar 2014 14:06:45 +0100	[thread overview]
Message-ID: <1394716005-18738-2-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1394716005-18738-1-git-send-email-alex.aring@gmail.com>

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 rules/pyzmq.in   | 11 ++++++++
 rules/pyzmq.make | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)
 create mode 100644 rules/pyzmq.in
 create mode 100644 rules/pyzmq.make

diff --git a/rules/pyzmq.in b/rules/pyzmq.in
new file mode 100644
index 0000000..322f743
--- /dev/null
+++ b/rules/pyzmq.in
@@ -0,0 +1,11 @@
+## SECTION=python
+
+config PYZMQ
+	tristate
+	prompt "pyzmq"
+	select LIBZMQ
+	select HOST_CYTHON
+	select PYTHON
+	help
+	  PyZMQ is the official Python binding for the ZeroMQ Messaging Library
+	  (http://www.zeromq.org).
diff --git a/rules/pyzmq.make b/rules/pyzmq.make
new file mode 100644
index 0000000..0e9fa07
--- /dev/null
+++ b/rules/pyzmq.make
@@ -0,0 +1,83 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Alexander Aring <aar@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_PYZMQ) += pyzmq
+
+#
+# Paths and names
+#
+PYZMQ_VERSION	:= 14.1.0
+PYZMQ_MD5	:= 174901a85e4574629d4e586b5d37acc4
+PYZMQ		:= pyzmq-$(PYZMQ_VERSION)
+PYZMQ_SUFFIX	:= tar.gz
+PYZMQ_URL	:= https://pypi.python.org/packages/source/p/pyzmq/$(PYZMQ).$(PYZMQ_SUFFIX)
+PYZMQ_SOURCE	:= $(SRCDIR)/$(PYZMQ).$(PYZMQ_SUFFIX)
+PYZMQ_DIR	:= $(BUILDDIR)/$(PYZMQ)
+PYZMQ_LICENSE	:= BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYZMQ_CONF_TOOL	:= NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/pyzmq.compile:
+	@$(call targetinfo)
+	cd $(PYZMQ_DIR) && \
+		$(CROSS_ENV) $(CROSS_PYTHON) \
+		setup.py build --zmq=bundled
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/pyzmq.install:
+	@$(call targetinfo)
+	@cd $(PYZMQ_DIR) && \
+		$(CROSS_ENV) $(CROSS_PYTHON) \
+		setup.py install --root=$(PYZMQ_PKGDIR) --prefix=/usr
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/pyzmq.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, pyzmq)
+	@$(call install_fixup, pyzmq,PRIORITY,optional)
+	@$(call install_fixup, pyzmq,SECTION,base)
+	@$(call install_fixup, pyzmq,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
+	@$(call install_fixup, pyzmq,DESCRIPTION,missing)
+
+	@for file in $(shell cd $(PYZMQ_PKGDIR) && find . -name "*.pyc"); \
+		do \
+		$(call install_copy, pyzmq, 0, 0, 0644, -, /$$file); \
+	done
+
+	@for file in $(shell cd $(PYZMQ_PKGDIR) && find . -name "*.so"); \
+		do \
+		$(call install_copy, pyzmq, 0, 0, 0755, -, /$$file); \
+	done
+
+	@$(call install_finish, pyzmq)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.9.0


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-03-13 13:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-13 13:06 [ptxdist] [PATCH 1/2] host-cython: " Alexander Aring
2014-03-13 13:06 ` Alexander Aring [this message]
2014-03-21  9:00 ` Michael Olbrich
2014-03-21  9:32   ` Alexander Aring
2014-03-21 10:05     ` Alexander Aring
2014-03-21 12:21       ` Alexander Aring

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=1394716005-18738-2-git-send-email-alex.aring@gmail.com \
    --to=alex.aring@gmail.com \
    --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