pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-mysqldb Update py-mysqldb to 1.2.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c19c13ddceb9
branches:  trunk
changeset: 545515:c19c13ddceb9
user:      mjl <mjl%pkgsrc.org@localhost>
date:      Wed Aug 06 17:16:49 2008 +0000

description:
Update py-mysqldb to 1.2.2.

Changes are too many to list since the previous version was from 2002.

diffstat:

 databases/py-mysqldb/Makefile         |  27 ++++-------
 databases/py-mysqldb/PLIST            |  18 +++---
 databases/py-mysqldb/distinfo         |  10 +--
 databases/py-mysqldb/patches/patch-aa |  79 -----------------------------------
 databases/py-mysqldb/patches/patch-ab |  24 ----------
 5 files changed, 23 insertions(+), 135 deletions(-)

diffs (207 lines):

diff -r 96e8ea518dd3 -r c19c13ddceb9 databases/py-mysqldb/Makefile
--- a/databases/py-mysqldb/Makefile     Wed Aug 06 15:55:24 2008 +0000
+++ b/databases/py-mysqldb/Makefile     Wed Aug 06 17:16:49 2008 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.24 2008/06/12 02:14:20 joerg Exp $
+# $NetBSD: Makefile,v 1.25 2008/08/06 17:16:49 mjl Exp $
 
-DISTNAME=      MySQL-python-0.9.2
-PKGNAME=       ${PYPKGPREFIX}-mysqldb-0.9.2
-PKGREVISION=   3
+DISTNAME=      MySQL-python-${PKGVER}
+PKGNAME=       ${PYPKGPREFIX}-mysqldb-${PKGVER}
+PKGVER=        1.2.2
+# PKGREVISION= 3
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=mysql-python/}
 
@@ -13,22 +14,14 @@
 PKG_DESTDIR_SUPPORT=   user-destdir
 
 PYDISTUTILSPKG=        yes
+PYBINMODULE=   yes
 PY_PATCHPLIST= yes
+PYSETUPINSTALLARGS= --single-version-externally-managed --record plist.txt
+PLIST_SUBST+=   PYVERSSUFFIX=${PYVERSSUFFIX}
 
-PYTHON_VERSIONS_ACCEPTED=      25 24 23 21
+PYTHON_VERSIONS_ACCEPTED=      25 24 23
 
 .include "../../mk/mysql.buildlink3.mk"
+
 .include "../../lang/python/extension.mk"
