- Fix build

This commit is contained in:
Li-Wen Hsu 2009-10-10 11:02:23 +00:00
parent 9496e58a07
commit 1efb159e83
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242628

View file

@ -19,8 +19,6 @@ COMMENT= Python wrapper for the GNUTLS library
LIB_DEPENDS= gnutls.40:${PORTSDIR}/security/gnutls
RUN_DEPENDS= ${PYCTYPES}
BROKEN= does not compile
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= python_gnutls
@ -28,8 +26,9 @@ PYDISTUTILS_PKGNAME= python_gnutls
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
post-patch:
${REINPLACE_CMD} -e "s|include_dirs=\[\]|include_dirs=\['${LOCALBASE}/include'\]|" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|library_dirs=\[\]|library_dirs=\['${LOCALBASE}/lib'\]|" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|include_dirs=.*|include_dirs=\['${LOCALBASE}/include'\],|" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|library_dirs=.*|library_dirs=\['${LOCALBASE}/lib'\],|" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|\.26||g" ${WRKSRC}/gnutls/library/functions.py
.if !defined(NOPORTEXAMPLES)
post-install: