From patchwork Fri Oct 4 16:25:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 280665 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 64F142C00C1 for ; Sat, 5 Oct 2013 02:25:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5399D8D642; Fri, 4 Oct 2013 16:25:40 +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 52Vh7UvOxf5z; Fri, 4 Oct 2013 16:25:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5ADF68D48B; Fri, 4 Oct 2013 16:25:39 +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 BD8831C20BD for ; Fri, 4 Oct 2013 16:25:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BA13C8D48B for ; Fri, 4 Oct 2013 16:25:38 +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 YDQgzMdo0NjE for ; Fri, 4 Oct 2013 16:25:38 +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 DF5788D0E4 for ; Fri, 4 Oct 2013 16:25:37 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp01.rockwellcollins.com) ([131.198.63.132]) by mail-virt.rockwellcollins.com with ESMTP; 04 Oct 2013 11:25:36 -0500 Received: from ares ([131.198.63.11]) by collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013100411253607-5296627 ; Fri, 4 Oct 2013 11:25:36 -0500 From: Ryan Barnett To: buildroot@busybox.net Date: Fri, 4 Oct 2013 11:25:33 -0500 Message-Id: <1380903933-11960-1-git-send-email-rjbarnet@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 10/04/2013 11:25:36 AM, Serialize by Router on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 10/04/2013 11:25:36 AM, Serialize complete at 10/04/2013 11:25:36 AM X-TNEFEvaluated: 1 Subject: [Buildroot] [PATCH 1/1] python-tornado: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Ryan Barnett --- Note: This one is pretty straight forward since it is all python based scripts. --- package/Config.in | 1 + package/python-tornado/Config.in | 8 ++++++++ package/python-tornado/python-tornado.mk | 26 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 0 deletions(-) create mode 100644 package/python-tornado/Config.in create mode 100644 package/python-tornado/python-tornado.mk -- 1.7.1 diff --git a/package/Config.in b/package/Config.in index b7fdb89..3a4f60a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -403,6 +403,7 @@ source "package/python-pyzmq/Config.in" source "package/python-serial/Config.in" source "package/python-setuptools/Config.in" source "package/python-thrift/Config.in" +source "package/python-tornado/Config.in" endmenu endif source "package/python3/Config.in" diff --git a/package/python-tornado/Config.in b/package/python-tornado/Config.in new file mode 100644 index 0000000..c127d0e --- /dev/null +++ b/package/python-tornado/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_TORNADO + bool "python-tornado" + depends on BR2_PACKAGE_PYTHON + help + Tornado is a Python web framework and asynchronous networking + library, originally developed at FriendFeed. + + http://www.tornadoweb.org diff --git a/package/python-tornado/python-tornado.mk b/package/python-tornado/python-tornado.mk new file mode 100644 index 0000000..f228a7c --- /dev/null +++ b/package/python-tornado/python-tornado.mk @@ -0,0 +1,26 @@ +################################################################################ +# +# python-tornado +# +################################################################################ + +PYTHON_TORNADO_VERSION = 3.1.1 +PYTHON_TORNADO_SOURCE = tornado-$(PYTHON_TORNADO_VERSION).tar.gz +PYTHON_TORNADO_SITE = https://pypi.python.org/packages/source/t/tornado +PYTHON_TORNADO_LICENSE = Apache-v2 + +PYTHON_TORNADO_DEPENDENCIES = python + +define PYTHON_TORNADO_BUILD_CMDS + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build --executable=/usr/bin/python) +endef + +# PYTHONPATH definition is need for install since an error could +# be thrown about installing to location that isn't in PYTHONPATH +define PYTHON_TORNADO_INSTALL_TARGET_CMDS + (cd $(@D); \ + PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ + $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr) +endef + +$(eval $(generic-package))