diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2005-11-05 15:28:11 +0800 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2005-11-05 15:28:11 +0800 |
commit | 9b31ca7603193e2701f88a214672903b71930747 (patch) | |
tree | 6abab175a187d22945647cf2c6c535c546d1eb51 /databases | |
parent | 781893d5b3fa99f87801dedc3df1da147a466df1 (diff) | |
download | freebsd-ports-gnome-9b31ca7603193e2701f88a214672903b71930747.tar.gz freebsd-ports-gnome-9b31ca7603193e2701f88a214672903b71930747.tar.zst freebsd-ports-gnome-9b31ca7603193e2701f88a214672903b71930747.zip |
Change the poing of compileall.py to check on directory from
${PYTHON_SITELIBDIR} to ${WRKSRC}/../python to avoid compileall.py to touch
other apps' *.py files or there will be many leftover of *.pyc files. Bump
the PORTREVISION.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/metakit/Makefile | 8 | ||||
-rw-r--r-- | databases/metakit/files/patch-Makefile.in | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile index 5c9cd4b2ac73..7e77ed607f08 100644 --- a/databases/metakit/Makefile +++ b/databases/metakit/Makefile @@ -7,7 +7,7 @@ PORTNAME= metakit PORTVERSION= 2.4.9.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= databases MASTER_SITES= http://www.equi4.com/pub/mk/ @@ -85,6 +85,10 @@ post-build: -lc -Wl,-soname -Wl,libmk4.so -o .libs/libmk4.so ) ${SED} -e 's|nstalled=no|installed=yes|' \ ${WRKSRC}/libmk4.la > ${WRKSRC}/.libs/libmk4.lai +.if !defined(METAKIT_WITHOUT_PYTHON) + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + ${WRKSRC}/../python +.endif post-install: @${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4.so \ @@ -94,8 +98,6 @@ 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/files/patch-Makefile.in b/databases/metakit/files/patch-Makefile.in index 97f2a69b41ef..bd0969903df2 100644 --- a/databases/metakit/files/patch-Makefile.in +++ b/databases/metakit/files/patch-Makefile.in @@ -13,7 +13,7 @@ install-python: Mk4py@MODULE_SUFFIX@ $(INSTALL_PROGRAM) Mk4py@MODULE_SUFFIX@ $(DESTDIR)$(pylibdir) - $(INSTALL_PROGRAM) $(srcdir)/../python/metakit.py $(DESTDIR)$(pylibdir) -+ $(INSTALL_SCRIPT) $(srcdir)/../python/metakit.py $(DESTDIR)$(pylibdir) ++ $(INSTALL_SCRIPT) $(srcdir)/../python/metakit.* $(DESTDIR)$(pylibdir) clean: $L rm -f *.la *.o *.lo |