<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/396b0a08af12b887234546df53e1ea702192b91f">https://github.com/macports/macports-ports/commit/396b0a08af12b887234546df53e1ea702192b91f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 396b0a08af12b887234546df53e1ea702192b91f
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Sat Apr 6 01:59:00 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> flint: switch to autotools as recommended by upstream
</span>---
math/flint/Portfile | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/flint/Portfile b/math/flint/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d6fed032fc1..f3b5e39a851 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/flint/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/flint/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,6 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup cmake 1.1
</span> PortGroup muniversal 1.1
name flint
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,26 +19,32 @@ checksums rmd160 43984af922f29d8901f9fc1c42c2274fd9cc484a \
</span> sha256 fdb3a431a37464834acff3bdc145f4fe8d0f951dd5327c4c6f93f4cbac5c2700 \
size 8098136
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Autotools are explicitly preferred by upstream
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# for anything but Windows. As of now (2024.04),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# CMake implementation has a number of bugs,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and there is no interest to address them;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# instead, autotools build is advised, and it works.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/flintlib/flint/issues/1905
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/flintlib/flint/pull/1906
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/flintlib/flint/issues/1907
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> compiler.cxx_standard 2011
compiler.thread_local_storage yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set python_branch 3.11
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set python_version [string map {. ""} ${python_branch}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append port:python${python_version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/${python_branch}/bin/python${python_branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_lib-append port:gmp \
port:mpfr \
port:ntl
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append -DWITH_NTL=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# We do not want pre-built ports with -march.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --disable-arch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append --with-ntl
</span> # NTL requires C++11
configure.cxxflags-append -std=c++11
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant tests description {Enable tests} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DBUILD_TESTING=ON
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.args-append DYLD_LIBRARY_PATH=${cmake.build_dir}/lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target check
</span>
livecheck.url ${homepage}/downloads.html
</pre><pre style='margin:0'>
</pre>