git: f3f0c63972f5 - main - math/octave: Fix python function.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Fri, 10 Oct 2025 04:22:02 UTC
The branch main has been updated by stephen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f3f0c63972f512170fe10ccf9405cb6c44d3698a

commit f3f0c63972f512170fe10ccf9405cb6c44d3698a
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2025-10-10 04:20:58 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2025-10-10 04:20:58 +0000

    math/octave: Fix python function.
    
    The python function now calls ${PYTHON_CMD} instead of python3.
    
    Bump portrevision.
---
 math/octave/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/math/octave/Makefile b/math/octave/Makefile
index 634a77477d17..f7e984847317 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	octave
 PORTVERSION=	${OCTAVE_VERSION}
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	GNU
 
@@ -49,7 +50,7 @@ LIB_DEPENDS=	libamd.so:math/suitesparse-amd \
 
 USES=		charsetfix compiler:c++17-lang desktop-file-utils fortran gl \
 		gmake iconv libtool localbase:ldflags ncurses octave:env perl5 \
-		pkgconfig readline tar:xz xorg
+		pkgconfig readline tar:xz xorg python:3.0+
 USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}/${PORTVERSION}
 USE_PERL5=	build
 GNU_CONFIGURE=	yes
@@ -112,6 +113,9 @@ ATLAS_USES=	blaslapack:atlas
 
 BINARY_ALIAS=	sed=gsed
 
+post-patch:
+	${REINPLACE_CMD} -e s+python3+${PYTHON_CMD}+g ${WRKSRC}/scripts/miscellaneous/python.m
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in liboctave/liboctave.ps refcard/refcard-a4.ps \