From 0dc18c5339db880b656df68e5de1fb54dbf55405 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 19 Aug 2009 18:03:38 +0100 Subject: Add python-dbus, python-pyrex from OE.dev Signed-off-by: Richard Purdie --- .../python/files/pyrex-fix-optimized-mode.patch | 13 +++++++++++ meta/packages/python/python-dbus_0.83.0.bb | 25 ++++++++++++++++++++++ .../packages/python/python-pyrex-native_0.9.8.5.bb | 10 +++++++++ meta/packages/python/python-pyrex_0.9.8.5.bb | 16 ++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 meta/packages/python/files/pyrex-fix-optimized-mode.patch create mode 100644 meta/packages/python/python-dbus_0.83.0.bb create mode 100644 meta/packages/python/python-pyrex-native_0.9.8.5.bb create mode 100644 meta/packages/python/python-pyrex_0.9.8.5.bb (limited to 'meta/packages/python') diff --git a/meta/packages/python/files/pyrex-fix-optimized-mode.patch b/meta/packages/python/files/pyrex-fix-optimized-mode.patch new file mode 100644 index 000000000..a1f5bb29b --- /dev/null +++ b/meta/packages/python/files/pyrex-fix-optimized-mode.patch @@ -0,0 +1,13 @@ +Index: Pyrex-0.9.8.4/Pyrex/Distutils/extension.py +=================================================================== +--- Pyrex-0.9.8.4.orig/Pyrex/Distutils/extension.py ++++ Pyrex-0.9.8.4/Pyrex/Distutils/extension.py +@@ -15,7 +15,7 @@ except ImportError: + warnings = None + + class Extension(_Extension.Extension): +- _Extension.Extension.__doc__ + \ ++ _Extension.Extension.__doc__ or "" + \ + """pyrex_include_dirs : [string] + list of directories to search for Pyrex header files (.pxd) (in + Unix form for portability) diff --git a/meta/packages/python/python-dbus_0.83.0.bb b/meta/packages/python/python-dbus_0.83.0.bb new file mode 100644 index 000000000..275e60e32 --- /dev/null +++ b/meta/packages/python/python-dbus_0.83.0.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Python bindings for DBus, a socket-based message bus system for interprocess communication" +SECTION = "devel/python" +HOMEPAGE = "http://www.freedesktop.org/Software/dbus" +LICENSE = "MIT" +DEPENDS = "expat dbus dbus-glib virtual/libintl python-pyrex-native" +PR = "ml1" + +SRC_URI = "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-${PV}.tar.gz" +S = "${WORKDIR}/dbus-python-${PV}" + +inherit distutils-base autotools pkgconfig + +export BUILD_SYS +export HOST_SYS + +export STAGING_LIBDIR +export STAGING_INCDIR + +do_stage() { + autotools_stage_all +} + +RDEPENDS = "python-io python-logging python-stringold python-threading python-xml" + +FILES_${PN}-dev += "${libdir}/pkgconfig diff --git a/meta/packages/python/python-pyrex-native_0.9.8.5.bb b/meta/packages/python/python-pyrex-native_0.9.8.5.bb new file mode 100644 index 000000000..440521204 --- /dev/null +++ b/meta/packages/python/python-pyrex-native_0.9.8.5.bb @@ -0,0 +1,10 @@ +require python-pyrex_${PV}.bb +inherit native +DEPENDS = "python-native" +RDEPENDS = "" + +do_stage() { + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ + ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} +} diff --git a/meta/packages/python/python-pyrex_0.9.8.5.bb b/meta/packages/python/python-pyrex_0.9.8.5.bb new file mode 100644 index 000000000..03468a052 --- /dev/null +++ b/meta/packages/python/python-pyrex_0.9.8.5.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Pyrex is a language specially designed for writing Python extension modules. \ +It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ +and the messy, low-level world of C." +SECTION = "devel/python" +PRIORITY = "optional" +LICENSE = "GPL" +SRCNAME = "Pyrex" +PR = "ml1" + +SRC_URI = "\ + http://www.cosc.canterbury.ac.nz/greg.ewing/python/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ + file://pyrex-fix-optimized-mode.patch;patch=1 \ +" +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit distutils -- cgit v1.2.3