1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add databases/py-MySQLdb-devel 1.1.7, devel version of py-MySQLdb

PR:             ports/73562
Submitted by:   Marcus Grando <marcus@corp.grupos.com.br>
Repo-copied by: marcus
This commit is contained in:
Clement Laforet 2004-11-28 21:55:24 +00:00
parent e074ac5451
commit 0a3ac7f24d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122704
5 changed files with 35 additions and 29 deletions

View File

@ -268,6 +268,7 @@
SUBDIR += pxtools
SUBDIR += py-MySQL
SUBDIR += py-MySQLdb
SUBDIR += py-MySQLdb-devel
SUBDIR += py-PyGreSQL
SUBDIR += py-PySQLite
SUBDIR += py-SQLDict

View File

@ -6,19 +6,48 @@
#
PORTNAME= py-MySQLdb
PORTVERSION= 1.0.0
PORTVERSION= 1.1.7
PORTREVISION= 0
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python
DISTNAME= MySQL-python-${PORTVERSION}
MAINTAINER= clement@FreeBSD.org
MAINTAINER= marcus@corp.grupos.com.br
COMMENT= Access a MySQL database through Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_MYSQL= yes
CONFLICTS= py-MySQLdb-0.* py-MySQLdb-1.[0,2-9].*
OPTIONS= MYSQLCLIENT_R "Use mysqlclient_r lib" off \
MYSQLSSL "Use SSL support" off \
MYSQLCRYPTO "Use CRYPTO support" off
.include <bsd.port.pre.mk>
.if defined(WITH_MYSQLCLIENT_R)
MAKE_ENV+= mysqlclient="mysqlclient_r"
.else
MAKE_ENV+= mysqlclient="mysqlclient"
.endif
.if defined(WITH_MYSQLSSL)
.if defined(WITH_MYSQLCRYPTO)
MAKE_ENV+= mysqloptlibs="ssl crypto"
.else
MAKE_ENV+= mysqloptlibs="ssl"
.endif
.else
.if defined(WITH_MYSQLCRYPTO)
MAKE_ENV+= mysqloptlibs="crypto"
.else
MAKE_ENV+= mysqloptlibs=""
.endif
.endif
PORTDOCS= MANIFEST README
.if !defined(NOPORTDOCS)
@ -29,4 +58,4 @@ post-install:
.endfor
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (MySQL-python-1.0.0.tar.gz) = 0f9527a3aa4111802f376cc6816cc7cf
SIZE (MySQL-python-1.0.0.tar.gz) = 53708
MD5 (MySQL-python-1.1.7.tar.gz) = 765bdeaeae06567da8713bb49f3c2a40
SIZE (MySQL-python-1.1.7.tar.gz) = 77941

View File

@ -1,21 +0,0 @@
Index: MySQLdb/_mysql.c
===================================================================
RCS file: /cvsroot/mysql-python/MySQLdb/_mysql.c,v
retrieving revision 1.49
diff -u -r1.49 _mysql.c
--- _mysql.c 7 Jun 2004 03:44:38 -0000 1.49
+++ _mysql.c 26 Jul 2004 16:58:29 -0000
@@ -1542,7 +1542,13 @@
if (!PyArg_ParseTuple(args, "")) return NULL;
check_connection(self);
Py_BEGIN_ALLOW_THREADS
+
+#if MYSQL_VERSION_ID >= 40103
+ r = mysql_shutdown(&(self->connection),
+ SHUTDOWN_DEFAULT);
+#else
r = mysql_shutdown(&(self->connection));
+#endif
Py_END_ALLOW_THREADS
if (r) return _mysql_Exception(self);
Py_INCREF(Py_None);

View File

@ -1,6 +1,3 @@
lib/%%PYTHON_VERSION%%/site-packages/CompatMysqldb.py
lib/%%PYTHON_VERSION%%/site-packages/CompatMysqldb.pyc
lib/%%PYTHON_VERSION%%/site-packages/CompatMysqldb.pyo
lib/%%PYTHON_VERSION%%/site-packages/MySQLdb/__init__.py
lib/%%PYTHON_VERSION%%/site-packages/MySQLdb/__init__.pyc
lib/%%PYTHON_VERSION%%/site-packages/MySQLdb/__init__.pyo