1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

INTAINER] Update port: databases/py-MySQLdb to 1.0.1

Update port: databases/py-MySQLdb to 1.0.1

	- Change to 1.0.1
	- Rediff patch-_mysql.c
	- Install more docs

PR:		ports/75866
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br>
This commit is contained in:
Edwin Groothuis 2005-01-12 22:13:43 +00:00
parent c20b538b7d
commit 882df49ad9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126267
3 changed files with 16 additions and 19 deletions

View File

@ -6,8 +6,8 @@
# #
PORTNAME= MySQLdb PORTNAME= MySQLdb
PORTVERSION= 1.0.0 PORTVERSION= 1.0.1
PORTREVISION= 1 PORTREVISION= 0
CATEGORIES= databases python CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python MASTER_SITE_SUBDIR= mysql-python
@ -21,7 +21,7 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes USE_PYDISTUTILS= yes
USE_MYSQL= yes USE_MYSQL= yes
CONFLICTS= py*-MySQLdb-devel-* CONFLICTS= py*-MySQLdb-devel-[0-9]*
pre-fetch: pre-fetch:
@${ECHO} "" @${ECHO} ""
@ -52,12 +52,16 @@ MAKE_ENV+= mysqloptlibs=""
.endif .endif
.endif .endif
PORTDOCS= MANIFEST README .if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
post-install: post-install:
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS} @${INSTALL_DATA} ${WRKSRC}/MANIFEST ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.for FILE in ${WRKSRC}/doc/*
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor .endfor
.endif .endif

View File

@ -1,2 +1,2 @@
MD5 (MySQL-python-1.0.0.tar.gz) = 0f9527a3aa4111802f376cc6816cc7cf MD5 (MySQL-python-1.0.1.tar.gz) = dbdc534cbf95b788d201857d8a3082c8
SIZE (MySQL-python-1.0.0.tar.gz) = 53708 SIZE (MySQL-python-1.0.1.tar.gz) = 68580

View File

@ -1,18 +1,11 @@
Index: MySQLdb/_mysql.c --- _mysql.c.orig Sat Jan 1 15:40:13 2005
=================================================================== +++ _mysql.c Wed Jan 5 18:35:18 2005
RCS file: /cvsroot/mysql-python/MySQLdb/_mysql.c,v @@ -1542,7 +1542,11 @@
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; if (!PyArg_ParseTuple(args, "")) return NULL;
check_connection(self); check_connection(self);
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
+ +#if MYSQL_VERSION_ID >= 40103
+#if MYSQL_VERSION_ID >= 40103 && MYSQL_VERSION_ID < 50000 + r = mysql_shutdown(&(self->connection), SHUTDOWN_DEFAULT);
+ r = mysql_shutdown(&(self->connection),
+ SHUTDOWN_DEFAULT);
+#else +#else
r = mysql_shutdown(&(self->connection)); r = mysql_shutdown(&(self->connection));
+#endif +#endif