freebsd-ports/databases/py-PyGreSQL/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

1998-07-06 19:45:35 +02:00
# Ports collection Makefile for: PyGreSQL
1999-02-23 01:28:15 +01:00
# Date created: 2/22/1999
# Whom: nectar@FreeBSD.org
1998-07-06 19:45:35 +02:00
#
1999-08-25 07:28:01 +02:00
# $FreeBSD$
1998-07-06 19:45:35 +02:00
#
PORTNAME= PyGreSQL
PORTVERSION= 3.5
PORTEPOCH= 1
CATEGORIES= databases python
MASTER_SITES= ftp://ftp.pygresql.org/pub/distrib/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
EXTRACT_SUFX= .tgz
MAINTAINER= girgen@FreeBSD.org
COMMENT= A Python interface to PostgreSQL, both classic and DP-API 2.0
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
LIB_DEPENDS= pq:${PORTSDIR}/${POSTGRESQL_PORT}
2003-01-04 16:53:39 +01:00
POSTGRESQL_PORT?= databases/postgresql7
USE_PYTHON= yes
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
USE_REINPLACE=yes
pre-build:
@ cd ${WRKSRC} ; ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' setup.py
do-build:
@ cd ${WRKSRC} ; ${PYTHON_CMD} setup.py build
do-install:
@ cd ${WRKSRC} ; ${PYTHON_CMD} setup.py install
2000-10-03 15:52:51 +02:00
1998-07-06 19:45:35 +02:00
post-install:
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -lf \
${PYTHONPREFIX_SITELIBDIR}
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -lf \
${PYTHONPREFIX_SITELIBDIR}
.if !defined(NOPORTDOCS)
.for docfile in Announce ChangeLog
@ ${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${docfile} \
${DOCSDIR}
.endfor
.endif
1998-07-06 19:45:35 +02:00
.include <bsd.port.mk>