openbsd-ports/databases/py-psycopg/Makefile

58 lines
1.7 KiB
Makefile
Raw Normal View History

2006-11-26 05:24:36 -05:00
# $OpenBSD: Makefile,v 1.26 2006/11/26 10:24:36 steven Exp $
SHARED_ONLY= Yes
2006-11-26 05:24:36 -05:00
COMMENT-main= "PostgreSQL database adapter for Python"
COMMENT-zope= "database adapter for Zope"
2006-01-28 06:18:52 -05:00
VERSION= 1.1.21
DISTNAME= psycopg-${VERSION}
2006-11-26 05:24:36 -05:00
PKGNAME= py-${DISTNAME}p3
PKGNAME-main= py-${DISTNAME}p3
2006-11-16 17:39:02 -05:00
PKGNAME-zope= py-psycopg-zope-${VERSION}p0
CATEGORIES= databases
HOMEPAGE= http://initd.org/projects/psycopg1
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
WANTLIB= crypto util pq
2006-01-28 06:18:52 -05:00
MASTER_SITES= http://initd.org/pub/software/psycopg/
2006-01-28 06:18:52 -05:00
MODULES= lang/python
BUILD_DEPENDS= :postgresql-server-*:databases/postgresql,-server \
:py-mxDateTime->=2.0.0:devel/py-mxDateTime
RUN_DEPENDS= :postgresql-client-*:databases/postgresql \
:py-mxDateTime->=2.0.0:devel/py-mxDateTime
2006-11-26 05:24:36 -05:00
MULTI_PACKAGES= -main -zope
2006-11-26 05:24:36 -05:00
RUN_DEPENDS-zope= :zope-*:www/zope \
:py-psycopg-${VERSION}*:${BUILD_PKGPATH} \
${MODPY_RUN_DEPENDS}
PKG_ARCH-zope= *
WANTLIB-zope=
CONFIGURE_STYLE=gnu
2006-01-28 06:18:52 -05:00
CONFIGURE_ARGS= --with-mxdatetime-includes=${MODPY_SITEPKG}/mx/DateTime/mxDateTime
CONFIGURE_ENV= PYTHON=${MODPY_BIN}
2006-01-28 06:18:52 -05:00
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
2006-01-28 06:18:52 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-psycopg/
${INSTALL_DATA} ${WRKSRC}/doc/examples/* \
${PREFIX}/share/examples/py-psycopg/
2006-11-16 17:39:02 -05:00
${CHOWN} ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/python${MODPY_VERSION}/lib-dynload/psycopgmodule.so
.include <bsd.port.mk>