git: 8bd9df938757 - main - math/maxima: update to 5.46.0

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 19 Apr 2022 16:11:53 UTC
The branch main has been updated by fernape:

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

commit 8bd9df93875764d7254679de32e88b345143c7b0
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2022-04-15 17:19:38 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-04-19 16:09:53 +0000

    math/maxima: update to 5.46.0
    
    Changelog:
    https://sourceforge.net/p/maxima/code/ci/master/tree/changelogs/ChangeLog-5.46.md
    
     * Remove patch included in upstream distribution
     * Remove noop REINPLACE_CMD for several Makefile.in
---
 math/maxima/Makefile                            |  8 +++-----
 math/maxima/distinfo                            |  6 +++---
 math/maxima/files/extra-patch-src_maxima.system | 24 ------------------------
 math/maxima/pkg-plist                           |  1 +
 4 files changed, 7 insertions(+), 32 deletions(-)

diff --git a/math/maxima/Makefile b/math/maxima/Makefile
index 31843c0d2708..9fd365f6808d 100644
--- a/math/maxima/Makefile
+++ b/math/maxima/Makefile
@@ -1,8 +1,7 @@
 # Created by: Scott Flatman <sf@dsinw.com>
 
 PORTNAME=	maxima
-PORTVERSION=	5.45.1
-PORTREVISION=	1
+PORTVERSION=	5.46.0
 CATEGORIES=	math lisp tk
 MASTER_SITES=	SF/maxima/Maxima-source/${PORTVERSION}-source
 
@@ -73,8 +72,7 @@ SAGE_BUILD_DEPENDS=	${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
 SAGE_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-share_linearalgebra_matrixexp.lisp \
 			${PATCHDIR}/extra-patch-src_grind.lisp \
 			${PATCHDIR}/extra-patch-src_hayat.lisp \
-			${PATCHDIR}/extra-patch-src_init-cl.lisp \
-			${PATCHDIR}/extra-patch-src_maxima.system
+			${PATCHDIR}/extra-patch-src_init-cl.lisp
 SAGE_IMPLIES=		ECL
 
 SBCL_DESC=		Build with Steel Bank Common Lisp
@@ -96,7 +94,7 @@ XMAXIMA_EXTRA_PATCHES_OFF=	${PATCHDIR}/extra-patch-interfaces_Makefile.am
 
 post-patch:
 	${GREP} -Fe '.core' -l -r ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} 's;\.core;_core;g'
-	${FIND} -X ${WRKSRC}/interfaces/xmaxima -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} "s;tclsh;${TCLSH};g"
+	${REINPLACE_CMD} "s;tclsh;${TCLSH};g" ${WRKSRC}/interfaces/xmaxima/Makefile.in
 	${REINPLACE_CMD} "s;/usr;${LOCALBASE};g" ${WRKSRC}/src/intl.lisp
 
 post-patch-XMAXIMA-on:
diff --git a/math/maxima/distinfo b/math/maxima/distinfo
index 9f116de0bd46..9f8799614245 100644
--- a/math/maxima/distinfo
+++ b/math/maxima/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1644861815
-SHA256 (maxima-5.45.1.tar.gz) = fe9016276970bef214a1a244348558644514d7fdfaa4fc8b9d0e87afcbb4e7dc
-SIZE (maxima-5.45.1.tar.gz) = 39951932
+TIMESTAMP = 1650043135
+SHA256 (maxima-5.46.0.tar.gz) = 7390f06b48da65c9033e8b2f629b978b90056454a54022db7de70e2225aa8b07
+SIZE (maxima-5.46.0.tar.gz) = 47492457
diff --git a/math/maxima/files/extra-patch-src_maxima.system b/math/maxima/files/extra-patch-src_maxima.system
deleted file mode 100644
index 9d2fa125d906..000000000000
--- a/math/maxima/files/extra-patch-src_maxima.system
+++ /dev/null
@@ -1,24 +0,0 @@
---- src/maxima.system.orig	2019-10-21 03:38:59 UTC
-+++ src/maxima.system
-@@ -1,5 +1,8 @@
- ;;; -*- Lisp -*-
- 
-+(require :cmp)
-+(setf c::*compile-in-constants* t)
-+
- (in-package :cl-user)
- 
- (pushnew :cl *features*)
-@@ -75,6 +78,12 @@
- 			     ;; Convert dir/foo.fas to dir/foo.o
- 			     (make-pathname :type "o" :defaults p))
- 			 files)))
-+;; Patch borrowed from SageMath: build the Maxima library
-+	(c::build-fasl "binary-ecl/maxima" :lisp-files obj
-+			  :ld-flags
-+			  (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
-+							      (find-package "MAXIMA")))))
-+			    (if (and x (not (string= x ""))) (list x))))
- 	(c::build-program "binary-ecl/maxima" :lisp-files obj
- 			  :ld-flags
- 			  (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
diff --git a/math/maxima/pkg-plist b/math/maxima/pkg-plist
index 1a5391e3ff1c..3b543ff65e3b 100644
--- a/math/maxima/pkg-plist
+++ b/math/maxima/pkg-plist
@@ -28,6 +28,7 @@ share/emacs/site-lisp/setup-imaxima-imath.el
 share/emacs/site-lisp/smart-complete.el
 share/emacs/site-lisp/sshell.el
 share/info/maxima-index.lisp
+share/info/symplectic_ode.info
 share/metainfo/net.sourceforge.maxima.xmaxima.appdata.xml
 share/mime/packages/x-mac.xml
 share/mime/packages/x-maxima-out.xml