diff options
author | marcus <marcus@FreeBSD.org> | 2010-05-17 05:00:04 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2010-05-17 05:00:04 +0800 |
commit | ee4ec901d2bcdf46a88f20bb159fbdc3897a8e8e (patch) | |
tree | 22d6b41e7683ee4d6869667aa4b49ecd099ddd10 /net | |
parent | be8e329a56e16be4537ff1dfe32c52aa57629f74 (diff) | |
download | freebsd-ports-gnome-ee4ec901d2bcdf46a88f20bb159fbdc3897a8e8e.tar.gz freebsd-ports-gnome-ee4ec901d2bcdf46a88f20bb159fbdc3897a8e8e.tar.zst freebsd-ports-gnome-ee4ec901d2bcdf46a88f20bb159fbdc3897a8e8e.zip |
Install compiled versions of the Python module.
Requested by: nork
Diffstat (limited to 'net')
-rw-r--r-- | net/libproxy/Makefile | 14 | ||||
-rw-r--r-- | net/libproxy/pkg-plist | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/net/libproxy/Makefile b/net/libproxy/Makefile index 597d41012444..3be4e5ffd959 100644 --- a/net/libproxy/Makefile +++ b/net/libproxy/Makefile @@ -7,7 +7,7 @@ PORTNAME= libproxy PORTVERSION= 0.2.3 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= net devel MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} @@ -28,6 +28,18 @@ PLIST_SUB+= VERSION=${PORTVERSION} .if !defined(LIBPROXY_SLAVE) USE_LDCONFIG= yes USE_PYTHON= yes + +post-build: + ${PYTHON_CMD} -Qold ${PYTHON_LIBDIR}/compileall.py \ + ${WRKSRC}/src/bindings/python + ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ + ${WRKSRC}/src/bindings/python + +post-install: + ${INSTALL_DATA} ${WRKSRC}/src/bindings/python/libproxy.pyc \ + ${PYTHON_SITELIBDIR} + ${INSTALL_DATA} ${WRKSRC}/src/bindings/python/libproxy.pyo \ + ${PYTHON_SITELIBDIR} .endif .include <bsd.port.mk> diff --git a/net/libproxy/pkg-plist b/net/libproxy/pkg-plist index a018b864b2c4..6f71b5cf89a3 100644 --- a/net/libproxy/pkg-plist +++ b/net/libproxy/pkg-plist @@ -8,6 +8,8 @@ lib/libproxy/%%VERSION%%/plugins/envvar.so lib/libproxy/%%VERSION%%/plugins/file.so libdata/pkgconfig/libproxy-1.0.pc %%PYTHON_SITELIBDIR%%/libproxy.py +%%PYTHON_SITELIBDIR%%/libproxy.pyc +%%PYTHON_SITELIBDIR%%/libproxy.pyo @dirrmtry lib/libproxy/%%VERSION%%/plugins @dirrmtry lib/libproxy/%%VERSION%% @dirrmtry lib/libproxy |