mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Add pyPgSQL, a Python DB-API 2 compliant library for using PostgreSQL
databases PR: 31705 Submitted by: Gerhard Häring <gerhard@bigfoot.de>
This commit is contained in:
parent
3036460534
commit
cd4c2a4e4b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49511
@ -86,6 +86,7 @@
|
||||
SUBDIR += py-SQLDict
|
||||
SUBDIR += py-bsddb3
|
||||
SUBDIR += py-gdbm
|
||||
SUBDIR += py-pyPgSQL
|
||||
SUBDIR += py-sqlrelay
|
||||
SUBDIR += rdb
|
||||
SUBDIR += ruby-bdb
|
||||
|
50
databases/py-pyPgSQL/Makefile
Normal file
50
databases/py-pyPgSQL/Makefile
Normal file
@ -0,0 +1,50 @@
|
||||
# New ports collection makefile for: py-pypgsql
|
||||
# Date created: 01 Nov 2001
|
||||
# Whom: Gerhard Haering <gerhard@bigfoot.de>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pyPgSQL
|
||||
PORTVERSION= 1.6
|
||||
CATEGORIES= databases python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= pypgsql
|
||||
PKGNAMEPREFIX= py-
|
||||
DISTNAME= pypgsql-${PORTVERSION}
|
||||
|
||||
MAINTAINER= gerhard@bigfoot.de
|
||||
|
||||
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
||||
|
||||
WRKSRC= ${WRKDIR}/pypgsql
|
||||
USE_PYTHON= yes
|
||||
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
|
||||
|
||||
DOCS= README
|
||||
|
||||
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
||||
|
||||
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
|
||||
|
||||
post-patch:
|
||||
perl -i -p \
|
||||
-e 's#^include_dirs = \[ "/usr/local/pgsql/include" \]#include_dirs = [ "${LOCALBASE}/include/pgsql" ]# ;' \
|
||||
-e 's#^library_dirs = \[ "/usr/local/pgsql/lib" \]#library_dirs = [ "${LOCALBASE}/lib" ]#' \
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
do-build:
|
||||
${SETUP_CMD} build_ext --inplace
|
||||
|
||||
do-install:
|
||||
${SETUP_CMD} install
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in ${DOCS}
|
||||
@${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
databases/py-pyPgSQL/distinfo
Normal file
1
databases/py-pyPgSQL/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pypgsql-1.6.tar.gz) = 3804f543cbe6cb2805eecc4c44913aea
|
1
databases/py-pyPgSQL/pkg-comment
Normal file
1
databases/py-pyPgSQL/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A Python DB-API 2 compliant library for using PostgreSQL databases
|
12
databases/py-pyPgSQL/pkg-descr
Normal file
12
databases/py-pyPgSQL/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
pyPgSQL is a package of two modules that provide a Python DB-API 2.0 compliant
|
||||
interface to PostgreSQL databases. The first module, libpq, exports the
|
||||
PostgreSQL C API to Python. This module is written in C and can be compiled
|
||||
into Python or can be dynamically loaded on demand. The second module, PgSQL,
|
||||
provides the DB-API 2.0 compliant interface and support for various PostgreSQL
|
||||
data types, such as INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc. This module is
|
||||
written in Python.
|
||||
|
||||
WWW: http://pypgsql.sourceforge.net/
|
||||
developed by Bill Allie et al
|
||||
|
||||
- Gerhard Haering <gerhard@bigfoot.de>
|
6
databases/py-pyPgSQL/pkg-plist
Normal file
6
databases/py-pyPgSQL/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
%%PYTHON_SITELIBDIR%%/libpqmodule.so
|
||||
%%PYTHON_SITELIBDIR%%/PgSQL.py
|
||||
%%PYTHON_SITELIBDIR%%/PgSQL.pyc
|
||||
%%PORTDOCS%%share/doc/py-pyPgSQL/README
|
||||
@dirrm %%PORTDOCS%%share/doc/py-pyPgSQL
|
||||
|
Loading…
Reference in New Issue
Block a user