From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1C7F013835A for ; Fri, 26 Mar 2021 00:57:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52DDAE07A7; Fri, 26 Mar 2021 00:57:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30442E07A7 for ; Fri, 26 Mar 2021 00:57:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5187633BEF1 for ; Fri, 26 Mar 2021 00:57:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2673631 for ; Fri, 26 Mar 2021 00:57:13 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1616720185.16f964dc700f819d2182707cfc49fd0bb71987b9.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/maxima/, sci-mathematics/maxima/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/maxima/files/support-new-vtk.patch sci-mathematics/maxima/maxima-5.44.0-r3.ebuild sci-mathematics/maxima/maxima-5.44.0-r4.ebuild sci-mathematics/maxima/metadata.xml X-VCS-Directories: sci-mathematics/maxima/files/ sci-mathematics/maxima/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 16f964dc700f819d2182707cfc49fd0bb71987b9 X-VCS-Branch: master Date: Fri, 26 Mar 2021 00:57:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9f41ed19-3eb5-4713-8114-487d15cc0de9 X-Archives-Hash: b32c04a4c42bdb151087d98ef6674e7d commit: 16f964dc700f819d2182707cfc49fd0bb71987b9 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Mar 25 21:09:28 2021 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Fri Mar 26 00:56:25 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16f964dc sci-mathematics/maxima: new USE-controlled dependency on sci-libs/vtk. VTK is an optional backend for plotting in Maxima that you can enable with "draw_renderer: 'vtk;". It is also NON-optional when drawing with the scene() command; however, scene() is presently broken after VTK dropped its Tcl/Tk interface. As a result, we add sci-libs/vtk only as an optional dependency to Maxima, behind USE=vtk. This requires dropping ~ppc for now. Closes: https://bugs.gentoo.org/769899 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Michael Orlitzky gentoo.org> sci-mathematics/maxima/files/support-new-vtk.patch | 26 +++++++++++++++++++ ...ma-5.44.0-r3.ebuild => maxima-5.44.0-r4.ebuild} | 29 ++++++++++++++++------ sci-mathematics/maxima/metadata.xml | 3 +++ 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/sci-mathematics/maxima/files/support-new-vtk.patch b/sci-mathematics/maxima/files/support-new-vtk.patch new file mode 100644 index 00000000000..3296ce27646 --- /dev/null +++ b/sci-mathematics/maxima/files/support-new-vtk.patch @@ -0,0 +1,26 @@ +commit c21598340008892173578718afa577f93ebfdd45 +Author: Leo Butler +Date: Sat Feb 13 16:16:20 2021 -0600 + + Fix SF Bug #3714, Update maxima to use vtk-8.2.0 + + The GlobalImmediateModeRenderingOn method was deprecated in the VTK + codebase in 2017, + + https://github.com/Kitware/VTK/commit/67e054c91063be30e8e991de489fdda3af668e22 + + This commit may change or break draw-vtk user code that relies on + older versions of vtk. + +diff --git a/share/draw/vtk.lisp b/share/draw/vtk.lisp +index 6ff0f9586..1964048d2 100644 +--- a/share/draw/vtk.lisp ++++ b/share/draw/vtk.lisp +@@ -224,7 +224,6 @@ + (defun vtkpolydatamapper-code (mn fn con) + (concatenate 'string + (format nil "~a=vtk.vtkPolyDataMapper()~%" mn) +- (format nil "~a.GlobalImmediateModeRenderingOn()~%" mn) + (if con + (format nil "~a.SetInputConnection(~a.GetOutputPort())~%" mn fn) + "") )) diff --git a/sci-mathematics/maxima/maxima-5.44.0-r3.ebuild b/sci-mathematics/maxima/maxima-5.44.0-r4.ebuild similarity index 89% rename from sci-mathematics/maxima/maxima-5.44.0-r3.ebuild rename to sci-mathematics/maxima/maxima-5.44.0-r4.ebuild index 57a63d133cc..3babe7349ba 100644 --- a/sci-mathematics/maxima/maxima-5.44.0-r3.ebuild +++ b/sci-mathematics/maxima/maxima-5.44.0-r4.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2 GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" # Supported lisps LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) @@ -24,7 +24,7 @@ CONF_FLAG=( . . . ecl ccl . ) # patch file version; . - no patch PATCH_V=( 2 1 . 4 3 1 ) -IUSE="emacs gui nls unicode X test ${LISPS[*]}" +IUSE="emacs gui nls unicode vtk X test ${LISPS[*]}" RESTRICT="!test? ( test )" # Languages @@ -34,14 +34,29 @@ for lang in ${LANGS}; do done # texlive-latexrecommended needed by imaxima for breqn.sty +# +# VTK is an optional plotting backend that can be enabled by +# running "draw_renderer: 'vtk;" within maxima. +# +# It's NON-optional for the scene() command, but that command is +# currently useless since Tcl/Tk support was dropped in sci-libs/vtk. +# Thus we include VTK only as an optional dependency. RDEPEND=" - X? ( x11-misc/xdg-utils - sci-visualization/gnuplot[gd] ) - emacs? ( >=app-editors/emacs-23.1:* + X? ( + x11-misc/xdg-utils + sci-visualization/gnuplot[gd] + vtk? ( + ${PYTHON_DEPS} + sci-libs/vtk[python,rendering,${PYTHON_SINGLE_USEDEP}] + ) + ) + emacs? ( + >=app-editors/emacs-23.1:* virtual/latex-base app-emacs/auctex app-text/ghostscript-gpl - dev-texlive/texlive-latexrecommended ) + dev-texlive/texlive-latexrecommended + ) gui? ( dev-lang/tk:0 )" # generating lisp dependencies @@ -109,7 +124,7 @@ pkg_setup() { src_prepare() { local n PATCHES v PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-1 - dont-hardcode-python ) + dont-hardcode-python support-new-vtk ) n=${#PATCHES[*]} for ((n--; n >= 0; n--)); do diff --git a/sci-mathematics/maxima/metadata.xml b/sci-mathematics/maxima/metadata.xml index 2ee0d1e396a..d87f8aea9f0 100644 --- a/sci-mathematics/maxima/metadata.xml +++ b/sci-mathematics/maxima/metadata.xml @@ -28,6 +28,9 @@ (dev-lisp/gcl) Compile maxima with Steel Bank Common Lisp (dev-lisp/sbcl) + + Support plotting with sci-libs/vtk + maxima