From patchwork Fri Jan 9 15:11:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 427112 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 93ABC140192 for ; Sat, 10 Jan 2015 02:12:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A692E8D3D7; Fri, 9 Jan 2015 15:12:37 +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 w-kyExE9pOBw; Fri, 9 Jan 2015 15:12:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 393A08D591; Fri, 9 Jan 2015 15:11:49 +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 71ED81C201D for ; Fri, 9 Jan 2015 15:11:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6CF778D412 for ; Fri, 9 Jan 2015 15:11:37 +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 KKHwZUd-upgw for ; Fri, 9 Jan 2015 15:11:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com [205.175.225.240]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3A6088D36B for ; Fri, 9 Jan 2015 15:11:33 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO crulimr01.rockwellcollins.com) ([131.198.26.129]) by secvs01.rockwellcollins.com with ESMTP; 09 Jan 2015 09:11:32 -0600 X-Received: from smtplb.rockwellcollins.com (smtplb.rockwellcollins.com [131.198.63.134]) by crulimr01.rockwellcollins.com (Postfix) with ESMTP id B081860830; Fri, 9 Jan 2015 09:11:31 -0600 (CST) X-Received: from largo.rockwellcollins.com (unknown [192.168.140.76]) by smtplb.rockwellcollins.com (Postfix) with ESMTP id A1E7A801F4; Fri, 9 Jan 2015 09:11:31 -0600 (CST) From: Matt Weber To: buildroot@busybox.net Date: Fri, 9 Jan 2015 09:11:08 -0600 Message-Id: <1420816288-8750-8-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420816288-8750-1-git-send-email-matthew.weber@rockwellcollins.com> References: <1420816288-8750-1-git-send-email-matthew.weber@rockwellcollins.com> Cc: Clayton Shotwell Subject: [Buildroot] [PATCH v4 07/27] python-pyxml: 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: Clayton Shotwell Signed-off-by: Clayton Shotwell Signed-off-by: Matthew Weber --- [Matt W: - Updated to use python package type - Added hash file package/Config.in | 1 + package/python-pyxml/Config.in | 11 +++++++++++ package/python-pyxml/python-xml.hash | 2 ++ package/python-pyxml/python-xml.mk | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 package/python-pyxml/Config.in create mode 100644 package/python-pyxml/python-xml.hash create mode 100644 package/python-pyxml/python-xml.mk diff --git a/package/Config.in b/package/Config.in index 9d64ad9..4772cf8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -538,6 +538,7 @@ menu "external python modules" source "package/python-pysnmp-apps/Config.in" source "package/python-pysnmp-mibs/Config.in" source "package/python-pyusb/Config.in" + source "package/python-pyxml/Config.in" source "package/python-pyzmq/Config.in" source "package/python-requests/Config.in" source "package/python-rtslib-fb/Config.in" diff --git a/package/python-pyxml/Config.in b/package/python-pyxml/Config.in new file mode 100644 index 0000000..420f3ad --- /dev/null +++ b/package/python-pyxml/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_PYXML + bool "python-pyxml" + depends on BR2_PACKAGE_PYTHON + help + This is the Python XML package. The distribution contains a + validating XML parser, an implementation of the SAX and DOM + programming interfaces, an interface to the Expat parser (and the + Expat parser itself), and a C helper module that can speed up + xmllib.py by a factor of 5. There's even documentation! + + http://pyxml.sourceforge.net/topics/index.html diff --git a/package/python-pyxml/python-xml.hash b/package/python-pyxml/python-xml.hash new file mode 100644 index 0000000..47fa4c1 --- /dev/null +++ b/package/python-pyxml/python-xml.hash @@ -0,0 +1,2 @@ +#Locally computed +sha256 9fab66f9584fb8e67aebd8745a5c97bf1c5a2e2e461adf68862bcec64e448c13 PyXML-0.8.4.tar.gz diff --git a/package/python-pyxml/python-xml.mk b/package/python-pyxml/python-xml.mk new file mode 100644 index 0000000..59bdc06 --- /dev/null +++ b/package/python-pyxml/python-xml.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# python-pyxml +# +################################################################################ + +PYTHON_PYXML_VERSION = 0.8.4 +PYTHON_PYXML_SOURCE = PyXML-$(PYTHON_PYXML_VERSION).tar.gz +PYTHON_PYXML_SITE = http://downloads.sourceforge.net/project/pyxml/pyxml/0.8.4/ +PYTHON_PYXML_LICENSE = BSD-3c +PYTHON_PYXML_LICENSE_FILES = LICENSE +PYTHON_PYXML_SETUP_TYPE = distutils +PYTHON_PYXML_DEPENDENCIES = host-python python expat + +PYTHON_PYXML_INSTALL_STAGING = NO + +define PYTHON_PYXML_CONFIGURE_CMDS + (cd $(@D); \ + $(HOST_DIR)/usr/bin/python setup.py \ + config --with-libexpat=$(STAGING_DIR)/usr) +endef + +HOST_PYTHON_PYXML_DEPENDENCIES = host-python host-expat + +define HOST_PYTHON_PYXML_CONFIGURE_CMDS + (cd $(@D); \ + $(HOST_DIR)/usr/bin/python setup.py \ + config --with-libexpat=$(HOST_DIR)/usr) +endef + +$(eval $(python-package)) +$(eval $(host-python-package))