From 4f7a6ccc241e5b67574bba0bd1ffc45980168280 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 9 Feb 2005 18:55:48 +0000 Subject: - Change default mysql lib to libmysqlclient_r. WITHOUT_MYSQLCLIENT_R=yes use libmysqlclient. - Update very old pkg-descr PR: ports/77284 Submitted by: Marcus Grando (maintainer) --- databases/py-MySQLdb/Makefile | 11 ++++++----- databases/py-MySQLdb/pkg-descr | 22 ++++++++++++---------- 2 files changed, 18 insertions(+), 15 deletions(-) (limited to 'databases/py-MySQLdb') diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile index 0016689b0bb1..fd1430fff038 100644 --- a/databases/py-MySQLdb/Makefile +++ b/databases/py-MySQLdb/Makefile @@ -7,7 +7,7 @@ PORTNAME= MySQLdb PORTVERSION= 1.2.0 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= mysql-python @@ -27,12 +27,13 @@ pre-fetch: @${ECHO} "" @${ECHO} "You may use the following build options:" @${ECHO} "" - @${ECHO} " WITH_MYSQLCLIENT_R=yes Use mysqlclient_r lib" + @${ECHO} " WITHOUT_MYSQLCLIENT_R=yes Don't use mysqlclient_r lib" + @${ECHO} " but is not guarantee thread-safe." + @${ECHO} "" + @${ECHO} " Default use mysqlclient_r" @${ECHO} "" -.if defined(WITH_MYSQLCLIENT_R) -MAKE_ENV+= mysqlclient="mysqlclient_r" -.else +.if defined(WITHOUT_MYSQLCLIENT_R) MAKE_ENV+= mysqlclient="mysqlclient" .endif diff --git a/databases/py-MySQLdb/pkg-descr b/databases/py-MySQLdb/pkg-descr index b2847a0dfe15..425e14ac002b 100644 --- a/databases/py-MySQLdb/pkg-descr +++ b/databases/py-MySQLdb/pkg-descr @@ -1,15 +1,17 @@ -You can easily access a MySQL database through the Python MySQL module. +Python interface to MySQL -This module should be mostly compatible with an older interface written by -Joe Skinner and others. However, the older version is +MySQLdb is an interface to the popular MySQL database server for Python. +The design goals are: - a) not thread-friendly (database operations could cause all other threads to - block), - b) written for MySQL 3.21 (does not compile against newer versions without - patches), - c) apparently not actively maintained. +- 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 -MySQLdb is a completely new module, distributed free of charge under a license -derived from the Python license. +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: http://sourceforge.net/projects/mysql-python/ -- cgit v1.2.3