diff options
Diffstat (limited to 'databases/py-MySQLdb')
-rw-r--r-- | databases/py-MySQLdb/Makefile | 47 | ||||
-rw-r--r-- | databases/py-MySQLdb/distinfo | 2 | ||||
-rw-r--r-- | databases/py-MySQLdb/files/patch-_mysql.c | 24 | ||||
-rw-r--r-- | databases/py-MySQLdb/pkg-descr | 17 |
4 files changed, 0 insertions, 90 deletions
diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile deleted file mode 100644 index 9f66b0d29324..000000000000 --- a/databases/py-MySQLdb/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# Created by: Maxim Sobolev <sobomax@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= MySQLdb -PORTVERSION= 1.2.5 -PORTREVISION= 2 -DISTVERSIONPREFIX= ${PORTNAME}- -CATEGORIES= databases python -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} - -MAINTAINER= python@FreeBSD.org -COMMENT= Access a MySQL database through Python - -LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/GPL-2.0 - -DEPRECATED= Uses deprecated version of python -EXPIRATION_DATE= 2020-12-29 - -USES= compiler:c11 mysql python:2.7 -USE_PYTHON= autoplist distutils -USE_GITHUB= yes -GH_ACCOUNT= farcepest -GH_PROJECT= ${PORTNAME}1 - -CONFLICTS= ${PYTHON_PKGNAMEPREFIX}-MySQLdb5[0-9]-[0-9]* \ - ${PYTHON_PKGNAMEPREFIX}-mysqlclient-[0-9]* - -PORTDOCS= * -DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} - -OPTIONS_DEFINE= DOCS MYSQLCLIENT_R -OPTIONS_DEFAULT= MYSQLCLIENT_R -MYSQLCLIENT_R_DESC= Use libmysqlclient_r (thread safe) - -pre-configure-MYSQLCLIENT_R-on: - ${REINPLACE_CMD} -e '/threadsafe = / s|True|False|' ${WRKSRC}/site.cfg - -post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_mysql.so - -post-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} - -.include <bsd.port.mk> diff --git a/databases/py-MySQLdb/distinfo b/databases/py-MySQLdb/distinfo deleted file mode 100644 index 5724868a0a37..000000000000 --- a/databases/py-MySQLdb/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (farcepest-MySQLdb1-MySQLdb-1.2.5_GH0.tar.gz) = 905dd8be887ff596641ace5411fed17cfd08dd33699ea627d3fb44f8a922c2f0 -SIZE (farcepest-MySQLdb1-MySQLdb-1.2.5_GH0.tar.gz) = 81209 diff --git a/databases/py-MySQLdb/files/patch-_mysql.c b/databases/py-MySQLdb/files/patch-_mysql.c deleted file mode 100644 index 4eedeb36ded8..000000000000 --- a/databases/py-MySQLdb/files/patch-_mysql.c +++ /dev/null @@ -1,24 +0,0 @@ ---- _mysql.c.orig 2014-01-02 19:15:03 UTC -+++ _mysql.c -@@ -124,6 +124,10 @@ static int _mysql_server_init_done = 0; - #define HAVE_MYSQL_OPT_TIMEOUTS 1 - #endif - -+#if MYSQL_VERSION_ID >= 50500 -+#define HAVE_OPENSSL 1 -+#endif -+ - PyObject * - _mysql_Exception(_mysql_ConnectionObject *c) - { -@@ -2002,7 +2006,9 @@ _mysql_ConnectionObject_ping( - int r, reconnect = -1; - if (!PyArg_ParseTuple(args, "|I", &reconnect)) return NULL; - check_connection(self); -- if ( reconnect != -1 ) self->connection.reconnect = reconnect; -+ if (reconnect != -1) { -+ mysql_options(&self->connection, MYSQL_OPT_RECONNECT, &reconnect); -+ } - Py_BEGIN_ALLOW_THREADS - r = mysql_ping(&(self->connection)); - Py_END_ALLOW_THREADS diff --git a/databases/py-MySQLdb/pkg-descr b/databases/py-MySQLdb/pkg-descr deleted file mode 100644 index 7c92b44814a0..000000000000 --- a/databases/py-MySQLdb/pkg-descr +++ /dev/null @@ -1,17 +0,0 @@ -Python interface to MySQL - -MySQLdb is an interface to the popular MySQL database server for Python. -The design goals are: - -- Compliance with Python database API version 2.0 -- Thread-safety -- Thread-friendliness (threads will not block each other) -- Compatibility with MySQL-3.22 and later - -This module should be mostly compatible with an older interface -written by Joe Skinner and others. However, the older version is -a) not thread-friendly, b) written for MySQL 3.21, c) apparently -not actively maintained. No code from that version is used in -MySQLdb. MySQLdb is free software. - -WWW: https://github.com/farcepest/MySQLdb1 |