<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e3dfc707aa83858140274ca4414ac09a5734660b">https://github.com/macports/macports-ports/commit/e3dfc707aa83858140274ca4414ac09a5734660b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new e3dfc707aa8 octave: fix sundials build, use version 6; use python 3.12
</span>e3dfc707aa8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e3dfc707aa83858140274ca4414ac09a5734660b
</span>Author: Marius Schamschula <mschamschula@gmail.com>
AuthorDate: Sat Aug 24 18:29:19 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> octave: fix sundials build, use version 6; use python 3.12
</span>---
math/octave/Portfile | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/octave/Portfile b/math/octave/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5eeb5a896b8..13f801894c4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/octave/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/octave/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ PortGroup linear_algebra 1.0
</span> name octave
version 9.2.0
set package_version 9.x.x
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories math science
license GPL-3+
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,7 +31,7 @@ checksums rmd160 df77e36534a6c279c6b51c312cf6baa3249bfe59 \
</span>
# see https://lists.gnu.org/archive/html/octave-maintainers/2016-05/msg00286.html
compiler.cxx_standard \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2017
</span>
# if there is an error bulding octave package, avoid
# error: structure has no member 'dir'
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -163,7 +163,7 @@ compiler.blacklist-append {clang <= 802}
</span> # see see https://trac.macports.org/ticket/53044
compiler.blacklist-append {*gcc-4.6}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.checks.implicit_function_declaration.whitelist-append strchr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.checks.implicit_function_declaration.whitelist-append strchr unreachable
</span>
# see https://wiki.octave.org/Building for a list of dependencies
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -310,8 +310,8 @@ configure.args-append \
</span> --enable-link-all-dependencies
# in configure.ac, listed as one of "[p]rograms used when running Octave"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append port:python311
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.python ${prefix}/bin/python3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:python312
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.python ${prefix}/bin/python3.12
</span>
# in configure.ac, listed as one of "[p]rograms used when running Octave"
depends_lib-append port:ghostscript
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -392,27 +392,34 @@ configure.args-append --without-openssl
</span> # see https://trac.macports.org/ticket/56989
configure.args-append \
--without-sundials_nvecserial \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-sundials_ida
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sundials_ida \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sundials_sunlinsolklu \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sundials_core
</span> variant sundials description {enable sundials support for solving ODEs} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set sundials_ver 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sundials_ver 6
</span> set sundials_base ${prefix}/libexec/sundials${sundials_ver}
set sundials_include ${sundials_base}/include
set sundials_lib ${sundials_base}/lib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append "CXXFLAGS=-std=gnu++17"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append \
port:sundials${sundials_ver}
compiler.cpath-append \
${sundials_include}
compiler.library_path-append \
${sundials_lib}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-delete \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-sundials_nvecserial \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --without-sundials_ida
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sundials_nvecserial \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sundials_ida \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-sundials_sunlinsolklu
</span> configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-sundials_ida-includedir=${sundials_include}/ida \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-sundials_ida-includedir=${sundials_include} \
</span> --with-sundials_ida-libdir=${sundials_lib} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-sundials_nvecserial-includedir=${sundials_include}/nvector \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-sundials_nvecserial-libdir=${sundials_lib}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-sundials_nvecserial-includedir=${sundials_include} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-sundials_nvecserial-libdir=${sundials_lib} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-sundials_sunlinsolklu-includedir=${sundials_include} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-sundials_sunlinsolklu-libdir=${sundials_lib}
</span> }
default_variants-append +sundials
</pre><pre style='margin:0'>
</pre>