mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Stender <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Robin van der Gracht <robin@protonic.nl>
Subject: [ptxdist] [PATCH 2/3] host-python3-shiboken: new package
Date: Wed, 31 Jan 2018 12:16:44 +0100	[thread overview]
Message-ID: <20180131111645.19171-2-bst@pengutronix.de> (raw)
In-Reply-To: <20180131111645.19171-1-bst@pengutronix.de>

From: Robin van der Gracht <robin@protonic.nl>

Depends on "python3-shiboken: new package", because we assume a
patched shiboken 1.2.2.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/host-python3-shiboken.in   |  9 +++++++
 rules/host-python3-shiboken.make | 55 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 rules/host-python3-shiboken.in
 create mode 100644 rules/host-python3-shiboken.make

diff --git a/rules/host-python3-shiboken.in b/rules/host-python3-shiboken.in
new file mode 100644
index 000000000..351121547
--- /dev/null
+++ b/rules/host-python3-shiboken.in
@@ -0,0 +1,9 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON3_SHIBOKEN
+	tristate
+	default ALLYES
+	select HOST_APIEXTRACTOR
+	select HOST_GENERATORRUNNER
+	select HOST_CMAKE
+	select HOST_PYTHON3
diff --git a/rules/host-python3-shiboken.make b/rules/host-python3-shiboken.make
new file mode 100644
index 000000000..6363c1157
--- /dev/null
+++ b/rules/host-python3-shiboken.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Robin van der Gracht <robin@protonic.nl>
+#
+# 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_PYTHON3_SHIBOKEN) += host-python3-shiboken
+
+#
+# Paths and names
+#
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+HOST_PYTHON3_SHIBOKEN_CONF_TOOL	:= cmake
+HOST_PYTHON3_SHIBOKEN_CONF_OPT	= \
+	$(HOST_CMAKE_OPT) \
+	-DBUILD_TESTS:BOOL=OFF \
+	-DDISABLE_DOCSTRINGS:BOOL=ON \
+	-DUSE_PYTHON3:BOOL=ON \
+	-DPython3_PREFERRED_VERSION=python$(PYTHON3_MAJORMINOR)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-python3-shiboken.install:
+	@$(call targetinfo)
+	@$(call world/install, HOST_PYTHON3_SHIBOKEN)
+	@sed -i -e 's,"$(PTXCONF_SYSROOT_HOST),",g' \
+		$(HOST_PYTHON3_SHIBOKEN_PKGDIR)/lib/cmake/Shiboken-$(PYTHON3_SHIBOKEN_VERSION)/ShibokenConfig.cpython-*.cmake
+	@$(call touch)
+
+$(STATEDIR)/host-python3-shiboken.install.post:
+	@$(call targetinfo)
+	@$(call world/install.post, HOST_PYTHON3_SHIBOKEN)
+	@sed -i -e 's,(/,($(PTXCONF_SYSROOT_HOST)/,g' \
+		'$(PTXCONF_SYSROOT_HOST)/lib/cmake/Shiboken-$(PYTHON3_SHIBOKEN_VERSION)/ShibokenConfig.cmake'
+	@sed -i -e 's,"/,"$(PTXCONF_SYSROOT_HOST)/,g' \
+		$(HOST_PYTHON3_SHIBOKEN_PKGDIR)/lib/cmake/Shiboken-$(PYTHON3_SHIBOKEN_VERSION)/ShibokenConfig.cpython-*.cmake
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.15.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-01-31 11:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31 11:16 [ptxdist] [PATCH 1/3] python3-shiboken: " Bastian Stender
2018-01-31 11:16 ` Bastian Stender [this message]
2018-01-31 11:16 ` [ptxdist] [PATCH 3/3] python3-pyside: " Bastian Stender

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=20180131111645.19171-2-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=robin@protonic.nl \
    /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