From patchwork Fri Jan 23 23:24:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 432333 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 4CE061402A0 for ; Sat, 24 Jan 2015 10:25:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3307C8BFD1; Fri, 23 Jan 2015 23:25:00 +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 YyrESpNISiZa; Fri, 23 Jan 2015 23:25:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 26BB88C00B; Fri, 23 Jan 2015 23:24:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9773A1C295C for ; Fri, 23 Jan 2015 23:24:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 90FFB930B9 for ; Fri, 23 Jan 2015 23:24:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12nYzpPFAUax for ; Fri, 23 Jan 2015 23:24:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2F06F930B5 for ; Fri, 23 Jan 2015 23:24:50 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id x12so181803wgg.7 for ; Fri, 23 Jan 2015 15:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=6X323mJ1r4LsMGvy5pUBkiaR7LSLZJVo+SUZYCRZ520=; b=J9bkwmmPjMzPp3f55j3k1VCyJFah+uc/vMFSLT4ERFG0xjb4wn/Mpv2segQVTUk4Ng n5LG9l4XqVBVWl3aB3YfOd13mmsxPxgkKz9xW8DDgxvK++6fWY74Z+v9TW50te5a2x5j FUnjMZw1ybIsHvGgqNE7pnYTWs7fUXxfL7lFyT3uVlkqUWcTzIYhXFQtKoAzy5VVnZrb kzkMc0sFEASdDFppyFwsxsDs7GHJbBKn9s1NUULwwGvLir0Dqz0WTN076Nc1e18IdQqW TV8379D5LlubMZ0mQ1BQG9FIVElYw/9rngRTdpJ7jZbKB4NxUWdqXiPZvF1Kb1ayeo4l 9NcQ== X-Received: by 10.194.237.41 with SMTP id uz9mr19489766wjc.80.1422055488857; Fri, 23 Jan 2015 15:24:48 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id j1sm4024698wjw.25.2015.01.23.15.24.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jan 2015 15:24:48 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 24 Jan 2015 00:24:31 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 02/14 v6] package/python-lxml: add target variant 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: Yegor Yefremov Signed-off-by: Yegor Yefremov [yann.morin.1998@free.fr: fix staging path; trim dependencies of the host variant] Signed-off-by: Yann E. MORIN --- package/Config.in | 1 + package/python-lxml/Config.in | 10 ++++++++++ package/python-lxml/python-lxml.mk | 10 +++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 package/python-lxml/Config.in diff --git a/package/Config.in b/package/Config.in index 5f6ebc2..6b2b2a3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -519,6 +519,7 @@ menu "external python modules" source "package/python-json-schema-validator/Config.in" source "package/python-keyring/Config.in" source "package/python-libconfig/Config.in" + source "package/python-lxml/Config.in" source "package/python-mad/Config.in" source "package/python-markdown/Config.in" source "package/python-markupsafe/Config.in" diff --git a/package/python-lxml/Config.in b/package/python-lxml/Config.in new file mode 100644 index 0000000..1ccaa5e --- /dev/null +++ b/package/python-lxml/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_LXML + bool "python-lxml" + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LIBXSLT + select BR2_PACKAGE_ZLIB + help + The lxml XML toolkit is a Pythonic binding for the C libraries + libxml2 and libxslt. + + http://lxml.de/ diff --git a/package/python-lxml/python-lxml.mk b/package/python-lxml/python-lxml.mk index 758ce87..7a94b09 100644 --- a/package/python-lxml/python-lxml.mk +++ b/package/python-lxml/python-lxml.mk @@ -20,6 +20,14 @@ PYTHON_LXML_LICENSE_FILES = \ # So, we use setuptools. PYTHON_LXML_SETUP_TYPE = setuptools -PYTHON_LXML_DEPENDENCIES = libxml2 libxslt +PYTHON_LXML_DEPENDENCIES = libxml2 libxslt zlib +HOST_PYTHON_LXML_DEPENDENCIES = host-libxml2 host-libxslt +# python-lxml needs these scripts in order to properly detect libxml2 and +# libxslt compiler and linker flags +PYTHON_LXML_BUILD_OPTS = \ + --with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config \ + --with-xml2-config=$(STAGING_DIR)/usr/bin/xml2-config + +$(eval $(python-package)) $(eval $(host-python-package))