diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-08-10 19:35:17 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-08-10 19:35:17 +0000 |
commit | c242443a3866a61f0c98d0d9bdc2e7f0daa82f18 (patch) | |
tree | ed8f97110526dcf1d695e38955ba6ade2c6a2c4a /databases/py-psycopg2 | |
parent | c3ef35dcd4e8a9c1e323f5d74370c409d3d1a73c (diff) | |
download | ports-c242443a3866a61f0c98d0d9bdc2e7f0daa82f18.tar.gz ports-c242443a3866a61f0c98d0d9bdc2e7f0daa82f18.zip |
Notes
Diffstat (limited to 'databases/py-psycopg2')
-rw-r--r-- | databases/py-psycopg2/Makefile | 59 | ||||
-rw-r--r-- | databases/py-psycopg2/distinfo | 3 | ||||
-rw-r--r-- | databases/py-psycopg2/pkg-descr | 14 | ||||
-rw-r--r-- | databases/py-psycopg2/pkg-plist | 40 |
4 files changed, 116 insertions, 0 deletions
diff --git a/databases/py-psycopg2/Makefile b/databases/py-psycopg2/Makefile new file mode 100644 index 000000000000..066d5f767fd5 --- /dev/null +++ b/databases/py-psycopg2/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: py-psycopg2 +# Date created: 1 August 2006 +# Whom: Martin Wilke <miwi@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= psycopg2 +PORTVERSION= 2.0.4 +CATEGORIES= databases python +MASTER_SITES= http://initd.org/pub/software/psycopg/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= psycopg2-${PORTVERSION} + +MAINTAINER= miwi@FreeBSD.org +COMMENT= The high performance Python adapter for PostgreSQL + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/DateTime:${PORTSDIR}/lang/py-mx-base + +USE_PGSQL= yes +USE_GMAKE= yes +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +.include <bsd.port.pre.mk> + +do-build: + @(cd ${WRKSRC}; ${PYTHON_CMD} setup.py build) + +do-install: + @(cd ${WRKSRC}; ${PYTHON_CMD} setup.py install) + +.if ${OSVERSION} < 500000 +BROKEN= Does not compile on 4.x +.endif + +DOCSDIR= ${TARGETDIR}/share/doc/py-psycopg2 +EXAMPLESDIR= ${TARGETDIR}/share/examples/py-psycopg2 + +EXAMPLES= binary.py cursor.py dt.py lastrowid.py notify.py threads.py \ + whereareyou.jpg copy_from.py dialtone.py encoding.py \ + mogrify.py simple.py tz.py copy_to.py dict.py fetch.py \ + myfirstrecipe.py somehackers.jpg usercast.py + +DOCS= AUTHORS ChangeLog INSTALL README PKG-INFO + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${EXAMPLESDIR} +.for f in ${EXAMPLES} + @${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR} +.endfor + @${MKDIR} ${DOCSDIR} +.for f in ${DOCS} + @${INSTALL_MAN} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> diff --git a/databases/py-psycopg2/distinfo b/databases/py-psycopg2/distinfo new file mode 100644 index 000000000000..ceb71250e0ae --- /dev/null +++ b/databases/py-psycopg2/distinfo @@ -0,0 +1,3 @@ +MD5 (psycopg2-2.0.4.tar.gz) = 8e94b29f465281156423594b7eb94b71 +SHA256 (psycopg2-2.0.4.tar.gz) = 40b2dc7db6ca6ddf8393a6286fd06825179850eaa2a1aa3dd69d92dceac7eb6f +SIZE (psycopg2-2.0.4.tar.gz) = 279860 diff --git a/databases/py-psycopg2/pkg-descr b/databases/py-psycopg2/pkg-descr new file mode 100644 index 000000000000..39deee5dfb96 --- /dev/null +++ b/databases/py-psycopg2/pkg-descr @@ -0,0 +1,14 @@ +psycopg2 is a PostgreSQL database adapter for the Python programming language. +It was written from scratch with the aim of being small, fast and stable. It +supports the full Python DBAPI-2.0 and is thread safe. + +psycopg2 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. + +WWW: http://initd.org/projects/psycopg2 diff --git a/databases/py-psycopg2/pkg-plist b/databases/py-psycopg2/pkg-plist new file mode 100644 index 000000000000..3728164e99f7 --- /dev/null +++ b/databases/py-psycopg2/pkg-plist @@ -0,0 +1,40 @@ +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/_psycopg.so +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/extensions.py +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/extensions.pyc +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/extras.py +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/extras.pyc +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/pool.py +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/pool.pyc +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/psycopg1.py +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/psycopg1.pyc +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/tz.py +lib/%%PYTHON_VERSION%%/site-packages/psycopg2/tz.pyc +@dirrm lib/%%PYTHON_VERSION%%/site-packages/psycopg2 +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/PKG-INFO +%%PORTDOCS%%%%DOCSDIR%%/README +%%EXAMPLESDIR%%/binary.py +%%EXAMPLESDIR%%/copy_from.py +%%EXAMPLESDIR%%/copy_to.py +%%EXAMPLESDIR%%/cursor.py +%%EXAMPLESDIR%%/dialtone.py +%%EXAMPLESDIR%%/dict.py +%%EXAMPLESDIR%%/dt.py +%%EXAMPLESDIR%%/encoding.py +%%EXAMPLESDIR%%/fetch.py +%%EXAMPLESDIR%%/lastrowid.py +%%EXAMPLESDIR%%/mogrify.py +%%EXAMPLESDIR%%/myfirstrecipe.py +%%EXAMPLESDIR%%/notify.py +%%EXAMPLESDIR%%/simple.py +%%EXAMPLESDIR%%/somehackers.jpg +%%EXAMPLESDIR%%/threads.py +%%EXAMPLESDIR%%/tz.py +%%EXAMPLESDIR%%/usercast.py +%%EXAMPLESDIR%%/whereareyou.jpg +@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |