1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

science/cantera: For OCTAVE option, fix .mex file path

ctmethods.mexa64 is installed by the project but ctmethods.mex
is expected by octave.
This commit is contained in:
Yuri Victorovich 2021-12-22 01:23:37 -08:00
parent 95bc4e9249
commit fffad4fbd2
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= cantera
DISTVERSIONPREFIX= v
DISTVERSION= 2.5.1-611
PORTREVISION= 1
PORTREVISION= 2
DISTVERSIONSUFFIX= -gc4d6ecc15
CATEGORIES= science # chemistry physics
@ -73,4 +73,9 @@ do-install:
do-install-PYTHON-on:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/_cantera.cpython-${PYTHON_VER:S/.//}.so
post-install-OCTAVE-on: # adjust .mex file name
@${MV} \
${STAGEDIR}${PREFIX}/lib/cantera/matlab/toolbox/ctmethods.mexa64 \
${STAGEDIR}${PREFIX}/lib/cantera/matlab/toolbox/ctmethods.mex
.include <bsd.port.mk>

View File

@ -580,7 +580,7 @@ include/cantera/zerodim.h
%%OCTAVE%%lib/cantera/matlab/toolbox/canteraVersion.m
%%OCTAVE%%lib/cantera/matlab/toolbox/ck2cti.m
%%OCTAVE%%lib/cantera/matlab/toolbox/cleanup.m
%%OCTAVE%%lib/cantera/matlab/toolbox/ctmethods.mexa64
%%OCTAVE%%lib/cantera/matlab/toolbox/ctmethods.mex
%%OCTAVE%%lib/cantera/matlab/toolbox/ctpath.m
%%OCTAVE%%lib/cantera/matlab/toolbox/faradayconstant.m
%%OCTAVE%%lib/cantera/matlab/toolbox/gasconstant.m