[oe] [meta-oe] python-mysqldb: import from OE classic, update to 1.2.3

Peter A. Bigot bigotp at acm.org
Sat Dec 31 17:32:39 UTC 2011


From: "Peter A. Bigot" <bigotp at acm.org>

Changes from classic recipe:

* Corrected license description based on text in README.

* Switched to setuptools since distutils produced an egg that had x86
  encoded in it.

* Old site.patch no longer necessary; threadsafe is False in this version.
---
 .../python/python-mysqldb/mysqlpath.patch          |   18 +++++++++++++++
 .../python/python-mysqldb_1.2.3.bb                 |   24 ++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/python/python-mysqldb/mysqlpath.patch
 create mode 100644 meta-oe/recipes-devtools/python/python-mysqldb_1.2.3.bb

diff --git a/meta-oe/recipes-devtools/python/python-mysqldb/mysqlpath.patch b/meta-oe/recipes-devtools/python/python-mysqldb/mysqlpath.patch
new file mode 100644
index 0000000..a38da6f
--- /dev/null
+++ b/meta-oe/recipes-devtools/python/python-mysqldb/mysqlpath.patch
@@ -0,0 +1,18 @@
+--- MySQL-python-1.2.3/_mysql.c.orig	2010-06-17 02:21:56.000000000 -0500
++++ MySQL-python-1.2.3/_mysql.c	2011-12-31 09:50:07.888056331 -0600
+@@ -33,11 +33,11 @@
+ #include <windows.h>
+ #include <config-win.h>
+ #else
+-#include "my_config.h"
++#include "mysql/my_config.h"
+ #endif
+-#include "mysql.h"
+-#include "mysqld_error.h"
+-#include "errmsg.h"
++#include "mysql/mysql.h"
++#include "mysql/mysqld_error.h"
++#include "mysql/errmsg.h"
+ 
+ #if PY_VERSION_HEX < 0x02020000
+ # define MyTuple_Resize(t,n,d) _PyTuple_Resize(t, n, d)
diff --git a/meta-oe/recipes-devtools/python/python-mysqldb_1.2.3.bb b/meta-oe/recipes-devtools/python/python-mysqldb_1.2.3.bb
new file mode 100644
index 0000000..69eb47c
--- /dev/null
+++ b/meta-oe/recipes-devtools/python/python-mysqldb_1.2.3.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "Python interface to MySQL"
+HOMEPAGE = "http://sourceforge.net/projects/mysql-python/"
+SECTION = "devel/python"
+# "GPL or the original license based on Python 1.5.2's license"
+LICENSE = "GPL"
+LIC_FILES_CHKSUM = "file://README;md5=f92e5d60b213d35288bc14f18e1e31b4"
+DEPENDS = "mysql5"
+
+SRC_URI = "\
+  ${SOURCEFORGE_MIRROR}/mysql-python/MySQL-python-${PV}.tar.gz \
+  file://mysqlpath.patch \
+"
+SRC_URI[md5sum] = "215eddb6d853f6f4be5b4afc4154292f"
+SRC_URI[sha256sum] = "7de66fbbf923634e7c965aeaefa74642ba75ae20ee1cefcefc3009595b7a7e6e"
+
+SRCNAME = "MySQL-python"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+do_install_append() {
+    install -d ${D}${datadir}/doc/${PN}/
+    install -m 0644 ${S}/doc/*.txt ${D}${datadir}/doc/${PN}/
+}
-- 
1.7.6.4





More information about the Openembedded-devel mailing list