diff options
author | antoine <antoine@FreeBSD.org> | 2014-02-04 06:52:01 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-02-04 06:52:01 +0800 |
commit | 5ce4787540f37284bc448527d4f2ce0cb56ac81f (patch) | |
tree | 8af86e2f7f768b998388dc8b5f54f393b8e7e6aa /textproc/py-libxslt | |
parent | b43bab671f7935f200cdbbdb7e95e274f423d60b (diff) | |
download | freebsd-ports-gnome-5ce4787540f37284bc448527d4f2ce0cb56ac81f.tar.gz freebsd-ports-gnome-5ce4787540f37284bc448527d4f2ce0cb56ac81f.tar.zst freebsd-ports-gnome-5ce4787540f37284bc448527d4f2ce0cb56ac81f.zip |
Fix paths inside .py[co] files
Diffstat (limited to 'textproc/py-libxslt')
-rw-r--r-- | textproc/py-libxslt/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
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" |