summaryrefslogtreecommitdiff
path: root/math/R-cran-terra
diff options
context:
space:
mode:
Diffstat (limited to 'math/R-cran-terra')
-rw-r--r--math/R-cran-terra/Makefile2
-rw-r--r--math/R-cran-terra/distinfo6
-rw-r--r--math/R-cran-terra/files/patch-i38645
3 files changed, 49 insertions, 4 deletions
diff --git a/math/R-cran-terra/Makefile b/math/R-cran-terra/Makefile
index 927ac25dac86..ba6e77decc65 100644
--- a/math/R-cran-terra/Makefile
+++ b/math/R-cran-terra/Makefile
@@ -1,5 +1,5 @@
PORTNAME= terra
-DISTVERSION= 1.8-42
+DISTVERSION= 1.8-54
CATEGORIES= math
DISTNAME= ${PORTNAME}_${DISTVERSION}
diff --git a/math/R-cran-terra/distinfo b/math/R-cran-terra/distinfo
index 4cf87c62ddc3..111d619ec6fc 100644
--- a/math/R-cran-terra/distinfo
+++ b/math/R-cran-terra/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1743845360
-SHA256 (terra_1.8-42.tar.gz) = d4590ce7cbc9421cc4008a487a0f66f7c326b6420978d5361b9481fba4d4342e
-SIZE (terra_1.8-42.tar.gz) = 1030778
+TIMESTAMP = 1748855908
+SHA256 (terra_1.8-54.tar.gz) = 3d43dafa6dd7bf8cb52cb63e740eb418fc35c7cb01731f0a637d6ee85999138c
+SIZE (terra_1.8-54.tar.gz) = 1045074
diff --git a/math/R-cran-terra/files/patch-i386 b/math/R-cran-terra/files/patch-i386
new file mode 100644
index 000000000000..ba6c983cb12d
--- /dev/null
+++ b/math/R-cran-terra/files/patch-i386
@@ -0,0 +1,45 @@
+From 891bb07da1152988225d1f1cfac75aabfa40df62 Mon Sep 17 00:00:00 2001
+From: rhijmans <r.hijmans@gmail.com>
+Date: Tue, 3 Jun 2025 07:51:14 -0700
+Subject: [PATCH] for #1846
+
+---
+ src/gdal_multidimensional.cpp | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git src/gdal_multidimensional.cpp src/gdal_multidimensional.cpp
+index 7116212a9..42049f59a 100644
+--- src/gdal_multidimensional.cpp
++++ src/gdal_multidimensional.cpp
+@@ -9,6 +9,11 @@
+ #include "file_utils.h"
+ #include "vecmath.h"
+
++#if defined(_WIN64) || defined(__x86_64__) || defined(__ppc64__) || defined(__aarch64__) || defined(__MINGW64__) || defined(__amd64__)
++ #define IS_64_BIT
++#endif
++
++
+ bool parse_ncdf_time(SpatRasterSource &s, const std::string unit, const std::string calendar, std::vector<double> raw, std::string &msg) {
+
+ std::vector<int_64> out;
+@@ -179,7 +184,7 @@ bool parse_ncdf_time(SpatRasterSource &s, const std::string unit, const std::str
+
+
+
+-#if GDAL_VERSION_MAJOR >= 3 && GDAL_VERSION_MINOR >= 4
++#if GDAL_VERSION_MAJOR >= 3 && GDAL_VERSION_MINOR >= 4 && defined(IS_64_BIT)
+
+
+ std::vector<std::string> GetArrayNames(std::shared_ptr<GDALGroup> x, bool filter) {
+@@ -804,8 +809,9 @@ bool SpatRaster::writeStopMulti() {
+ #else
+
+
++
+ bool SpatRaster::constructFromFileMulti(std::string fname, std::vector<int> subds, std::vector<std::string> subname, std::vector<std::string> drivers, std::vector<std::string> options, std::vector<int> dims, bool noflip, bool guessCRS, std::vector<std::string> domains) {
+- setError("multidim is not supported with GDAL < 3.4");
++ setError("multidim is not supported with GDAL < 3.4 or on 32 bit systems");
+ return false;
+ }
+