From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WO5Lk-0004MD-Pg for ptxdist@pengutronix.de; Thu, 13 Mar 2014 14:07:24 +0100 Received: by mail-ee0-f53.google.com with SMTP id e51so399863eek.26 for ; Thu, 13 Mar 2014 06:06:59 -0700 (PDT) From: Alexander Aring Date: Thu, 13 Mar 2014 14:06:45 +0100 Message-Id: <1394716005-18738-2-git-send-email-alex.aring@gmail.com> In-Reply-To: <1394716005-18738-1-git-send-email-alex.aring@gmail.com> References: <1394716005-18738-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 2/2] pyzmq: add new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring Signed-off-by: Alexander Aring --- 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 +# +# 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 ") + @$(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