From patchwork Sun Apr 19 08:03:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 462436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 0E284140273 for ; Sun, 19 Apr 2015 18:01:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 481ACA33C6; Sun, 19 Apr 2015 08:01:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4naZv9-2mdP7; Sun, 19 Apr 2015 08:01:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E543DA33BC; Sun, 19 Apr 2015 08:01:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 962841C15D6 for ; Sun, 19 Apr 2015 08:01:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 927E592329 for ; Sun, 19 Apr 2015 08:01:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id US5MD2rsOcWE for ; Sun, 19 Apr 2015 08:01:50 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by whitealder.osuosl.org (Postfix) with ESMTPS id 685E0922EA for ; Sun, 19 Apr 2015 08:01:50 +0000 (UTC) Received: from x230.trabucayre.com (unknown [81.56.132.22]) by smtp2-g21.free.fr (Postfix) with ESMTP id CB67D4B0178; Sun, 19 Apr 2015 09:59:02 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Sun, 19 Apr 2015 10:03:52 +0200 Message-Id: <1429430633-12267-1-git-send-email-gwenj@trabucayre.com> X-Mailer: git-send-email 2.0.5 Cc: Thomas Petazzoni , Gwenhael Goavec-Merou , "Yann E. MORIN" Subject: [Buildroot] [PATCH v3 1/2] python-sip: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Gwenhael Goavec-Merou Based on http://lists.busybox.net/pipermail/buildroot/2013-October/080830.html Signed-off-by: Gwenhael Goavec-Merou Cc: Sergey Kostanbaev --- Changes v2 -> v3: * bump version. * suppress patch, --sysroot is enough. * use qmake for configuration instead of sed. * corrects LICENSE variable * add depends on Qt Changes v1 -> v2: * renames patch. * add depends on BR2_INSTALL_LIBSTDCPP. * add hash file. * add license informations. --- package/Config.in | 1 + package/python-sip/Config.in | 12 ++++++++++ package/python-sip/python-sip.hash | 4 ++++ package/python-sip/python-sip.mk | 45 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 package/python-sip/Config.in create mode 100644 package/python-sip/python-sip.hash create mode 100644 package/python-sip/python-sip.mk diff --git a/package/Config.in b/package/Config.in index 248e18b..546a9e5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -605,6 +605,7 @@ menu "external python modules" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" source "package/python-simplejson/Config.in" + source "package/python-sip/Config.in" source "package/python-six/Config.in" source "package/python-spidev/Config.in" source "package/python-thrift/Config.in" diff --git a/package/python-sip/Config.in b/package/python-sip/Config.in new file mode 100644 index 0000000..3ee6c2a --- /dev/null +++ b/package/python-sip/Config.in @@ -0,0 +1,12 @@ +comment "python-sip needs a toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPP + +config BR2_PACKAGE_PYTHON_SIP + bool "python-sip" + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_QT + help + SIP is a tool for C/C++ libraries binding. It was developed + to create PyQt + + http://www.riverbankcomputing.com/software/sip/intro diff --git a/package/python-sip/python-sip.hash b/package/python-sip/python-sip.hash new file mode 100644 index 0000000..aba5470 --- /dev/null +++ b/package/python-sip/python-sip.hash @@ -0,0 +1,4 @@ +# From http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.7/ +md5 32abc003980599d33ffd789734de4c36 sip-4.16.7.tar.gz +# Locally calculated: +sha256 4caa8d52e4403bae5c4c64f44de03a2cfd0bb10b6d96c5fb771133516df9abbd sip-4.16.7.tar.gz diff --git a/package/python-sip/python-sip.mk b/package/python-sip/python-sip.mk new file mode 100644 index 0000000..f91b426 --- /dev/null +++ b/package/python-sip/python-sip.mk @@ -0,0 +1,45 @@ +################################################################################ +# +# python-sip +# +################################################################################ + +PYTHON_SIP_VERSION = 4.16.7 +PYTHON_SIP_SOURCE = sip-$(PYTHON_SIP_VERSION).tar.gz +PYTHON_SIP_SITE = http://downloads.sourceforge.net/project/pyqt/sip/sip-$(PYTHON_SIP_VERSION) +PYTHON_SIP_LICENSE = Riverbank license for SIP and GPLv2 and GPLv3 +PYTHON_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3 + +PYTHON_SIP_DEPENDENCIES = python host-python-sip qt +HOST_PYTHON_SIP_DEPENDENCIES = host-python + +define HOST_PYTHON_SIP_CONFIGURE_CMDS + (cd $(@D); \ + $(HOST_CONFIGURE_OPTS) $(HOST_DIR)/usr/bin/python configure.py \ + ) +endef + +define PYTHON_SIP_CONFIGURE_CMDS + ( cd $(@D); \ + $(TARGET_CONFIGURE_OPTS) \ + $(HOST_DIR)/usr/bin/python configure.py \ + --bindir $(TARGET_DIR)/usr/bin \ + --destdir $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ + --incdir $(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) \ + --sipdir $(TARGET_DIR)/usr/share/sip \ + --sysroot $(STAGING_DIR)/usr \ + --use-qmake; \ + $(HOST_DIR)/usr/bin/qmake \ + ) +endef + +define PYTHON_SIP_INSTALL_TARGET_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) install -C $(@D) +endef + +define HOST_PYTHON_SIP_INSTALL_CMDS + $(HOST_CONFIGURE_OPTS) $(MAKE) install -C $(@D) +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package))