Lines 6-39
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= PyGreSQL |
8 |
PORTNAME= PyGreSQL |
9 |
PORTREVISION= 0 |
9 |
PORTVERSION= 3.4 |
|
|
10 |
PORTEPOCH= 1 |
10 |
CATEGORIES= databases python |
11 |
CATEGORIES= databases python |
|
|
12 |
MASTER_SITES= ftp://ftp.pygresql.org/pub/distrib/ |
11 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
13 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
|
|
14 |
EXTRACT_SUFX= .tgz |
12 |
|
15 |
|
13 |
MAINTAINER= girgen@pingpong.net |
16 |
MAINTAINER= girgen@pingpong.net |
14 |
COMMENT= A Python interface to PostgreSQL, including a DP-API 2.0 wrapper |
17 |
COMMENT= A Python interface to PostgreSQL, both classic interface and DP-API 2.0 |
15 |
|
18 |
|
16 |
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base |
19 |
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base |
17 |
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base |
20 |
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base |
18 |
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} |
21 |
LIB_DEPENDS= pq:${PORTSDIR}/${POSTGRESQL_PORT} |
19 |
|
22 |
|
20 |
POSTGRESQL_PORT?= databases/postgresql7 |
23 |
POSTGRESQL_PORT?= databases/postgresql7 |
21 |
POSTGRESQL_SUBPORT=YES |
24 |
USE_PYTHON= yes |
|
|
25 |
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py |
26 |
USE_REINPLACE=yes |
22 |
|
27 |
|
23 |
WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION} |
28 |
pre-build: |
|
|
29 |
@ cd ${WRKSRC} ; ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' setup.py |
24 |
|
30 |
|
25 |
# The PyGreSQL distfile is nowhere to be found, but exists in |
31 |
do-build: |
26 |
# postgresql-7.3 distribution so do not be alarmed if you use |
32 |
@ cd ${WRKSRC} ; ${PYTHON_CMD} setup.py build |
27 |
# a newer version of postgresql |
|
|
28 |
.include <${.CURDIR}/../postgresql73/Makefile> |
29 |
|
33 |
|
30 |
USE_PYTHON= yes |
34 |
do-install: |
31 |
CONFIGURE_ARGS= --with-python --prefix=${PREFIX} |
35 |
@ cd ${WRKSRC} ; ${PYTHON_CMD} setup.py install |
32 |
MAKE_ARGS+= -C src/interfaces/python |
|
|
33 |
CFLAGS+= -L${LOCALBASE}/lib |
34 |
MAKEFILE= GNUmakefile |
35 |
|
36 |
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py |
37 |
|
36 |
|
38 |
post-install: |
37 |
post-install: |
39 |
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -lf \ |
38 |
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -lf \ |
Lines 41-49
Link Here
|
41 |
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -lf \ |
40 |
@ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -lf \ |
42 |
${PYTHONPREFIX_SITELIBDIR} |
41 |
${PYTHONPREFIX_SITELIBDIR} |
43 |
.if !defined(NOPORTDOCS) |
42 |
.if !defined(NOPORTDOCS) |
44 |
.for docfile in Announce ChangeLog README |
43 |
.for docfile in Announce ChangeLog |
45 |
@ ${MKDIR} ${DOCSDIR} |
44 |
@ ${MKDIR} ${DOCSDIR} |
46 |
${INSTALL_DATA} ${WRKSRC}/src/interfaces/python/${docfile} \ |
45 |
${INSTALL_DATA} ${WRKSRC}/${docfile} \ |
47 |
${DOCSDIR} |
46 |
${DOCSDIR} |
48 |
.endfor |
47 |
.endfor |
49 |
.endif |
48 |
.endif |