From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iZAYb-0007nz-0a for ptxdist@pengutronix.de; Mon, 25 Nov 2019 10:21:21 +0100 Received: by mail-wm1-x341.google.com with SMTP id g206so14310149wme.1 for ; Mon, 25 Nov 2019 01:21:20 -0800 (PST) From: =?UTF-8?q?Guillermo=20Rodr=C3=ADguez?= Date: Mon, 25 Nov 2019 10:21:17 +0100 Message-Id: <20191125092117.6395-1-guille.rodriguez@gmail.com> In-Reply-To: <20191121115256.12410-1-guille.rodriguez@gmail.com> References: <20191121115256.12410-1-guille.rodriguez@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v3] python3-cffi: New package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Guillermo=20Rodr=C3=ADguez?= Foreign Function Interface for Python calling C code. Signed-off-by: Guillermo Rodriguez --- v2: Fix site-packages path v3: Fix whitespace rules/python3-cffi.in | 8 ++++++ rules/python3-cffi.make | 56 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 rules/python3-cffi.in create mode 100644 rules/python3-cffi.make diff --git a/rules/python3-cffi.in b/rules/python3-cffi.in new file mode 100644 index 000000000..e26714d51 --- /dev/null +++ b/rules/python3-cffi.in @@ -0,0 +1,8 @@ +## SECTION=python3 + +config PYTHON3_CFFI + tristate + select PYTHON3 + prompt "python3-cffi" + help + Foreign Function Interface for Python calling C code. diff --git a/rules/python3-cffi.make b/rules/python3-cffi.make new file mode 100644 index 000000000..978af8af6 --- /dev/null +++ b/rules/python3-cffi.make @@ -0,0 +1,56 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Guillermo Rodriguez +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PYTHON3_CFFI) += python3-cffi + +# +# Paths and names +# +PYTHON3_CFFI_VERSION := 1.13.2 +PYTHON3_CFFI_MD5 := 652203cf99faa254efff7fab23c2f3a2 +PYTHON3_CFFI := cffi-$(PYTHON3_CFFI_VERSION) +PYTHON3_CFFI_SUFFIX := tar.gz +PYTHON3_CFFI_URL := https://pypi.python.org/packages/source/c/cffi/$(PYTHON3_CFFI).$(PYTHON3_CFFI_SUFFIX) +PYTHON3_CFFI_SOURCE := $(SRCDIR)/$(PYTHON3_CFFI).$(PYTHON3_CFFI_SUFFIX) +PYTHON3_CFFI_DIR := $(BUILDDIR)/$(PYTHON3_CFFI) +PYTHON3_CFFI_LICENSE := MIT +PYTHON3_CFFI_LICENSE_FILES := \ + file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +PYTHON3_CFFI_CONF_TOOL := python3 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-cffi.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-cffi) + @$(call install_fixup, python3-cffi, PRIORITY, optional) + @$(call install_fixup, python3-cffi, SECTION, base) + @$(call install_fixup, python3-cffi, AUTHOR, "Guillermo Rodriguez ") + @$(call install_fixup, python3-cffi, DESCRIPTION, missing) + + @$(call install_glob, python3-cffi, 0, 0, -, \ + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/cffi,, *.py *.h) + + @$(call install_lib, python3-cffi, 0, 0, 0644, python$(PYTHON3_MAJORMINOR)/site-packages/_cffi_backend.cpython*) + + @$(call install_finish, python3-cffi) + + @$(call touch) + +# vim: syntax=make -- 2.21.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de