Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
psycopg is a PostgreSQL database adapter for the Python programming language
(just like pygresql and popy.) It was written from scratch with the aim of
being very small and fast, and stable as a rock. The main advantages of
psycopg are that it supports (well... *will* support) the full Python
DBAPI-2.0 and being thread safe at level 2.
psycopg is different from the other database adapter because it was designed
for heavily multi-threaded applications that create and destroy lots of
cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections
to the database. Every time a new cursor is created, a new connection does not
need to be opened; instead one of the unused connections from the pool is
used. That makes psycopg very fast in typical client-server applications that
create a servicing thread every time a client request arrives.
This is version 2, a complete rewrite of the original code to provide
new-style classes for connection and cursor objects and other
sweet candies. Like the original, psycopg 2 was written with the aim of
being very small and fast, and stable as a rock.
+20
View File
@@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.23 2013/05/04 23:52:45 wiz Exp $
DISTNAME= psycopg2-2.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= http://initd.org/psycopg/tarballs/PSYCOPG-2-5/
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://initd.org/psycopg/
COMMENT= PostgreSQL database adapter for Python
LICENSE= gnu-lgpl-v3
PYTHON_VERSIONS_INCLUDE_3X= yes
REPLACE_PYTHON+= tests/*.py
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+102
View File
@@ -0,0 +1,102 @@
@comment $NetBSD: PLIST,v 1.8 2013/05/04 23:52:45 wiz Exp $
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/psycopg2/__init__.py
${PYSITELIB}/psycopg2/__init__.pyc
${PYSITELIB}/psycopg2/__init__.pyo
${PYSITELIB}/psycopg2/_json.py
${PYSITELIB}/psycopg2/_json.pyc
${PYSITELIB}/psycopg2/_json.pyo
${PYSITELIB}/psycopg2/_psycopg.so
${PYSITELIB}/psycopg2/_range.py
${PYSITELIB}/psycopg2/_range.pyc
${PYSITELIB}/psycopg2/_range.pyo
${PYSITELIB}/psycopg2/errorcodes.py
${PYSITELIB}/psycopg2/errorcodes.pyc
${PYSITELIB}/psycopg2/errorcodes.pyo
${PYSITELIB}/psycopg2/extensions.py
${PYSITELIB}/psycopg2/extensions.pyc
${PYSITELIB}/psycopg2/extensions.pyo
${PYSITELIB}/psycopg2/extras.py
${PYSITELIB}/psycopg2/extras.pyc
${PYSITELIB}/psycopg2/extras.pyo
${PYSITELIB}/psycopg2/pool.py
${PYSITELIB}/psycopg2/pool.pyc
${PYSITELIB}/psycopg2/pool.pyo
${PYSITELIB}/psycopg2/psycopg1.py
${PYSITELIB}/psycopg2/psycopg1.pyc
${PYSITELIB}/psycopg2/psycopg1.pyo
${PYSITELIB}/psycopg2/tests/__init__.py
${PYSITELIB}/psycopg2/tests/__init__.pyc
${PYSITELIB}/psycopg2/tests/__init__.pyo
${PYSITELIB}/psycopg2/tests/dbapi20.py
${PYSITELIB}/psycopg2/tests/dbapi20.pyc
${PYSITELIB}/psycopg2/tests/dbapi20.pyo
${PYSITELIB}/psycopg2/tests/dbapi20_tpc.py
${PYSITELIB}/psycopg2/tests/dbapi20_tpc.pyc
${PYSITELIB}/psycopg2/tests/dbapi20_tpc.pyo
${PYSITELIB}/psycopg2/tests/test_async.py
${PYSITELIB}/psycopg2/tests/test_async.pyc
${PYSITELIB}/psycopg2/tests/test_async.pyo
${PYSITELIB}/psycopg2/tests/test_bugX000.py
${PYSITELIB}/psycopg2/tests/test_bugX000.pyc
${PYSITELIB}/psycopg2/tests/test_bugX000.pyo
${PYSITELIB}/psycopg2/tests/test_bug_gc.py
${PYSITELIB}/psycopg2/tests/test_bug_gc.pyc
${PYSITELIB}/psycopg2/tests/test_bug_gc.pyo
${PYSITELIB}/psycopg2/tests/test_cancel.py
${PYSITELIB}/psycopg2/tests/test_cancel.pyc
${PYSITELIB}/psycopg2/tests/test_cancel.pyo
${PYSITELIB}/psycopg2/tests/test_connection.py
${PYSITELIB}/psycopg2/tests/test_connection.pyc
${PYSITELIB}/psycopg2/tests/test_connection.pyo
${PYSITELIB}/psycopg2/tests/test_copy.py
${PYSITELIB}/psycopg2/tests/test_copy.pyc
${PYSITELIB}/psycopg2/tests/test_copy.pyo
${PYSITELIB}/psycopg2/tests/test_cursor.py
${PYSITELIB}/psycopg2/tests/test_cursor.pyc
${PYSITELIB}/psycopg2/tests/test_cursor.pyo
${PYSITELIB}/psycopg2/tests/test_dates.py
${PYSITELIB}/psycopg2/tests/test_dates.pyc
${PYSITELIB}/psycopg2/tests/test_dates.pyo
${PYSITELIB}/psycopg2/tests/test_extras_dictcursor.py
${PYSITELIB}/psycopg2/tests/test_extras_dictcursor.pyc
${PYSITELIB}/psycopg2/tests/test_extras_dictcursor.pyo
${PYSITELIB}/psycopg2/tests/test_green.py
${PYSITELIB}/psycopg2/tests/test_green.pyc
${PYSITELIB}/psycopg2/tests/test_green.pyo
${PYSITELIB}/psycopg2/tests/test_lobject.py
${PYSITELIB}/psycopg2/tests/test_lobject.pyc
${PYSITELIB}/psycopg2/tests/test_lobject.pyo
${PYSITELIB}/psycopg2/tests/test_module.py
${PYSITELIB}/psycopg2/tests/test_module.pyc
${PYSITELIB}/psycopg2/tests/test_module.pyo
${PYSITELIB}/psycopg2/tests/test_notify.py
${PYSITELIB}/psycopg2/tests/test_notify.pyc
${PYSITELIB}/psycopg2/tests/test_notify.pyo
${PYSITELIB}/psycopg2/tests/test_psycopg2_dbapi20.py
${PYSITELIB}/psycopg2/tests/test_psycopg2_dbapi20.pyc
${PYSITELIB}/psycopg2/tests/test_psycopg2_dbapi20.pyo
${PYSITELIB}/psycopg2/tests/test_quote.py
${PYSITELIB}/psycopg2/tests/test_quote.pyc
${PYSITELIB}/psycopg2/tests/test_quote.pyo
${PYSITELIB}/psycopg2/tests/test_transaction.py
${PYSITELIB}/psycopg2/tests/test_transaction.pyc
${PYSITELIB}/psycopg2/tests/test_transaction.pyo
${PYSITELIB}/psycopg2/tests/test_types_basic.py
${PYSITELIB}/psycopg2/tests/test_types_basic.pyc
${PYSITELIB}/psycopg2/tests/test_types_basic.pyo
${PYSITELIB}/psycopg2/tests/test_types_extras.py
${PYSITELIB}/psycopg2/tests/test_types_extras.pyc
${PYSITELIB}/psycopg2/tests/test_types_extras.pyo
${PYSITELIB}/psycopg2/tests/test_with.py
${PYSITELIB}/psycopg2/tests/test_with.pyc
${PYSITELIB}/psycopg2/tests/test_with.pyo
${PYSITELIB}/psycopg2/tests/testconfig.py
${PYSITELIB}/psycopg2/tests/testconfig.pyc
${PYSITELIB}/psycopg2/tests/testconfig.pyo
${PYSITELIB}/psycopg2/tests/testutils.py
${PYSITELIB}/psycopg2/tests/testutils.pyc
${PYSITELIB}/psycopg2/tests/testutils.pyo
${PYSITELIB}/psycopg2/tz.py
${PYSITELIB}/psycopg2/tz.pyc
${PYSITELIB}/psycopg2/tz.pyo
+6
View File
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.15 2013/05/04 23:52:45 wiz Exp $
SHA1 (psycopg2-2.5.tar.gz) = 12fa804b4982da3f2a388654c7827dfa80f01d0a
RMD160 (psycopg2-2.5.tar.gz) = 9f58dad71642da369caf4e7b009a4025082fc695
Size (psycopg2-2.5.tar.gz) = 703558 bytes
SHA1 (patch-psycopg_config.h) = 4678e0c807a07f350317f414b3a47c99e4c38b91
@@ -0,0 +1,14 @@
$NetBSD: patch-psycopg_config.h,v 1.1 2012/03/12 11:52:28 fhajny Exp $
double defined on SunOS with GCC.
--- psycopg/config.h.orig 2011-06-08 07:42:46.000000000 +0000
+++ psycopg/config.h
@@ -141,7 +141,7 @@ static int pthread_mutex_init(pthread_mu
#endif
#endif
-#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) || defined(sun)
+#if (defined(__FreeBSD__) && __FreeBSD_version < 503000) || (defined(_WIN32) && !defined(__GNUC__)) || ((defined(__sun__) || defined(sun)) && !defined(__GNUC__))
/* what's this, we have no round function either? */
static double round(double num)
{