mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
Enable build on python2.3
This commit is contained in:
parent
741fc3e166
commit
12981f83ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86163
1 changed files with 12 additions and 1 deletions
|
@ -19,5 +19,16 @@ COMMENT= A ncurses binding for Python
|
|||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${PYTHON_REL} >= 230
|
||||
.for f in _curses_wrap.c _panel_wrap.c _menu_wrap.c _form_wrap.c
|
||||
@${REINPLACE_CMD} -e '45s,^.*$$,#include "py_curses.h",' \
|
||||
${WRKSRC}/ncurses/${f}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue