git: 55e074dfb5c7 - 2025Q2 - math/cantor: improve port

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Mon, 12 May 2025 19:11:45 UTC
The branch 2025Q2 has been updated by makc:

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

commit 55e074dfb5c7ef64f7a3008f1f6000db2a135946
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2025-05-05 22:00:04 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2025-05-12 19:10:51 +0000

    math/cantor: improve port
    
    - Belatedly remove SAGE option after math/sage removal.
    - Do not hardcode luajit version.
    - Remove needless cmake args.
    
    (cherry picked from commit b49bc33186a66d05fe776c454255ccfcf5254c24)
---
 math/cantor/Makefile | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/math/cantor/Makefile b/math/cantor/Makefile
index 37ae7ec9ecf7..f71fc0ad3913 100644
--- a/math/cantor/Makefile
+++ b/math/cantor/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	cantor
 DISTVERSION=	${KDE_APPLICATIONS_VERSION}
+PORTREVISION=	1
 CATEGORIES=	math kde kde-applications
 
 MAINTAINER=	kde@FreeBSD.org
@@ -28,11 +29,11 @@ USE_QT=		base svg webchannel webengine \
 USE_XORG=	x11
 USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=	LUAJIT MAXIMA OCTAVE R SAGE SCILAB DOCS
+OPTIONS_DEFINE=	LUAJIT MAXIMA OCTAVE R SCILAB DOCS
 OPTIONS_SUB=	yes # R LUAJIT
 
 LUAJIT_DESC=	Build LuaJIT backend and install LuaJIT
-LUAJIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit
+LUAJIT_USES=	luajit
 LUAJIT_CMAKE_OFF=	-DWITH_LuaJIT:BOOL=FALSE
 
 MAXIMA_DESC=	Install Maxima
@@ -41,22 +42,16 @@ MAXIMA_RUN_DEPENDS=	maxima:math/maxima
 OCTAVE_DESC=	Install Octave
 OCTAVE_RUN_DEPENDS=	octave:math/octave
 
-R_DESC=		Build R backend and install R
+R_DESC=		Build R backend and install R (broken)
 R_LIB_DEPENDS=	libR.so:math/R
 # Required to set CFLAGS for -lgfortran.
 R_USES=		fortran
 R_CMAKE_OFF=	-DWITH_R:BOOL=FALSE
 R_BROKEN=	R backend fails with: /usr/include/c++/v1/__locale:1130:9: error: expected ';' at end of declaration list
 
-SAGE_DESC=	Install Sage
-SAGE_RUN_DEPENDS=	sage:math/sage
-
 SCILAB_DESC=	Install Scilab
 SCILAB_RUN_DEPENDS=	scilab:math/scilab
 
-# Disable python2 binding
-CMAKE_ON=	CMAKE_DISABLE_FIND_PACKAGE_PythonLibs
-
 post-patch:
 	${REINPLACE_CMD} -e '/FIND_PROGRAM(_GFORTRAN_EXECUTABLE/s,gfortran,${FC},' \
 		${WRKSRC}/cmake/FindR.cmake