- Install missing script when WITH_PYTHON is defined
PR: ports/117088 Submitted by: Max Brazhnikov <makc at issp.ac.ru> (maintainer)
This commit is contained in:
parent
c08b1b7c9d
commit
7c4d277167
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201384
@ -70,6 +70,9 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|loadInitFile("qtiplotrc")|loadInitFile("${DATADIR}/qtiplotrc")|' \
|
||||
${WRKSRC}/${PORTNAME}/src/PythonScripting.cpp
|
||||
${REINPLACE_CMD} -e \
|
||||
'/^sys.path.append/s|"\."|"${DATADIR}"|' \
|
||||
${WRKSRC}/${PORTNAME}/qtiplotrc.py
|
||||
.else
|
||||
@${REINPLACE_CMD} \
|
||||
-e "s/^SCRIPTING_LANGS += Python//" \
|
||||
@ -109,9 +112,11 @@ do-install:
|
||||
${DATADIR}/fitPlugins/libfitRational1.so
|
||||
${INSTALL_DATA} ${WRKSRC}/qtiplot_logo.png ${DATADIR}/qtiplot.png
|
||||
.if defined(WITH_PYTHON)
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/qtiplotrc.py ${DATADIR}/qtiplotrc.py
|
||||
@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('qtiplotrc.py')"
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/qtiplotrc.pyc ${DATADIR}/qtiplotrc.pyc
|
||||
.for s in qtiplotrc.py qtiUtil.py
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s} ${DATADIR}/${s}
|
||||
@cd ${WRKSRC}/qtiplot && ${PYTHON_CMD} -c "import py_compile; py_compile.compile('${s}')"
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${s}c ${DATADIR}/${s}c
|
||||
.endfor
|
||||
.endif
|
||||
.if !defined(WITHOUT_NLS)
|
||||
(cd ${WRKSRC}/qtiplot/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
|
||||
|
@ -3,6 +3,8 @@ bin/qtiplot
|
||||
%%DATADIR%%/fitPlugins/libfitRational1.so
|
||||
%%DATADIR%%/qtiplot
|
||||
%%DATADIR%%/qtiplot.png
|
||||
%%PYTHON%%%%DATADIR%%/qtiUtil.py
|
||||
%%PYTHON%%%%DATADIR%%/qtiUtil.pyc
|
||||
%%PYTHON%%%%DATADIR%%/qtiplotrc.py
|
||||
%%PYTHON%%%%DATADIR%%/qtiplotrc.pyc
|
||||
%%NLS%%%%DATADIR%%/translations/qtiplot_de.qm
|
||||
|
Loading…
Reference in New Issue
Block a user