Overhaul and update to 1.1.21

This commit is contained in:
alek 2006-01-28 11:18:52 +00:00
parent b7ba9ef98e
commit d1ef9da075
4 changed files with 39 additions and 31 deletions

View File

@ -1,17 +1,16 @@
# $OpenBSD: Makefile,v 1.21 2005/09/16 09:51:26 espie Exp $
# $OpenBSD: Makefile,v 1.22 2006/01/28 11:18:52 alek Exp $
SHARED_ONLY= Yes
COMMENT= "PostgreSQL database adapter for Python"
COMMENT-zope= "database adapter for Zope"
VERSION= 1.1.15
VERSION= 1.1.21
DISTNAME= psycopg-${VERSION}
PKGNAME= py-psycopg-${VERSION}
FULLPKGNAME= ${PKGNAME}p0
PKGNAME= py-${DISTNAME}
FULLPKGNAME-zope=py-psycopg-zope-${VERSION}
CATEGORIES= databases
MASTER_SITES= http://initd.org/pub/software/psycopg/
HOMEPAGE= http://initd.org/projects/psycopg1
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
@ -22,45 +21,36 @@ PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
WANTLIB= crypto util pq
PSEUDO_FLAVORS= no_zope
FLAVOR?=
MASTER_SITES= http://initd.org/pub/software/psycopg/
PYTHON_VER= 2.3
DATETIME_PATH= ${LOCALBASE}/lib/python${PYTHON_VER}/site-packages/mx/DateTime
MODULES= lang/python
RUN_DEPENDS= :postgresql-server-*:databases/postgresql,-server \
:python-${PYTHON_VER}*:lang/python/${PYTHON_VER} \
:py-mxDateTime->=2.0.0:devel/py-mxDateTime
BUILD_DEPENDS= ${RUN_DEPENDS}
.if empty(FLAVOR:L:Mno_zope)
MULTI_PACKAGES= -zope
SUBPACKAGE?=
FULLPKGNAME-zope= py-psycopg-zope-${VERSION}
. if defined(PACKAGING) && ${SUBPACKAGE} == "-zope"
.if defined(PACKAGING) && ${SUBPACKAGE} == "-zope"
RUN_DEPENDS= :zope-*:www/zope \
:py-psycopg-${VERSION}*:databases/py-psycopg
PKG_ARCH= *
WANTLIB=
. endif
.endif
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-mxdatetime-includes=${DATETIME_PATH}/mxDateTime
CONFIGURE_ENV= PYTHON=${LOCALBASE}/bin/python${PYTHON_VER}
CONFIGURE_ARGS= --with-mxdatetime-includes=${MODPY_SITEPKG}/mx/DateTime/mxDateTime
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
SUBST_VARS= PYTHON_VER
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/zope/lib/python/Products/
cd ${WRKSRC}; tar cf - ZPsycopgDA | tar xf - -C ${PREFIX}/lib/zope/lib/python/Products
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/zope/lib/python/Products/ZPsycopgDA
do-regress: fake
env PYTHONPATH=${WRKINST}${LOCALBASE}/lib/python${PYTHON_VER}/lib-dynload \
python${PYTHON_VER} ${WRKSRC}/tests/check_types.py "dbname=template1 user=_postgresql" \
| diff -uw - ${WRKSRC}/tests/check_types.expected
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-psycopg/
${INSTALL_DATA} ${WRKSRC}/doc/examples/* \
${PREFIX}/share/examples/py-psycopg/
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
MD5 (psycopg-1.1.15.tar.gz) = b7de1df2ba2d0172b5b5f18cc379c3f5
RMD160 (psycopg-1.1.15.tar.gz) = e7018b897ef36c67c12ad668f6d5f39f9bfd997e
SHA1 (psycopg-1.1.15.tar.gz) = fc2f53dfe818a52714d52af2bd52f3ff8890c710
SIZE (psycopg-1.1.15.tar.gz) = 252342
MD5 (psycopg-1.1.21.tar.gz) = a31f79f68d6d32898d6f24e11369a106
RMD160 (psycopg-1.1.21.tar.gz) = de74a70b16353f69de7e898059a7a1d8418ad2ee
SHA1 (psycopg-1.1.21.tar.gz) = 02d8a8b5dd682306117896c7c63a9a1b518997b6
SIZE (psycopg-1.1.21.tar.gz) = 213753

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.1 2004/10/24 20:44:36 alek Exp $
lib/python${PYTHON_VER}/lib-dynload/psycopgmodule.so

View File

@ -1,3 +1,23 @@
@comment $OpenBSD: PLIST,v 1.4 2005/09/16 09:51:26 espie Exp $
@comment $OpenBSD: PLIST,v 1.5 2006/01/28 11:18:52 alek Exp $
@pkgpath databases/py-psycopg,no_zope
%%SHARED%%
lib/python${MODPY_VERSION}/lib-dynload/psycopgmodule.so
share/examples/py-psycopg/
share/examples/py-psycopg/binary.py
share/examples/py-psycopg/bool.py
share/examples/py-psycopg/bounded.py
share/examples/py-psycopg/commit.py
share/examples/py-psycopg/copy_from.py
share/examples/py-psycopg/copy_from2.py
share/examples/py-psycopg/copy_to.py
share/examples/py-psycopg/dictfetch.py
share/examples/py-psycopg/dt.py
share/examples/py-psycopg/first.py
share/examples/py-psycopg/integrity.py
share/examples/py-psycopg/interval.py
share/examples/py-psycopg/notify.py
share/examples/py-psycopg/oid.py
share/examples/py-psycopg/somehackers.jpg
share/examples/py-psycopg/threads.py
share/examples/py-psycopg/usercast.py
share/examples/py-psycopg/whereareyou.jpg
share/examples/py-psycopg/work.py