-
-# To pickup python version info
-pre-configure:
-       ${SED} -e "s|@MYSQLPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
-               -e "s|@MYSQLRTPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
-               <${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp
-.if ${PYPKGPREFIX:Mpy20} == "py20"
-       ${SED} -e "s|platforms = .ALL.|#platforms = \"ALL\"|" <${WRKSRC}/setup.py.tmp > ${WRKSRC}/setup.py.tmp2
-       ${MV} ${WRKSRC}/setup.py.tmp2 ${WRKSRC}/setup.py.tmp
-.endif
-       ${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
-
 .include "../../mk/bsd.pkg.mk"
diff -r 96e8ea518dd3 -r c19c13ddceb9 databases/py-mysqldb/PLIST
--- a/databases/py-mysqldb/PLIST        Wed Aug 06 15:55:24 2008 +0000
+++ b/databases/py-mysqldb/PLIST        Wed Aug 06 17:16:49 2008 +0000
@@ -1,7 +1,9 @@
-@comment $NetBSD: PLIST,v 1.4 2003/09/14 16:43:48 recht Exp $
-${PYSITELIB}/CompatMysqldb.py
-${PYSITELIB}/CompatMysqldb.pyc
-${PYSITELIB}/CompatMysqldb.pyo
+@comment $NetBSD: PLIST,v 1.5 2008/08/06 17:16:49 mjl Exp $
+${PYSITELIB}/MySQL_python-1.2.2-py${PYVERSSUFFIX}.egg-info/PKG-INFO
+${PYSITELIB}/MySQL_python-1.2.2-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
+${PYSITELIB}/MySQL_python-1.2.2-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
+${PYSITELIB}/MySQL_python-1.2.2-py${PYVERSSUFFIX}.egg-info/native_libs.txt
+${PYSITELIB}/MySQL_python-1.2.2-py${PYVERSSUFFIX}.egg-info/top_level.txt
 ${PYSITELIB}/MySQLdb/__init__.py
 ${PYSITELIB}/MySQLdb/__init__.pyc
 ${PYSITELIB}/MySQLdb/__init__.pyo
@@ -35,9 +37,9 @@
 ${PYSITELIB}/MySQLdb/cursors.py
 ${PYSITELIB}/MySQLdb/cursors.pyc
 ${PYSITELIB}/MySQLdb/cursors.pyo
-${PYSITELIB}/MySQLdb/sets.py
-${PYSITELIB}/MySQLdb/sets.pyc
-${PYSITELIB}/MySQLdb/sets.pyo
+${PYSITELIB}/MySQLdb/release.py
+${PYSITELIB}/MySQLdb/release.pyc
+${PYSITELIB}/MySQLdb/release.pyo
 ${PYSITELIB}/MySQLdb/times.py
 ${PYSITELIB}/MySQLdb/times.pyc
 ${PYSITELIB}/MySQLdb/times.pyo
@@ -45,5 +47,3 @@
 ${PYSITELIB}/_mysql_exceptions.py
 ${PYSITELIB}/_mysql_exceptions.pyc
 ${PYSITELIB}/_mysql_exceptions.pyo
-@dirrm ${PYSITELIB}/MySQLdb/constants
-@dirrm ${PYSITELIB}/MySQLdb
diff -r 96e8ea518dd3 -r c19c13ddceb9 databases/py-mysqldb/distinfo
--- a/databases/py-mysqldb/distinfo     Wed Aug 06 15:55:24 2008 +0000
+++ b/databases/py-mysqldb/distinfo     Wed Aug 06 17:16:49 2008 +0000
@@ -1,7 +1,5 @@
-$NetBSD: distinfo,v 1.7 2006/02/26 16:37:41 joerg Exp $
+$NetBSD: distinfo,v 1.8 2008/08/06 17:16:49 mjl Exp $
 
-SHA1 (MySQL-python-0.9.2.tar.gz) = b6959ee5e28847e557229ddc318b097f10144ff2
-RMD160 (MySQL-python-0.9.2.tar.gz) = f7ef371e8f2c0a3b6979a99bfa368e4342aa4080
-Size (MySQL-python-0.9.2.tar.gz) = 64258 bytes
-SHA1 (patch-aa) = 27ab8d1f675197e1fdaf5760dbdad5ea95043f59
-SHA1 (patch-ab) = d063f5a51fef1ed20015a7370ff80f37c7317bf5
+SHA1 (MySQL-python-1.2.2.tar.gz) = 945a04773f30091ad81743f9eb0329a3ee3de383
+RMD160 (MySQL-python-1.2.2.tar.gz) = 3f3ff52102c41f86de3181d33132f15a9882a5b1
+Size (MySQL-python-1.2.2.tar.gz) = 87078 bytes
diff -r 96e8ea518dd3 -r c19c13ddceb9 databases/py-mysqldb/patches/patch-aa
--- a/databases/py-mysqldb/patches/patch-aa     Wed Aug 06 15:55:24 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2003/06/06 10:36:38 jmmv Exp $
---- setup.py.orig      Thu Jul 18 14:55:36 2002
-+++ setup.py   Thu Nov 14 15:36:03 2002
-@@ -11,7 +11,7 @@
- NO = 0
- 
- # set this to YES if you have the thread-safe mysqlclient library
--thread_safe_library = YES
-+thread_safe_library = NO
- 
- # You probably don't have to do anything past this point. If you
- # do, please mail me the configuration for your platform. Don't
-@@ -23,14 +23,10 @@
- mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient"
- 
- # include files and library locations should cover most platforms
--include_dirs = [
--    '/usr/include/mysql', '/usr/local/include/mysql',
--    '/usr/local/mysql/include/mysql'
--    ]
--library_dirs = [
--    '/usr/lib/mysql', '/usr/local/lib/mysql',
--    '/usr/local/mysql/lib/mysql'
--    ]
-+mysqlprefix = '@MYSQLPREFIX@'
-+mysqlrtprefix = '@MYSQLRTPREFIX@'
-+include_dirs = [mysqlprefix + '/include/mysql']
-+library_dirs = [mysqlprefix + '/lib/mysql']
- 
- # MySQL-3.23 and newer need libz
- libraries = [mysqlclient, "z"]
-@@ -38,7 +34,7 @@
- # On some platorms, this can be used to find the shared libraries
- # at runtime, if they are in a non-standard location. Doesn't
- # work for Linux gcc.
--runtime_library_dirs = []
-+runtime_library_dirs = [mysqlrtprefix + '/lib/mysql']
- 
- # This can be used to force linking against static libraries.
- extra_objects = []
-@@ -48,38 +44,6 @@
- extra_compile_args = []
- extra_link_args = []
- 
--if sys.platform == "netbsd1":
--    include_dirs = ['/usr/pkg/include/mysql']
--    library_dirs = ['/usr/pkg/lib/mysql']
--elif sys.platform in ("freebsd4", "openbsd3"):
--    LOCALBASE = os.environ.get('LOCALBASE', '/usr/local')
--    include_dirs = ['%s/include/mysql' % LOCALBASE]
--    library_dirs = ['%s/lib/mysql' % LOCALBASE]
--elif sys.platform == "sunos5": # Solaris 2.8 + gcc
--    runtime_library_dirs.append('/usr/local/lib:/usr/openwin/lib:/usr/dt/lib') 
--    extra_compile_args.append("-fPIC")
--elif sys.platform == "win32": # Ugh
--    include_dirs = [r'c:\mysql\include']
--    library_dirs = [r'c:\mysql\lib\opt']
--    libraries = [mysqlclient, 'zlib', 'msvcrt', 'libcmt',
--                 'wsock32', 'advapi32']
--    extra_objects = [r'c:\mysql\lib\opt\mysqlclient.lib']
--elif sys.platform == "cygwin":
--    include_dirs = ['/c/mysql/include']
--    library_dirs = ['/c/mysql/lib']
--    extra_compile_args.append('-DMS_WIN32')
--elif sys.platform[:6] == "darwin": # Mac OS X
--    include_dirs.append('/sw/include')
--    library_dirs.append('/sw/lib')
--    extra_link_args.append('-flat_namespace')
--elif sys.platform == 'linux2' and os.environ.get('HOSTTYPE') == 'alpha':
--    libraries.extend(['ots', 'cpml'])
--elif os.name == "posix": # UNIX-ish platforms not covered above
--    pass # default should work
--else:
--    raise "UnknownPlatform", "sys.platform=%s, os.name=%s" % \
--          (sys.platform, os.name)
--    
- long_description = \
- """Python interface to MySQL-3.23
- 
diff -r 96e8ea518dd3 -r c19c13ddceb9 databases/py-mysqldb/patches/patch-ab
--- a/databases/py-mysqldb/patches/patch-ab     Wed Aug 06 15:55:24 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2006/02/26 16:37:41 joerg Exp $
-
---- _mysql.c.orig      2002-08-01 05:01:30.000000000 +0000
-+++ _mysql.c
-@@ -39,6 +39,7 @@ PERFORMANCE OF THIS SOFTWARE.
- 
- #include "structmember.h"
- #include "mysql.h"
-+#include "mysql_version.h"
- #include "mysqld_error.h"
- #include "errmsg.h"
- 
-@@ -1353,7 +1354,11 @@ _mysql_ConnectionObject_shutdown(
-       if (!PyArg_NoArgs(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);



Home | Main Index | Thread Index | Old Index