Mostly bug fixes from 3.8. - Use string methods instead of deprecated string functions. - Only use SQL-standard way of escaping quotes. - Added the functions escape_string() and escape/unescape_bytea() (as suggested by Charlie Dyson and Kavous Bojnourdi a long time ago). - Reverted code in clear() method that set date to current. - Added code for backwards compatibility in OID munging code. - Reorder attnames tests so that "interval" is checked for before "int." - If caller supplies key dictionary, make sure that all has a namespace.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2006/06/11 00:58:39 darcy Exp $
|
|
|
|
DISTNAME= PyGreSQL-3.8.1
|
|
PKGNAME= ${PYPKGPREFIX}-postgresql-3.8.1
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= ftp://ftp.druid.net/pub/distrib/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= darcy@NetBSD.org
|
|
HOMEPAGE= http://www.PyGreSQL.org/
|
|
COMMENT= Python interface to PostgreSQL
|
|
|
|
MAKE_ENV+= MANDIR=${LOCALBASE}/man
|
|
MAKE_ENV+= BINDIR=${LOCALBASE}/bin
|
|
USE_TOOLS+= gmake
|
|
|
|
MAKEFILE= GNUmakefile
|
|
MAKE_ENV+= INSTALLED_LIBPQ=1
|
|
|
|
PY_PATCHPLIST= yes
|
|
PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX:Q}
|
|
PYTHON_VERSIONS_ACCEPTED= 24 23 22
|
|
|
|
PYDISTUTILSPKG= yes
|
|
PYBINMODULE= yes
|
|
DOCDIR= ${PREFIX}/share/doc/${PYPKGPREFIX}-postgresql
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/tutorial
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/docs
|
|
for inst_file in ${WRKSRC}/tutorial/*.py; do \
|
|
${INSTALL_DATA} $${inst_file} ${DOCDIR}/tutorial; \
|
|
done
|
|
for inst_file in ${WRKSRC}/docs/*; do \
|
|
${INSTALL_DATA} $${inst_file} ${DOCDIR}/docs; \
|
|
done
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|