<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/254149e7375bd841543bed74cacf091d1bc1c30e">https://github.com/macports/macports-ports/commit/254149e7375bd841543bed74cacf091d1bc1c30e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 254149e7375bd841543bed74cacf091d1bc1c30e
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri Apr 5 16:42:14 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> R-knnmi: new port
</span>---
R/R-knnmi/Portfile | 25 +++++++++++++++++++++++++
R/R-knnmi/files/patch-fix-eigen-altivec.diff | 20 ++++++++++++++++++++
2 files changed, 45 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-knnmi/Portfile b/R/R-knnmi/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e31f12e95a3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-knnmi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup R 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup cran bgregor knnmi 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description k-Nearest Neighbor Mutual Information estimator
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 bfde443f49a274fe088002b77e159fd9c157faee \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 3911a85c8d961aab47503ce1cc0e8c2a3ded3c9c4094037d42826e83917a8d99 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 619644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This port also uses outdated Eigen headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# which have a bug affecting PowerPC builds.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Disable broken Altivec to fix the build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-fix-eigen-altivec.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_test-append port:R-spelling \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:R-testthat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-knnmi/files/patch-fix-eigen-altivec.diff b/R/R-knnmi/files/patch-fix-eigen-altivec.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2f7749a241c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-knnmi/files/patch-fix-eigen-altivec.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/include/eigen3/Eigen/Core 2024-03-21 22:11:58.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/include/eigen3/Eigen/Core 2024-04-05 16:34:19.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -206,7 +206,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/SSE/TypeCasting.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/SSE/MathFunctions.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/SSE/Complex.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(EIGEN_VECTORIZE_ALTIVEC) || defined(EIGEN_VECTORIZE_VSX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif (defined(EIGEN_VECTORIZE_ALTIVEC) || defined(EIGEN_VECTORIZE_VSX)) && !defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/AltiVec/PacketMath.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/AltiVec/MathFunctions.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/AltiVec/Complex.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -346,7 +346,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/CoreIterators.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/ConditionEstimator.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(EIGEN_VECTORIZE_ALTIVEC) || defined(EIGEN_VECTORIZE_VSX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (defined(EIGEN_VECTORIZE_ALTIVEC) || defined(EIGEN_VECTORIZE_VSX)) && !defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/AltiVec/MatrixProduct.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined EIGEN_VECTORIZE_NEON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/Core/arch/NEON/GeneralBlockPanelKernel.h"
</span></pre><pre style='margin:0'>
</pre>