From bc52fc5d5ace3786c60f6aff09dc4e661a887a75 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 31 May 2006 13:04:08 +0000 Subject: python-mysqldb: added 1.2.1_p2 --- packages/python/python-mysqldb/.mtn2git_empty | 0 packages/python/python-mysqldb/mysqlpath.patch | 19 +++++++++++++++++++ packages/python/python-mysqldb/site.patch | 13 +++++++++++++ packages/python/python-mysqldb_1.2.1.bb | 19 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 packages/python/python-mysqldb/.mtn2git_empty create mode 100644 packages/python/python-mysqldb/mysqlpath.patch create mode 100644 packages/python/python-mysqldb/site.patch create mode 100644 packages/python/python-mysqldb_1.2.1.bb diff --git a/packages/python/python-mysqldb/.mtn2git_empty b/packages/python/python-mysqldb/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/python/python-mysqldb/mysqlpath.patch b/packages/python/python-mysqldb/mysqlpath.patch new file mode 100644 index 0000000000..3f471a1703 --- /dev/null +++ b/packages/python/python-mysqldb/mysqlpath.patch @@ -0,0 +1,19 @@ +Index: MySQL-python-1.2.1_p2/_mysql.c +=================================================================== +--- MySQL-python-1.2.1_p2.orig/_mysql.c 2006-05-31 12:07:36.000000000 +0200 ++++ MySQL-python-1.2.1_p2/_mysql.c 2006-05-31 12:08:25.000000000 +0200 +@@ -36,10 +36,10 @@ + #endif + + #include "structmember.h" +-#include "mysql.h" +-#include "my_config.h" +-#include "mysqld_error.h" +-#include "errmsg.h" ++#include "mysql/mysql.h" ++#include "mysql/my_config.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/packages/python/python-mysqldb/site.patch b/packages/python/python-mysqldb/site.patch new file mode 100644 index 0000000000..c99ee3bc0d --- /dev/null +++ b/packages/python/python-mysqldb/site.patch @@ -0,0 +1,13 @@ +Index: MySQL-python-1.2.1_p2/site.cfg +=================================================================== +--- MySQL-python-1.2.1_p2.orig/site.cfg 2006-05-31 12:13:45.000000000 +0200 ++++ MySQL-python-1.2.1_p2/site.cfg 2006-05-31 12:13:55.000000000 +0200 +@@ -6,7 +6,7 @@ + + [options] + embedded = False +-threadsafe = True ++threadsafe = False + static = False + + # Use the compiler section to add additional options for the extension build. diff --git a/packages/python/python-mysqldb_1.2.1.bb b/packages/python/python-mysqldb_1.2.1.bb new file mode 100644 index 0000000000..0f305c93a6 --- /dev/null +++ b/packages/python/python-mysqldb_1.2.1.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "Python interface to MySQL" +SECTION = "devel/python" +PRIORITY = "optional" +LICENSE = "LGPL" +DEPENDS = "mysql" +SRCNAME = "MySQL-python" + +inherit distutils + +SRC_URI = "${SOURCEFORGE_MIRROR}/mysql-python/MySQL-python-${PV}_p2.tar.gz \ +file://mysqlpath.patch;patch=1 \ +file://site.patch;patch=1" + +S = "${WORKDIR}/${SRCNAME}-${PV}_p2" + +do_install_append() { + install -d ${D}${datadir}/doc/${PN}/ + install -m 0644 ${S}/doc/*.txt ${D}${datadir}/doc/${PN}/ +} -- cgit v1.2.3