From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ee0-x236.google.com ([2a00:1450:4013:c00::236]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WO5Lj-0004MC-R7 for ptxdist@pengutronix.de; Thu, 13 Mar 2014 14:07:23 +0100 Received: by mail-ee0-f54.google.com with SMTP id d49so410625eek.27 for ; Thu, 13 Mar 2014 06:06:58 -0700 (PDT) From: Alexander Aring Date: Thu, 13 Mar 2014 14:06:44 +0100 Message-Id: <1394716005-18738-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 1/2] host-cython: 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 --- Hi, I am not sure about the following points: i) helptext: it's a host package with noprompt, but I saw a helptext in host-python also. That's why I add a help text here. ii) Cython installs some site-packages which is needed by $(CROSS_PYTHON). I install things in --root=$(PTXCONF_SYSROOT_TARGET) because $(CROSS_PYTHON) used this as site-packages search path. rules/host-cython.in | 10 ++++++++++ rules/host-cython.make | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 rules/host-cython.in create mode 100644 rules/host-cython.make diff --git a/rules/host-cython.in b/rules/host-cython.in new file mode 100644 index 0000000..80a989f --- /dev/null +++ b/rules/host-cython.in @@ -0,0 +1,10 @@ +## SECTION=hosttools_noprompt + +config HOST_CYTHON + tristate + select HOST_PYTHON + help + Cython is an optimising static compiler for both the Python + programming language and the extended Cython programming language + (based on Pyrex). It makes writing C extensions for Python as easy + as Python itself. diff --git a/rules/host-cython.make b/rules/host-cython.make new file mode 100644 index 0000000..5b345a8 --- /dev/null +++ b/rules/host-cython.make @@ -0,0 +1,51 @@ +# -*-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 +# +HOST_PACKAGES-$(PTXCONF_HOST_CYTHON) += host-cython + +# +# Paths and names +# +HOST_CYTHON_VERSION := 0.20.1 +HOST_CYTHON_MD5 := 52431696c64e618036537c4d9aa79d99 +HOST_CYTHON := Cython-$(HOST_CYTHON_VERSION) +HOST_CYTHON_SUFFIX := tar.gz +HOST_CYTHON_URL := http://cython.org/release/$(HOST_CYTHON).$(HOST_CYTHON_SUFFIX) +HOST_CYTHON_SOURCE := $(SRCDIR)/$(HOST_CYTHON).$(HOST_CYTHON_SUFFIX) +HOST_CYTHON_DIR := $(HOST_BUILDDIR)/$(HOST_CYTHON) +HOST_CYTHON_LICENSE := APLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_CYTHON_PATH := PATH=$(HOST_PATH) +HOST_CYTHON_CONF_TOOL := NO + +$(STATEDIR)/host-cython.compile: + @$(call targetinfo) + @cd $(HOST_CYTHON_DIR) && \ + python2 setup.py build + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-cython.install: + @$(call targetinfo) + @cd $(HOST_CYTHON_DIR) && \ + python2 setup.py install --root=$(PTXCONF_SYSROOT_TARGET) --prefix="/usr" + @$(call touch) + +# vim: syntax=make -- 1.9.0 -- ptxdist mailing list ptxdist@pengutronix.de