aboutsummaryrefslogtreecommitdiffstats
path: root/databases/metakit
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2005-11-05 03:11:51 +0800
committeradamw <adamw@FreeBSD.org>2005-11-05 03:11:51 +0800
commit5183c40cd098cc7eb0a04daddc577390136fbfd5 (patch)
treed28d70626f78c53e50669eb5f76d983fa53c37da /databases/metakit
parent49beac3c6e5c9ba1f6ac37832c90070ee23086ce (diff)
downloadfreebsd-ports-gnome-5183c40cd098cc7eb0a04daddc577390136fbfd5.tar.gz
freebsd-ports-gnome-5183c40cd098cc7eb0a04daddc577390136fbfd5.tar.zst
freebsd-ports-gnome-5183c40cd098cc7eb0a04daddc577390136fbfd5.zip
Force generation of byte-compiled metakit python library so that kris
doesn't cry when he reads his email ;;)
Diffstat (limited to 'databases/metakit')
-rw-r--r--databases/metakit/Makefile4
-rw-r--r--databases/metakit/pkg-plist2
2 files changed, 4 insertions, 2 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index e36b0e016e76..5c9cd4b2ac73 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -7,7 +7,7 @@
PORTNAME= metakit
PORTVERSION= 2.4.9.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://www.equi4.com/pub/mk/
@@ -94,6 +94,8 @@ post-install:
.if !defined(METAKIT_WITHOUT_PYTHON)
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4py.a ${PREFIX}/lib
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4py.so ${PREFIX}/lib
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
+ ${PYTHON_SITELIBDIR}
.endif
.if defined(METAKIT_WITH_TCL83) || defined(METAKIT_WITH_TCL84)
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4tcl.a ${PREFIX}/lib
diff --git a/databases/metakit/pkg-plist b/databases/metakit/pkg-plist
index 0668e586b4fb..605ad747a0e5 100644
--- a/databases/metakit/pkg-plist
+++ b/databases/metakit/pkg-plist
@@ -11,7 +11,7 @@ lib/libmk4.so.0
%%WITH_PYTHON%%lib/libmk4py.so
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/Mk4py.so
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.py
-%%WITH_PYTHON%%@unexec /bin/rm %D/%%PYTHON_SITELIBDIR%%/metakit.pyc 2>/dev/null || /usr/bin/true
+%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/metakit.pyc
%%WITH_TCL%%lib/libmk4tcl.a
%%WITH_TCL%%lib/libmk4tcl.so
%%WITH_TCL%%lib/tcl%%TCL_V%%/Mk4tcl/Mk4tcl.so