diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-01 22:52:43 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-01 22:52:43 +0000 |
commit | f49745bf18d057a9f03cb5fd1ee0eb305c3d2427 (patch) | |
tree | d6d412e789716e2d6aebbe9a7833874f17b64540 /devel/py-coro | |
parent | 8eba6802c607eff958ca510aa094b7ca97f2cf09 (diff) |
Notes
Diffstat (limited to 'devel/py-coro')
-rw-r--r-- | devel/py-coro/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/py-coro/Makefile b/devel/py-coro/Makefile index 0a331f06df81..2c54867b79f5 100644 --- a/devel/py-coro/Makefile +++ b/devel/py-coro/Makefile @@ -18,6 +18,7 @@ COMMENT= Python coroutine implementation BUILD_DEPENDS= ${LOCALBASE}/lib/libcoro.a:${PORTSDIR}/devel/libcoro USE_PYTHON= yes +USE_REINPLACE= yes PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} MAKE_ENV= PYTHON_VERSION=${PYTHON_VERSION:S/python//} \ EXTRA_INCLUDE="-I${LOCALBASE}/include" \ @@ -32,6 +33,18 @@ CORO_PACKAGE= __init__ coro corodns coro_fd coro_subproc corodevice \ CORO_EXAMPLES= backdoor coro_fd coro_subproc coro_ehttpd \ corohttpd +.include <bsd.port.pre.mk> + +post-patch: +.if ${PYTHON_REL} >= 230 + @${REINPLACE_CMD} -e 's,@DEFS@,,g' ${WRKSRC}/coromodule/Makefile.pre.in +.for f in coro.py coro_fd.py coro_subproc.py corodevice.py corodns.py corohttpd.py + @${REINPLACE_CMD} -e 's,yield,yield_,g' ${WRKSRC}/${f} + # yield is a reserved keyword always from python2.3. +.endfor + @${RM} -f ${WRKSRC}/*.bak +.endif + do-configure: @${COROMOD_MAKE} -f Makefile.pre.in boot ${CONFIGURE_ARGS} @@ -58,4 +71,4 @@ do-install: .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |