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.
This commit is contained in:
parent
781893d5b3
commit
9b31ca7603
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147342
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue