[oe] [PATCH] New recipe: Python bindings for libconfig.

Tasslehoff Kjappfot tasskjapp at gmail.com
Wed Oct 27 12:22:59 UTC 2010


Signed-off-by: Tasslehoff Kjappfot <tasskjapp at gmail.com>
---
 .../files/0001-rename-boost-python-library.patch   |   25 ++++++++++++++++++++
 recipes/python/python-libconfig_git.bb             |   18 ++++++++++++++
 2 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 recipes/python/files/0001-rename-boost-python-library.patch
 create mode 100644 recipes/python/python-libconfig_git.bb

diff --git a/recipes/python/files/0001-rename-boost-python-library.patch b/recipes/python/files/0001-rename-boost-python-library.patch
new file mode 100644
index 0000000..2817370
--- /dev/null
+++ b/recipes/python/files/0001-rename-boost-python-library.patch
@@ -0,0 +1,25 @@
+From 263ea3af06761d00acfeec52cb582a0b0381d361 Mon Sep 17 00:00:00 2001
+From: Tasslehoff Kjappfot <tasskjapp at gmail.com>
+Date: Wed, 27 Oct 2010 11:05:18 +0200
+Subject: [PATCH] use boost_python_mt instead of boost_python
+
+---
+ setup.py |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 5066fc2..ec8c1b7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -19,7 +19,7 @@ setup(
+         Extension(
+             "pylibconfig",
+             ["src/pylibconfig.cc"],
+-            libraries=["boost_python", "config++"]
++            libraries=["boost_python-mt", "config++"]
+             #include_dirs=includes,
+             #extra_link_args=lflags
+                  )
+-- 
+1.7.1
+
diff --git a/recipes/python/python-libconfig_git.bb b/recipes/python/python-libconfig_git.bb
new file mode 100644
index 0000000..b2a2a0e
--- /dev/null
+++ b/recipes/python/python-libconfig_git.bb
@@ -0,0 +1,18 @@
+DESCRIPTION = "Python bindings for libconfig"
+SECTION = "devel/python"
+LICENSE = "BSD"
+DEPENDS = "boost libconfig"
+SRCNAME = "pylibconfig"
+
+SRC_URI = "git://github.com/cnangel/python-libconfig.git;protocol=git \
+           file://0001-rename-boost-python-library.patch "
+
+inherit setuptools
+
+S = "${WORKDIR}/git"
+
+SRCREV = "b29f9e99e163a1a9adce"
+PR ="r01"
+PV = "${PR}+gitr${SRCREV}"
+
+
-- 
1.7.1





More information about the Openembedded-devel mailing list