git: 60d18f076c6c - main - science/cdo: Update to 2.5.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 02 Sep 2025 18:13:44 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=60d18f076c6c68f0b3ca6c24f9360a1c4dd5020e

commit 60d18f076c6c68f0b3ca6c24f9360a1c4dd5020e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-09-02 18:00:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-09-02 18:00:30 +0000

    science/cdo: Update to 2.5.3
    
    Changes:        https://code.mpimet.mpg.de/projects/cdo/news
---
 science/cdo/Makefile              |  5 ++---
 science/cdo/distinfo              |  6 +++---
 science/cdo/files/patch-powerpc64 | 42 +++++++++++++++++++--------------------
 3 files changed, 26 insertions(+), 27 deletions(-)

diff --git a/science/cdo/Makefile b/science/cdo/Makefile
index 783eae420b68..43c111203c7c 100644
--- a/science/cdo/Makefile
+++ b/science/cdo/Makefile
@@ -1,8 +1,7 @@
 PORTNAME=	cdo
-PORTVERSION=	2.5.2
-PORTREVISION=	1
+PORTVERSION=	2.5.3
 CATEGORIES=	science
-MASTER_SITES=	https://code.mpimet.mpg.de/attachments/download/29938/ \
+MASTER_SITES=	https://code.mpimet.mpg.de/attachments/download/30034/ \
 		LOCAL/sunpoet
 
 MAINTAINER=	sunpoet@FreeBSD.org
diff --git a/science/cdo/distinfo b/science/cdo/distinfo
index fea6c9bb59e8..99abd7f5e917 100644
--- a/science/cdo/distinfo
+++ b/science/cdo/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1747715302
-SHA256 (cdo-2.5.2.tar.gz) = 3b28da72d75547663b1b9b08332bfe3f884d27742d0eeeb7f3c8b2c70f521fa9
-SIZE (cdo-2.5.2.tar.gz) = 13966550
+TIMESTAMP = 1755062464
+SHA256 (cdo-2.5.3.tar.gz) = 0145cdba866a02b3e9b269e2ff7728ce61e21761332888041f05dc033676fa08
+SIZE (cdo-2.5.3.tar.gz) = 14007141
diff --git a/science/cdo/files/patch-powerpc64 b/science/cdo/files/patch-powerpc64
index f903f05da1fc..5d6dd67a4dc3 100644
--- a/science/cdo/files/patch-powerpc64
+++ b/science/cdo/files/patch-powerpc64
@@ -1,4 +1,4 @@
---- libcdi/src/cgribexlib.c.orig	2024-02-02 10:51:13 UTC
+--- libcdi/src/cgribexlib.c.orig	2025-07-14 15:03:05 UTC
 +++ libcdi/src/cgribexlib.c
 @@ -10,7 +10,7 @@
  #pragma GCC diagnostic warning "-Wstrict-overflow"
@@ -9,31 +9,31 @@
  #pragma options nostrict
  #include <ppu_intrinsics.h>
  #endif
-@@ -766,21 +766,21 @@ pwr6_minmax_val_double_unrolled6(const double *restric
+@@ -752,21 +752,21 @@ pwr6_minmax_val_double_unrolled6(const double *restric
+     {
+       for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j)
        {
-         for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j)
-           {
--            dmin[j] = __fsel(dmin[j] - data[i + j], data[i + j], dmin[j]);
--            dmax[j] = __fsel(data[i + j] - dmax[j], data[i + j], dmax[j]);
-+	    dmin[j] = __builtin_ppc_fsel(dmin[j] - data[i + j], data[i + j], dmin[j]);
-+	    dmax[j] = __builtin_ppc_fsel(data[i + j] - dmax[j], data[i + j], dmax[j]);
-           }
+-        dmin[j] = __fsel(dmin[j] - data[i + j], data[i + j], dmin[j]);
+-        dmax[j] = __fsel(data[i + j] - dmax[j], data[i + j], dmax[j]);
++        dmin[j] = __builtin_ppc_fsel(dmin[j] - data[i + j], data[i + j], dmin[j]);
++        dmax[j] = __builtin_ppc_fsel(data[i + j] - dmax[j], data[i + j], dmax[j]);
        }
+     }
  
      for (size_t j = 0; j < residual; ++j)
-       {
--        dmin[j] = __fsel(dmin[j] - data[ofs + j], data[ofs + j], dmin[j]);
--        dmax[j] = __fsel(data[ofs + j] - dmax[j], data[ofs + j], dmax[j]);
-+	dmin[j] = __builtin_ppc_fsel(dmin[j] - data[ofs + j], data[ofs + j], dmin[j]);
-+	dmax[j] = __builtin_ppc_fsel(data[ofs + j] - dmax[j], data[ofs + j], dmax[j]);
-       }
+     {
+-      dmin[j] = __fsel(dmin[j] - data[ofs + j], data[ofs + j], dmin[j]);
+-      dmax[j] = __fsel(data[ofs + j] - dmax[j], data[ofs + j], dmax[j]);
++      dmin[j] = __builtin_ppc_fsel(dmin[j] - data[ofs + j], data[ofs + j], dmin[j]);
++      dmax[j] = __builtin_ppc_fsel(data[ofs + j] - dmax[j], data[ofs + j], dmax[j]);
+     }
  
      for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j)
-       {
--        *fmin = __fsel(*fmin - dmin[j], dmin[j], *fmin);
--        *fmax = __fsel(dmax[j] - *fmax, dmax[j], *fmax);
-+	*fmin = __builtin_ppc_fsel(*fmin - dmin[j], dmin[j], *fmin);
-+	*fmax = __builtin_ppc_fsel(dmax[j] - *fmax, dmax[j], *fmax);
-       }
+     {
+-      *fmin = __fsel(*fmin - dmin[j], dmin[j], *fmin);
+-      *fmax = __fsel(dmax[j] - *fmax, dmax[j], *fmax);
++      *fmin = __builtin_ppc_fsel(*fmin - dmin[j], dmin[j], *fmin);
++      *fmax = __builtin_ppc_fsel(dmax[j] - *fmax, dmax[j], *fmax);
+     }
    }
  #undef __UNROLL_DEPTH_1