From patchwork Wed Jan 16 12:12:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 212498 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 270082C0093 for ; Wed, 16 Jan 2013 23:12:55 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 89E08101BD5; Wed, 16 Jan 2013 12:12:42 +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 bYKOlQQEDHIi; Wed, 16 Jan 2013 12:12:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9B51A101D18; Wed, 16 Jan 2013 12:12:38 +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 998868F74B for ; Wed, 16 Jan 2013 12:12:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F348B8C361 for ; Wed, 16 Jan 2013 12:12:47 +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 0YxqY686zTa1 for ; Wed, 16 Jan 2013 12:12:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id EB4778C32B for ; Wed, 16 Jan 2013 12:12:46 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id k13so2210040iea.8 for ; Wed, 16 Jan 2013 04:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=7Fu2ZO5qXzxYrxWMm5wzlP6ikJtxFtCYNJ/2TtfyOP8=; b=BR0ombdYU6kairmF/DQjFtsyPGJYJl+nPLCNEzVeyjK6vRoU8Olyp1wrH3hLvTP8Vk DhvPSKGqCdC710ECT5dd69HecfscwrDbICxXrSA5EHKtR17ER/3lkla5gY/IpoFQBk+S p2MhwOFN2eJNY/xF4cVbnRuV8coNHow2jPgW53CY2Ulo/1QnA59aUjD3PbERERBo/k9p xu330k/vIY822s2PcxWH5f52TenTs0gUa1GMvgusoOd5+ypYJvM1zdu2sJjquq2m5Yvf M7LEuIjKV3/B4zcaHzbhU3sLoFHKOIUDF8iYVRY5l/Z5A2Rn/WV3mln2K6w8HrZ6o+SO uerA== X-Received: by 10.50.85.201 with SMTP id j9mr239380igz.77.1358338366352; Wed, 16 Jan 2013 04:12:46 -0800 (PST) Received: from localhost.localdomain (173-26-135-185.client.mchsi.com. [173.26.135.185]) by mx.google.com with ESMTPS id l8sm4604053igo.13.2013.01.16.04.12.45 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jan 2013 04:12:45 -0800 (PST) From: Matt Weber To: buildroot@busybox.net Date: Wed, 16 Jan 2013 06:12:52 -0600 Message-Id: <1358338373-8288-1-git-send-email-rc.lsw.collaborate@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: Matthew Weber Subject: [Buildroot] [PATCH 1/2] new package: python-posix_ipc. 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 From: Matthew Weber Signed-off-by: Matt Weber --- package/python-posix_ipc/Config.in | 10 +++++++++ package/python-posix_ipc/python-posix_ipc.mk | 29 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 package/python-posix_ipc/Config.in create mode 100644 package/python-posix_ipc/python-posix_ipc.mk diff --git a/package/python-posix_ipc/Config.in b/package/python-posix_ipc/Config.in new file mode 100644 index 0000000..276fe29 --- /dev/null +++ b/package/python-posix_ipc/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_PYTHON_POSIX_IPC + bool "python-posix_ipc" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_PYTHON_SETUPTOOLS + help + The Python extension module posix_ipc gives access to POSIX + inter-process semaphores, shared memory and message queues + on systems that support the POSIX Realtime Extensions a.k.a. POSIX 1003.1b-1993. + + http://semanchuk.com/philip/posix_ipc/ diff --git a/package/python-posix_ipc/python-posix_ipc.mk b/package/python-posix_ipc/python-posix_ipc.mk new file mode 100644 index 0000000..19fc0bf --- /dev/null +++ b/package/python-posix_ipc/python-posix_ipc.mk @@ -0,0 +1,29 @@ +############################################################# +# +# python-posix_ipc +# +############################################################# + +PYTHON_POSIX_IPC_VERSION = 0.9.3 +PYTHON_POSIX_IPC_SOURCE = posix_ipc-$(PYTHON_POSIX_IPC_VERSION).tar.gz +PYTHON_POSIX_IPC_SITE = http://semanchuk.com/philip/posix_ipc/ + +PYTHON_POSIX_IPC_DEPENDENCIES = python host-python-setuptools host-python-distutilscross + +define PYTHON_POSIX_IPC_BUILD_CMDS + (cd $(@D); \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDSHARED="$(TARGET_CC) -shared" \ + LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ + $(HOST_DIR)/usr/bin/python setup.py build_ext \ + --include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)) + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build) +endef + +define PYTHON_POSIX_IPC_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))