forked from Lainports/freebsd-ports
- 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 <marcus@corp.grupos.com.br> (maintainer)
This commit is contained in:
parent
2da7276ad9
commit
4f7a6ccc24
2 changed files with 18 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue