summaryrefslogtreecommitdiff
path: root/databases/py-postgresql
diff options
context:
space:
mode:
authordarcy <darcy@pkgsrc.org>2000-07-03 14:10:33 +0000
committerdarcy <darcy@pkgsrc.org>2000-07-03 14:10:33 +0000
commit196cdadea611b8b1eee5bb56cb84e74cc9e63ddc (patch)
treeb04ba5bb708b729da5f8950632aac55ad401ff9e /databases/py-postgresql
parent53451a9c90a6b35064853777924a60c85c856e6d (diff)
downloadpkgsrc-196cdadea611b8b1eee5bb56cb84e74cc9e63ddc.tar.gz
Upgrade to verson 3.0. The most important change here is addition of
the Python DB-API module. Also, note backwards compatibility issue. Important changes for 3.0 Remove strlen() call from pglarge_write() and get size from object. (Richard@Bouska.cz) Add a little more error checking to the quote function in the wrapper Add extra checking in _quote function Wrap query in pg.py for debugging Add DB-API 2.0 support to pgmodule.c (andre@via.ecp.fr) Add DB-API 2.0 wrapper pgdb.py (andre@via.ecp.fr) Correct keyword clash (temp) in tutorial Clean up layout of tutorial Return NULL values as None (rlawrence@lastfoot.com) (WARNING: This will cause backwards compatibility issues.) Change None to NULL in insert and update Change hash-bang lines to use /usr/bin/env Clearing date should be blank (NULL) not TODAY Quote backslashes in strings in _quote (brian@CSUA.Berkeley.EDU) Expanded and clarified build instructions (tbryan@starship.python.net) Make code thread safe (Jerome.Alet@unice.fr) Add README.distutils (mwa@gate.net & jeremy@cnri.reston.va.us) Many fixes by chifungfan@yahoo.com, tony@printra.net, jeremy@alum.mit.edu and others to get the final version ready to release.
Diffstat (limited to 'databases/py-postgresql')
-rw-r--r--databases/py-postgresql/Makefile11
-rw-r--r--databases/py-postgresql/files/md57
-rw-r--r--databases/py-postgresql/pkg/DESCR11
-rw-r--r--databases/py-postgresql/pkg/PLIST8
4 files changed, 22 insertions, 15 deletions
diff --git a/databases/py-postgresql/Makefile b/databases/py-postgresql/Makefile
index 283f9d9a53c..80afa6fab86 100644
--- a/databases/py-postgresql/Makefile
+++ b/databases/py-postgresql/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2000/05/20 19:52:51 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2000/07/03 14:10:33 darcy Exp $
-DISTNAME= PyGreSQL-2.4
-PKGNAME= py-postgresql-2.4
+DISTNAME= PyGreSQL-3.0
+PKGNAME= py-postgresql-3.0
CATEGORIES= databases
MASTER_SITES= ftp://ftp.druid.net/pub/distrib/
EXTRACT_SUFX= .tgz
@@ -10,7 +10,8 @@ MAINTAINER= darcy@NetBSD.org
HOMEPAGE= http://www.druid.net/pygresql/
DEPENDS+= python-1.5.2:../../lang/python
-DEPENDS+= postgresql>=6.5.3:../../databases/postgresql
+DEPENDS+= postgresql-7.*:../../databases/postgresql
+DEPENDS+= mxDateTime-1.3.0:../../misc/py-mxDateTime
ALL_TARGET= default
@@ -20,6 +21,8 @@ PLIST_SUBST+= PYTHON_LIBDIR=lib/python1.5
.include "../../mk/bsd.prefs.mk"
+PGUSER?= pgsql
+
do-configure:
${SED} -e "s,@LOCALBASE@,${LOCALBASE},g" \
${FILESDIR}/Setup.in > ${WRKSRC}/Setup.in
diff --git a/databases/py-postgresql/files/md5 b/databases/py-postgresql/files/md5
index d50815e8445..e7879eb9318 100644
--- a/databases/py-postgresql/files/md5
+++ b/databases/py-postgresql/files/md5
@@ -1,4 +1,3 @@
-$NetBSD: md5,v 1.1.1.1 1999/10/04 17:36:48 jlam Exp $
-
-MD5 (python/PyGreSQL-2.4.tgz) = 7241ae4f9b2e901d05f62e029b35a302
-MD5 (PyGreSQL-2.4.tgz) = 7241ae4f9b2e901d05f62e029b35a302
+$NetBSD: md5,v 1.2 2000/07/03 14:10:35 darcy Exp $
+
+MD5 (PyGreSQL-3.0.tgz) = 3f67b76d6cfece4ac21eee1a9154a206
diff --git a/databases/py-postgresql/pkg/DESCR b/databases/py-postgresql/pkg/DESCR
index 168e8a67963..006b1687c05 100644
--- a/databases/py-postgresql/pkg/DESCR
+++ b/databases/py-postgresql/pkg/DESCR
@@ -1,12 +1,17 @@
-PyGreSQL - v2.4: PostgreSQL module for Python
+PyGreSQL - v3.0: PostgreSQL module for Python
- PyGreSQL, version 2.4
+ PyGreSQL, version 3.0
A Python interface for PostgreSQL database.
Written by D'Arcy J.M. Cain, darcy@druid.net<BR>
Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.
Copyright (c) 1995, Pascal ANDRE (andre@via.ecp.fr)
- Copyright (c) 1997, 1998, 1999
+ Copyright (c) 1997, 1998, 1999, 2000
PyGreSQL is a python module that interfaces to a PostgreSQL database. It
embeds the PostgreSQL query library to allow easy use of the powerful
PostgreSQL features from a Python script.
+
+This version includes support for the Python DB-API.
+
+See README for more information and credits.
+
diff --git a/databases/py-postgresql/pkg/PLIST b/databases/py-postgresql/pkg/PLIST
index 9500988cbf4..f236a692b42 100644
--- a/databases/py-postgresql/pkg/PLIST
+++ b/databases/py-postgresql/pkg/PLIST
@@ -1,11 +1,11 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 1999/10/04 17:36:49 jlam Exp $
+@comment $NetBSD: PLIST,v 1.2 2000/07/03 14:10:36 darcy Exp $
${PYTHON_LIBDIR}/site-packages/_pgmodule.so
${PYTHON_LIBDIR}/site-packages/pg.py
${PYTHON_LIBDIR}/site-packages/pg.pyc
${PYTHON_LIBDIR}/site-packages/pg.pyo
-${PYTHON_LIBDIR}/site-packages/pgsqldb.py
-${PYTHON_LIBDIR}/site-packages/pgsqldb.pyc
-${PYTHON_LIBDIR}/site-packages/pgsqldb.pyo
+${PYTHON_LIBDIR}/site-packages/pgdb.py
+${PYTHON_LIBDIR}/site-packages/pgdb.pyc
+${PYTHON_LIBDIR}/site-packages/pgdb.pyo
share/doc/py-postgresql/README
share/doc/py-postgresql/tutorial/advanced.py
share/doc/py-postgresql/tutorial/basics.py