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

7
databases/py-PgSQL/DESCR Normal file
View File

@@ -0,0 +1,7 @@
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.

View File

@@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.22 2012/10/02 21:25:48 asau Exp $
#
DISTNAME= pyPgSQL-2.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
PKGREVISION= 7
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pypgsql/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pypgsql.sourceforge.net/
COMMENT= Python DB-API 2.0 compliant interface to PostgreSQL
WRKSRC= ${WRKDIR}/pypgsql
PYDISTUTILSPKG= YES
PY_PATCHPLIST= YES
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../time/py-mxDateTime/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

11
databases/py-PgSQL/PLIST Normal file
View File

@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:43:22 joerg Exp $
${PYSITELIB}/pyPgSQL/PgSQL.py
${PYSITELIB}/pyPgSQL/PgSQL.pyc
${PYSITELIB}/pyPgSQL/PgSQL.pyo
${PYSITELIB}/pyPgSQL/__init__.py
${PYSITELIB}/pyPgSQL/__init__.pyc
${PYSITELIB}/pyPgSQL/__init__.pyo
${PYSITELIB}/pyPgSQL/libpq/__init__.py
${PYSITELIB}/pyPgSQL/libpq/__init__.pyc
${PYSITELIB}/pyPgSQL/libpq/__init__.pyo
${PYSITELIB}/pyPgSQL/libpq/libpqmodule.so

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.4 2005/02/23 16:33:09 agc Exp $
SHA1 (pyPgSQL-2.4.tar.gz) = 478135830e0bf4fc9496452ee3b88de4c218488f
RMD160 (pyPgSQL-2.4.tar.gz) = 143b10e7e6e69ef27fe29715fdbf2cfabbd0ab66
Size (pyPgSQL-2.4.tar.gz) = 152139 bytes
SHA1 (patch-aa) = 4ac2cbb8378557678a51bb3ece2f280eff0b1187
SHA1 (patch-ab) = 3d387e7d20db3024a0761570f1bbbeeb3fc8f674

View File

@@ -0,0 +1,48 @@
$NetBSD: patch-aa,v 1.2 2004/08/05 22:20:11 recht Exp $
--- libpqmodule.c.orig 2004-08-03 20:20:48.000000000 +0200
+++ libpqmodule.c 2004-08-03 20:20:56.000000000 +0200
@@ -364,7 +364,6 @@
}
sout[j++] = (forArray ? '"' : '\'');
- sout[j] = (char)0;
result = Py_BuildValue("s#", sout, j);
PyMem_Free(sout);
@@ -411,8 +410,6 @@
}
}
- sout[j] = (char)0;
-
result = Py_BuildValue("s#", sout, j);
PyMem_Free(sout);
@@ -791,7 +788,7 @@
return PgInt8_FromString(s, (char **)NULL, 10);
}
- PyErr_SetString(PyExc_TypeError, "a string or numeric is requireed");
+ PyErr_SetString(PyExc_TypeError, "a string or numeric is required");
return (PyObject *)NULL;
}
#endif
@@ -855,7 +852,7 @@
return PgInt2_FromString(s, (char **)NULL, 10);
}
- PyErr_SetString(PyExc_TypeError, "a string or numeric is requireed");
+ PyErr_SetString(PyExc_TypeError, "a string or numeric is required");
return (PyObject *)NULL;
}
@@ -907,7 +904,7 @@
return libPQbool_FromString(self, args);
}
- PyErr_SetString(PyExc_TypeError, "a string or numeric is requireed");
+ PyErr_SetString(PyExc_TypeError, "a string or numeric is required");
return (PyObject *)NULL;
}

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-ab,v 1.1 2004/01/17 13:16:06 recht Exp $
--- setup.py.orig 2004-01-17 14:10:14.000000000 +0100
+++ setup.py 2004-01-17 14:11:27.000000000 +0100
@@ -82,7 +82,7 @@
def main():
# Set this to 1 if you need to use your own settings
- USE_CUSTOM = 0
+ USE_CUSTOM = 1
# Default settings, may be overriden for specific platforms
pypgsql_rt_dirs = None
@@ -98,8 +98,9 @@
"port/strtok.c"]
if USE_CUSTOM:
- include_dirs = YOUR_LIST_HERE
- library_dirs = YOUR_LIST_HERE
+ LOCALBASE = os.environ.get('LOCALBASE', '/usr/pkg')
+ include_dirs = ['%s/include/pgsql' % LOCALBASE]
+ library_dirs = ['%s/lib' % LOCALBASE]
elif sys.platform == "linux2":
include_dirs = ["/usr/include", "/usr/include/postgresql",
"/usr/include/pgsql"]