1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- Patch out $ python - print site.sitedirs invocation. According to perky:

"sys.sitedirs is not for external reference, it's even hidden and not
  available in Python 2.4" and replace it with ${PYTHON_SITELIBDIR}.
  This fixes installation of python module, which would otherwise always
  end up in /usr/X11R6/lib/python2.3/site-packages.
This commit is contained in:
Pav Lucistnik 2004-07-13 07:41:30 +00:00
parent 4e8d069e3f
commit 08f9917904
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113533

View File

@ -74,5 +74,6 @@ post-patch:
@${REINPLACE_CMD} -E 's,(\$$\(PYTHON\)),CFLAGS="" \1,g' ${WRKSRC}/python/Makefile
@# Avoid rebuiling man pages
@${REINPLACE_CMD} -e 's,all man,all,g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|`$$python_bin -c "import site; print site.sitedirs\[0\]"`|"${PYTHON_SITELIBDIR}"|' ${WRKSRC}/configure
.include <bsd.port.post.mk>