summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/py-MySQLdb/Makefile2
-rw-r--r--databases/py-MySQLdb/files/patch-_mysql.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile
index 53bcb97b18c5..348c5099d31b 100644
--- a/databases/py-MySQLdb/Makefile
+++ b/databases/py-MySQLdb/Makefile
@@ -3,7 +3,7 @@
PORTNAME= MySQLdb
DISTVERSION= 1.2.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= databases python
MASTER_SITES= SF/mysql-python/mysql-python/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/databases/py-MySQLdb/files/patch-_mysql.c b/databases/py-MySQLdb/files/patch-_mysql.c
new file mode 100644
index 000000000000..2f28da8facf4
--- /dev/null
+++ b/databases/py-MySQLdb/files/patch-_mysql.c
@@ -0,0 +1,13 @@
+--- _mysql.c.orig 2014-03-18 19:07:07.000000000 +0400
++++ _mysql.c 2014-03-18 19:07:40.000000000 +0400
+@@ -102,6 +102,10 @@ static int _mysql_server_init_done = 0;
+ #define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1
+ #endif
+
++#if MYSQL_VERSION_ID >= 50500
++#define HAVE_OPENSSL 1
++#endif
++
+ PyObject *
+ _mysql_Exception(_mysql_ConnectionObject *c)
+ {