git: fffad4fbd2a6 - main - science/cantera: For OCTAVE option, fix .mex file path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Dec 2021 09:24:53 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fffad4fbd2a6e94cb8687288c14908decb536299
commit fffad4fbd2a6e94cb8687288c14908decb536299
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-12-22 09:23:37 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-12-22 09:24:51 +0000
science/cantera: For OCTAVE option, fix .mex file path
ctmethods.mexa64 is installed by the project but ctmethods.mex
is expected by octave.
---
science/cantera/Makefile | 7 ++++++-
science/cantera/pkg-plist | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/science/cantera/Makefile b/science/cantera/Makefile
index d0bbc8967f23..e187a1157252 100644
--- a/science/cantera/Makefile
+++ b/science/cantera/Makefile
@@ -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>
diff --git a/science/cantera/pkg-plist b/science/cantera/pkg-plist
index d160e74088a5..57b14f72a113 100644
--- a/science/cantera/pkg-plist
+++ b/science/cantera/pkg-plist
@@ -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