ports/55128: Updated port: databases/py-psycopg from 1.0.13 to 1.1.7
Alex Rodioukov
simuran at shaw.ca
Thu Jul 31 18:40:14 UTC 2003
>Number: 55128
>Category: ports
>Synopsis: Updated port: databases/py-psycopg from 1.0.13 to 1.1.7
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 31 11:40:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Alex Rodioukov
>Release: FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netopia.io.sys 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Feb 4 13:21:59 MST 2002 root at bismark.io.sys:/usr/obj/usr/src/sys/NETOPIA i386
>Description:
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# py-psycopg/
# py-psycopg/Makefile
# py-psycopg/distinfo
# py-psycopg/pkg-descr
# py-psycopg/pkg-plist
# py-psycopg/files
# py-psycopg/files/patch-configure
#
echo c - py-psycopg/
mkdir -p py-psycopg/ > /dev/null 2>&1
echo x - py-psycopg/Makefile
sed 's/^X//' >py-psycopg/Makefile << 'END-of-py-psycopg/Makefile'
X# New ports collection makefile for: py-psycopg
X# Date created: 22 March 2002
X# Whom: Alex Rodioukov <simuran at shaw.ca>
X#
X# $FreeBSD: ports/databases/py-psycopg/Makefile,v 1.7 2003/02/21 11:15:04 knu Exp $
X#
X
XPORTNAME= psycopg
XPORTVERSION= 1.1.7
XCATEGORIES= databases python
XMASTER_SITES= http://initd.org/pub/software/psycopg/
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
XDISTNAME= psycopg-${PORTVERSION}
X
XMAINTAINER= simuran at shaw.ca
XCOMMENT= The high performance Python adapter for PostgreSQL
X
XRUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
XBUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
XLIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
X
XUSE_GMAKE= yes
XUSE_PYTHON= yes
XGNU_CONFIGURE= yes
X
XPOSTGRESQL_PORT?= databases/postgresql7
X
XALL_TARGET= sharedmods
X
XCONFIGURE_ARGS= --with-python=${PYTHON_CMD} \
X --with-postgres-libraries=${LOCALBASE}/lib \
X --with-postgres-includes=${LOCALBASE}/include \
X --with-mxdatetime-includes=${DATETIME_INC}
X
XDATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
XDATETIME_INC= ${PYTHON_SITELIBDIR}/mx/DateTime/mxDateTime/
X
XDOCSDIR= ${PREFIX}/share/doc/py-psycopg
XEXAMPLESDIR= ${PREFIX}/share/examples/py-psycopg
X
XEXAMPLES= binary.py bool.py commit.py copy_from.py copy_from2.py \
X copy_to.py dictfetch.py dt.py first.py integrity.py \
X oid.py notify.py somehackers.jpg threads.py usercast.py \
X whereareyou.jpg work.py
X
XDOCS= AUTHORS COPYING CREDITS ChangeLog FAQ INSTALL NEWS \
X README RELEASE-1.0 SUCCESS TODO
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/psycopgmodule.so \
X ${PYTHON_SITELIBDIR}
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X ${MKDIR} ${EXAMPLESDIR}
X.for f in ${EXAMPLES}
X ${INSTALL_DATA} ${WRKSRC}/doc/examples/${f} ${EXAMPLESDIR}
X.endfor
X ${MKDIR} ${DOCSDIR}
X.for f in ${DOCS}
X ${INSTALL_MAN} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.else
XPLIST= ${WRKDIR}/PLIST.nodocs
Xpre-install:
X ${RM} -f ${PLIST}
X ${GREP} -E -v '^(@dirrm )?(share/examples/)|(share/doc/)' \
X ${PKGDIR}/pkg-plist > ${PLIST}
X.endif
X
X.include <bsd.port.mk>
END-of-py-psycopg/Makefile
echo x - py-psycopg/distinfo
sed 's/^X//' >py-psycopg/distinfo << 'END-of-py-psycopg/distinfo'
XMD5 (psycopg-1.1.7.tar.gz) = c8a73eba14ac642e6112cb30c2fe4d43
END-of-py-psycopg/distinfo
echo x - py-psycopg/pkg-descr
sed 's/^X//' >py-psycopg/pkg-descr << 'END-of-py-psycopg/pkg-descr'
Xpsycopg is a PostgreSQL database adapter for the Python programming
Xlanguage. It was written from scratch with the aim of being very small and
Xfast, and stable as a rock. The main advantages of psycopg are that it
Xsupports the full Python DBAPI-2.0 and being thread safe at level 2.
X
Xpsycopg is different from the other database adapter because it was designed
Xfor heavily multi-threaded applications that create and destroy lots of
Xcursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
XEvery open Python connection keeps a pool of real (UNIX or TCP/IP)
Xconnections to the database. Every time a new cursor is created, a new
Xconnection does not need to be opened; instead one of the unused connections
Xfrom the pool is used. That makes psycopg very fast in typical client-server
Xapplications that create a servicing thread every time a client request
Xarrives.
X
XWWW: http://initd.org/software/psycopg
X
X- Alex Rodioukov <simuran at shaw.ca>
END-of-py-psycopg/pkg-descr
echo x - py-psycopg/pkg-plist
sed 's/^X//' >py-psycopg/pkg-plist << 'END-of-py-psycopg/pkg-plist'
X%%PORTDOCS%%share/doc/py-psycopg/AUTHORS
X%%PORTDOCS%%share/doc/py-psycopg/COPYING
X%%PORTDOCS%%share/doc/py-psycopg/CREDITS
X%%PORTDOCS%%share/doc/py-psycopg/ChangeLog
X%%PORTDOCS%%share/doc/py-psycopg/FAQ
X%%PORTDOCS%%share/doc/py-psycopg/INSTALL
X%%PORTDOCS%%share/doc/py-psycopg/NEWS
X%%PORTDOCS%%share/doc/py-psycopg/README
X%%PORTDOCS%%share/doc/py-psycopg/RELEASE-1.0
X%%PORTDOCS%%share/doc/py-psycopg/SUCCESS
X%%PORTDOCS%%share/doc/py-psycopg/TODO
X%%PORTDOCS%%share/examples/py-psycopg/binary.py
X%%PORTDOCS%%share/examples/py-psycopg/bool.py
X%%PORTDOCS%%share/examples/py-psycopg/commit.py
X%%PORTDOCS%%share/examples/py-psycopg/copy_from.py
X%%PORTDOCS%%share/examples/py-psycopg/copy_from2.py
X%%PORTDOCS%%share/examples/py-psycopg/copy_to.py
X%%PORTDOCS%%share/examples/py-psycopg/dictfetch.py
X%%PORTDOCS%%share/examples/py-psycopg/dt.py
X%%PORTDOCS%%share/examples/py-psycopg/first.py
X%%PORTDOCS%%share/examples/py-psycopg/integrity.py
X%%PORTDOCS%%share/examples/py-psycopg/oid.py
X%%PORTDOCS%%share/examples/py-psycopg/notify.py
X%%PORTDOCS%%share/examples/py-psycopg/somehackers.jpg
X%%PORTDOCS%%share/examples/py-psycopg/threads.py
X%%PORTDOCS%%share/examples/py-psycopg/usercast.py
X%%PORTDOCS%%share/examples/py-psycopg/whereareyou.jpg
X%%PORTDOCS%%share/examples/py-psycopg/work.py
Xlib/%%PYTHON_VERSION%%/site-packages/psycopgmodule.so
X%%PORTDOCS%%@dirrm share/examples/py-psycopg
X%%PORTDOCS%%@dirrm share/doc/py-psycopg
END-of-py-psycopg/pkg-plist
echo c - py-psycopg/files
mkdir -p py-psycopg/files > /dev/null 2>&1
echo x - py-psycopg/files/patch-configure
sed 's/^X//' >py-psycopg/files/patch-configure << 'END-of-py-psycopg/files/patch-configure'
X--- configure.orig Thu Jul 31 12:01:15 2003
X+++ configure Thu Jul 31 12:01:15 2003
X@@ -1326,6 +1326,12 @@
X PGSQLTYPES="$PGSQLDIR/server/catalog/pg_type.h"
X PGSQLDIR="$PGSQLDIR/server"
X CPPFLAGS="$CPPFLAGS -I$PGSQLDIR"
X+ else
X+ if test -d $PGSQLDIR/postgresql/server/catalog ; then
X+ PGSQLTYPES="$PGSQLDIR/postgresql/server/catalog/pg_type.h"
X+ PGSQLDIR="$PGSQLDIR/postgresql/server"
X+ CPPFLAGS="$CPPFLAGS -I$PGSQLDIR"
X+ fi
X fi
X fi
X test -z "$PGSQLTYPES" && { echo "configure: error: pg_type.h not found" 1>&2; exit 1; }
END-of-py-psycopg/files/patch-configure
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list