- Fix make package when py-distribute or py-setuptools were installed

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-02-01 02:15:09 +00:00
parent 05622c2782
commit 1274d0a8a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311345

View File

@ -22,8 +22,9 @@ PYDISTUTILS_EGGINFO= ${PORTNAME}-${PORTVERSION:R}-py${PYTHON_VER}.egg-info
post-patch:
@${REINPLACE_CMD} \
-e 's|setuptools|do_not_use_&|' \
-e "s|^\(extra_compile_args = \).*$$|\1\['-I${LOCALBASE}/include'\]|" \
-e "s|^\(extra_link_args = \).*$$|\1\['-L${LOCALBASE}/lib', '-lleveldb'\]|" \
${WRKSRC}/setup.py
${WRKSRC}/${PYSETUP}
.include <bsd.port.mk>