aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2005-09-09 13:58:19 +0800
committeradamw <adamw@FreeBSD.org>2005-09-09 13:58:19 +0800
commit1763489f08395ad66349aaecef824eae14baff49 (patch)
treebfe6149d1c8dc7ec700560aa1fd3cf134c400ee5 /databases
parent74adc68a17ca26ffeac17b92e0de050d75921c3c (diff)
downloadfreebsd-ports-gnome-1763489f08395ad66349aaecef824eae14baff49.tar.gz
freebsd-ports-gnome-1763489f08395ad66349aaecef824eae14baff49.tar.zst
freebsd-ports-gnome-1763489f08395ad66349aaecef824eae14baff49.zip
Python-dependent apps may cause metakit.py to be byte-compiled into
metakit.pyc. Remove this file if it exists. Also, utilize %%PYTHON_SITELIBDIR%%.
Diffstat (limited to 'databases')
-rw-r--r--databases/metakit/Makefile2
-rw-r--r--databases/metakit/pkg-plist5
2 files changed, 4 insertions, 3 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile
index 972f07c53762..70977aa4b87f 100644
--- a/databases/metakit/Makefile
+++ b/databases/metakit/Makefile
@@ -7,7 +7,7 @@
PORTNAME= metakit
PORTVERSION= 2.4.9.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.equi4.com/pub/mk/
diff --git a/databases/metakit/pkg-plist b/databases/metakit/pkg-plist
index 537eb3f652d9..ffa20eadc613 100644
--- a/databases/metakit/pkg-plist
+++ b/databases/metakit/pkg-plist
@@ -9,8 +9,9 @@ lib/libmk4.so.0
@unexec rm -f %D/lib/libmk4.so
%%WITH_PYTHON%%lib/libmk4py.a
%%WITH_PYTHON%%lib/libmk4py.so
-%%WITH_PYTHON%%lib/%%PYTHON_VERSION%%/site-packages/Mk4py.so
-%%WITH_PYTHON%%lib/%%PYTHON_VERSION%%/site-packages/metakit.py
+%%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 || /bin/true
%%WITH_TCL%%lib/libmk4tcl.a
%%WITH_TCL%%lib/libmk4tcl.so
%%WITH_TCL%%lib/tcl%%TCL_V%%/Mk4tcl/Mk4tcl.so