summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorNuno Teixeira <eduardo@FreeBSD.org>2024-04-19 09:06:08 +0100
committerNuno Teixeira <eduardo@FreeBSD.org>2024-04-19 09:07:03 +0100
commit89e4a1f2c1d1997b8414e2e648c7b4b7c829b63e (patch)
tree6d06c79aff50c8cdec08f7d3f15405fa96f0efbb /math
parentdatabases/{,py-}duckdb: update 0.10.1 → 0.10.2 (diff)
math/R-cran-RcppArmadillo: Update to 0.12.8.2.1
ChangeLog: https://cran.r-project.org/web/packages/RcppArmadillo/news.html
Diffstat (limited to 'math')
-rw-r--r--math/R-cran-RcppArmadillo/Makefile4
-rw-r--r--math/R-cran-RcppArmadillo/distinfo6
-rw-r--r--math/R-cran-RcppArmadillo/files/patch-inst_tinytest_test__cube.R13
3 files changed, 19 insertions, 4 deletions
diff --git a/math/R-cran-RcppArmadillo/Makefile b/math/R-cran-RcppArmadillo/Makefile
index 35a425765a39..596a511fd90c 100644
--- a/math/R-cran-RcppArmadillo/Makefile
+++ b/math/R-cran-RcppArmadillo/Makefile
@@ -1,5 +1,5 @@
PORTNAME= RcppArmadillo
-DISTVERSION= 0.12.8.2.0
+DISTVERSION= 0.12.8.2.1
CATEGORIES= math
DISTNAME= ${PORTNAME}_${DISTVERSION}
@@ -12,6 +12,8 @@ LICENSE= GPLv2+
CRAN_DEPENDS= R-cran-Rcpp>=0.11.0:devel/R-cran-Rcpp
BUILD_DEPENDS= ${CRAN_DEPENDS}
RUN_DEPENDS= ${CRAN_DEPENDS}
+TEST_DEPENDS= R-cran-slam>0:math/R-cran-slam \
+ R-cran-tinytest>0:devel/R-cran-tinytest
USES= cran:auto-plist,compiles
diff --git a/math/R-cran-RcppArmadillo/distinfo b/math/R-cran-RcppArmadillo/distinfo
index 3065e6b32a39..028c3a800cb4 100644
--- a/math/R-cran-RcppArmadillo/distinfo
+++ b/math/R-cran-RcppArmadillo/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1712475020
-SHA256 (RcppArmadillo_0.12.8.2.0.tar.gz) = ed2158879cc9bc3bed73c720db2f267aa5247a97330841e613d5388c6f052c70
-SIZE (RcppArmadillo_0.12.8.2.0.tar.gz) = 1405964
+TIMESTAMP = 1713353953
+SHA256 (RcppArmadillo_0.12.8.2.1.tar.gz) = bc1499398c49a874ea27802ca8c6e9d61e516183a68237b61e0b3a2e65178987
+SIZE (RcppArmadillo_0.12.8.2.1.tar.gz) = 1405114
diff --git a/math/R-cran-RcppArmadillo/files/patch-inst_tinytest_test__cube.R b/math/R-cran-RcppArmadillo/files/patch-inst_tinytest_test__cube.R
new file mode 100644
index 000000000000..9382883d73bd
--- /dev/null
+++ b/math/R-cran-RcppArmadillo/files/patch-inst_tinytest_test__cube.R
@@ -0,0 +1,13 @@
+https://github.com/RcppCore/RcppArmadillo/issues/408
+
+--- inst/tinytest/test_cube.R.orig 2023-02-19 18:01:50 UTC
++++ inst/tinytest/test_cube.R
+@@ -24,7 +24,7 @@ Rcpp::sourceCpp("cpp/cube.cpp")
+ Rcpp::sourceCpp("cpp/cube.cpp")
+
+ .onWindows <- .Platform$OS.type == "windows"
+-critTol <- if (.onWindows) 1.0e-6 else 1.5e-7
++critTol <- if (.onWindows || .Machine$sizeof.long == 4 || .Machine$sizeof.long == 8) 1.0e-6 else 1.5e-7
+
+ ## test arrays
+ dbl_cube <- array(1.5:27.5, rep(3, 3))