diff options
author | marcus <marcus@FreeBSD.org> | 2003-11-17 21:15:40 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-11-17 21:15:40 +0000 |
commit | 28610119dc6b5bdfa58e6806642bcb230161d516 (patch) | |
tree | 4a1ce499b3265bdd3bcd64fb6ad72be887c56cd0 /textproc/libxml2 | |
parent | 0c029963bd02736bab0caaf37d70ac1a64637103 (diff) | |
download | FreeBSD-ports-28610119dc6b5bdfa58e6806642bcb230161d516.zip FreeBSD-ports-28610119dc6b5bdfa58e6806642bcb230161d516.tar.gz |
Compile Python files on installation.
PR: 59383
Submitted by: Rui Lopes <rui@ruilopes.com>
Diffstat (limited to 'textproc/libxml2')
-rw-r--r-- | textproc/libxml2/Makefile | 7 | ||||
-rw-r--r-- | textproc/libxml2/pkg-plist | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile index 869a04b..9298eea 100644 --- a/textproc/libxml2/Makefile +++ b/textproc/libxml2/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxml2 PORTVERSION= 2.6.2 +PORTREVISION= 1 CATEGORIES= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.6 @@ -79,4 +80,10 @@ post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/catalog.c ${WRKSRC}/xmlcatalog.c +.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/libxml2/pkg-plist b/textproc/libxml2/pkg-plist index adba327..30e563e 100644 --- a/textproc/libxml2/pkg-plist +++ b/textproc/libxml2/pkg-plist @@ -48,7 +48,11 @@ lib/libxml2.a lib/libxml2.so lib/libxml2.so.5 %%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/drv_libxml2.py +%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/drv_libxml2.pyc +%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/drv_libxml2.pyo %%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxml2.py +%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxml2.pyc +%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxml2.pyo %%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxml2mod.so libdata/pkgconfig/libxml-2.0.pc share/aclocal/libxml.m4 |