summaryrefslogtreecommitdiffstats
path: root/textproc/libxslt
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-11-17 21:27:09 +0000
committermarcus <marcus@FreeBSD.org>2003-11-17 21:27:09 +0000
commitdd919bcddd19bbaf0d0620a18cec702a7ed0f1e6 (patch)
tree9a6885164331c50d36e12b790e62f1b09c86e174 /textproc/libxslt
parentf825650b117dcb482f8a6641880cf92c26f38a0f (diff)
downloadFreeBSD-ports-dd919bcddd19bbaf0d0620a18cec702a7ed0f1e6.zip
FreeBSD-ports-dd919bcddd19bbaf0d0620a18cec702a7ed0f1e6.tar.gz
Compile python files on installation.
PR: 59384 Submitted by: Rui Lopes <rui@ruilopes.com>
Diffstat (limited to 'textproc/libxslt')
-rw-r--r--textproc/libxslt/Makefile7
-rw-r--r--textproc/libxslt/pkg-plist2
2 files changed, 9 insertions, 0 deletions
diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile
index 71c7fc3..7a04fd0 100644
--- a/textproc/libxslt/Makefile
+++ b/textproc/libxslt/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libxslt
PORTVERSION= 1.1.0
+PORTREVISION= 1
CATEGORIES= textproc gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.1
@@ -48,4 +49,10 @@ pre-everything::
@${ECHO_MSG} " WITH_MEM_DEBUG=yes Turns on memory debugging"
@${ECHO_MSG} ""
+.if !defined(WITHOUT_PYTHON)
+post-install:
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/textproc/libxslt/pkg-plist b/textproc/libxslt/pkg-plist
index e5da853..38f3266 100644
--- a/textproc/libxslt/pkg-plist
+++ b/textproc/libxslt/pkg-plist
@@ -31,6 +31,8 @@ lib/libxslt.a
lib/libxslt.so
lib/libxslt.so.2
%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.py
+%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.pyc
+%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.pyo
%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxsltmod.so
libdata/pkgconfig/libxslt.pc
share/aclocal/libxslt.m4
OpenPOWER on IntegriCloud