From 5ce4787540f37284bc448527d4f2ce0cb56ac81f Mon Sep 17 00:00:00 2001 From: antoine Date: Mon, 3 Feb 2014 22:52:01 +0000 Subject: Fix paths inside .py[co] files --- textproc/py-libxslt/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'textproc/py-libxslt') diff --git a/textproc/py-libxslt/Makefile b/textproc/py-libxslt/Makefile index a7280478cf5e..99fa4d5b774e 100644 --- a/textproc/py-libxslt/Makefile +++ b/textproc/py-libxslt/Makefile @@ -24,7 +24,9 @@ DOCSDIR= ${PREFIX}/share/doc/py-libxslt EXAMPLESDIR= ${PREFIX}/share/examples/py-libxslt post-install: - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${STAGEDIR}${PYTHON_SITELIBDIR} - @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${STAGEDIR}${PYTHON_SITELIBDIR} + @cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} + @cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ + -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} .include "${MASTERDIR}/Makefile" -- cgit