summaryrefslogtreecommitdiff
path: root/databases/py-PyGreSQL/Makefile
diff options
context:
space:
mode:
authorJohann Visagie <wjv@FreeBSD.org>2002-10-23 14:33:47 +0000
committerJohann Visagie <wjv@FreeBSD.org>2002-10-23 14:33:47 +0000
commit6cd163c1f8d222b22ff03ac91e82be8fc7d7a154 (patch)
treecc2d5922e6b192d81fb96c33a30a89ab97951051 /databases/py-PyGreSQL/Makefile
parentFix pre-build target (I messed it up with my first PR a long time ago.) (diff)
- Make this port a subport of databases/postgresql7, since the development of
PyGreSQL has been folded into that of PostgreSQL itself. - This update effectivly takes PyGreSQL to version 3.3, which is distributed with PostgreSQL 7.2.3. - Byte-compile installed modules to ensure clean deinstallation. - Install documentation under $DOCSDIR. - Remove Makefile from $FILESDIR - not required anymore. - Remove patch-pgdb.py - not required any longer. - Add two patches to ensure installation is $PREFIX-clean. - Update pkg-comment and pkg-descr to reflect the current status of the port.
Notes
Notes: svn path=/head/; revision=68661
Diffstat (limited to 'databases/py-PyGreSQL/Makefile')
-rw-r--r--databases/py-PyGreSQL/Makefile34
1 files changed, 19 insertions, 15 deletions
diff --git a/databases/py-PyGreSQL/Makefile b/databases/py-PyGreSQL/Makefile
index cce6e9802056..12768f05fd94 100644
--- a/databases/py-PyGreSQL/Makefile
+++ b/databases/py-PyGreSQL/Makefile
@@ -6,33 +6,37 @@
#
PORTNAME= PyGreSQL
-PORTVERSION= 3.1
-PORTREVISION= 2
CATEGORIES= databases python
-MASTER_SITES= ftp://ftp.druid.net/pub/distrib/
-PKGNAMEPREFIX= py-
-DISTNAME= PyGreSQL-${PORTVERSION}
-EXTRACT_SUFX= .tgz
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
+POSTGRESQL_SUBPORT= YES
+.include <${.CURDIR}/../postgresql7/Makefile>
+
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
USE_PYTHON= yes
-MAKE_ENV= PYTHON_VERSION=${PYTHON_VERSION} \
- PYTHON_LIBDIR=${PYTHON_LIBDIR} \
- PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
- PYTHON=${PYTHON_CMD} \
- LN="${LN}" SETENV="${SETENV}" MKDIR="${MKDIR}"
+CONFIGURE_ARGS= --with-python --prefix=${PREFIX}
+MAKE_ARGS+= -C src/interfaces/python
+CFLAGS+= -L${LOCALBASE}/lib
+MAKEFILE= GNUmakefile
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
-
post-install:
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/README.PyGreSQL
+ @ ${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 README
+ @ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/python/${docfile} \
+ ${DOCSDIR}
+.endfor
+.endif
.include <bsd.port.mk>