aboutsummaryrefslogtreecommitdiff
path: root/devel/py-kqueue
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-01 22:56:21 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-01 22:56:21 +0000
commit741fc3e1664d7ae4a5c905c1d98a5d5744be4dea (patch)
tree7bd9b07379e4168df05e71e42022203efb41f417 /devel/py-kqueue
parentf49745bf18d057a9f03cb5fd1ee0eb305c3d2427 (diff)
downloadports-741fc3e1664d7ae4a5c905c1d98a5d5744be4dea.tar.gz
ports-741fc3e1664d7ae4a5c905c1d98a5d5744be4dea.zip
Add a workaround to enable building on python2.3.
Notes
Notes: svn path=/head/; revision=86162
Diffstat (limited to 'devel/py-kqueue')
-rw-r--r--devel/py-kqueue/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/py-kqueue/Makefile b/devel/py-kqueue/Makefile
index e13bea97a726..690c7345b4de 100644
--- a/devel/py-kqueue/Makefile
+++ b/devel/py-kqueue/Makefile
@@ -18,6 +18,7 @@ MAINTAINER= dwhite@FreeBSD.org
COMMENT= Python interface to kqueue(2) and kevent(2) system calls
USE_PYTHON= yes
+USE_REINPLACE= yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
.include <bsd.port.pre.mk>
@@ -29,6 +30,11 @@ IGNORE="requires new kqueue API"
IGNORE="requires new kqueue API"
.endif
+post-patch:
+.if ${PYTHON_REL} >= 230
+ @${REINPLACE_CMD} -e 's,@DEFS@,,' ${WRKSRC}/Makefile.pre.in
+.endif
+
do-configure:
@(cd ${WRKSRC} && \
make -f Makefile.pre.in boot)