mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Compile python files on installation.
PR: 59384 Submitted by: Rui Lopes <rui@ruilopes.com>
This commit is contained in:
parent
aaa01ff8f4
commit
fd9a27bf93
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94203
2 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= libxslt
|
||||
PORTVERSION= 1.1.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.1
|
||||
|
@ -48,4 +49,10 @@ pre-everything::
|
|||
@${ECHO_MSG} " WITH_MEM_DEBUG=yes Turns on memory debugging"
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
.if !defined(WITHOUT_PYTHON)
|
||||
post-install:
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
|
||||
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -31,6 +31,8 @@ lib/libxslt.a
|
|||
lib/libxslt.so
|
||||
lib/libxslt.so.2
|
||||
%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.py
|
||||
%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.pyc
|
||||
%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxslt.pyo
|
||||
%%PYTHON:%%lib/%%PYTHON_VERSION%%/site-packages/libxsltmod.so
|
||||
libdata/pkgconfig/libxslt.pc
|
||||
share/aclocal/libxslt.m4
|
||||
|
|
Loading…
Add table
Reference in a new issue