git: 4208524024dd - main - devel/py-pysimdjson: fix with clang 19

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sat, 04 Jan 2025 17:28:34 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4208524024dda570da048245f99326a7b402fffe

commit 4208524024dda570da048245f99326a7b402fffe
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2025-01-04 17:22:01 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2025-01-04 17:27:49 +0000

    devel/py-pysimdjson: fix with clang 19
    
    Patch borrowed from devel/simdjson (by Dimitry Andric <dim@FreeBSD.org>).
    
    PR:             280590
---
 devel/py-pysimdjson/Makefile                        |  1 +
 devel/py-pysimdjson/files/patch-simdjson_simdjson.h | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/devel/py-pysimdjson/Makefile b/devel/py-pysimdjson/Makefile
index 251e8b520092..9d8d7c5cdb98 100644
--- a/devel/py-pysimdjson/Makefile
+++ b/devel/py-pysimdjson/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pysimdjson
 PORTVERSION=	6.0.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-pysimdjson/files/patch-simdjson_simdjson.h b/devel/py-pysimdjson/files/patch-simdjson_simdjson.h
new file mode 100644
index 000000000000..1632cb6c5790
--- /dev/null
+++ b/devel/py-pysimdjson/files/patch-simdjson_simdjson.h
@@ -0,0 +1,21 @@
+--- simdjson/simdjson.h.orig	2024-02-06 03:49:45 UTC
++++ simdjson/simdjson.h
+@@ -6223,15 +6223,15 @@ class base_formatter { (public)
+   simdjson_inline void one_char(char c);
+ 
+   simdjson_inline void call_print_newline() {
+-      this->print_newline();
++      static_cast<formatter*>(this)->print_newline();
+   }
+ 
+   simdjson_inline void call_print_indents(size_t depth) {
+-      this->print_indents(depth);
++      static_cast<formatter*>(this)->print_indents(depth);
+   }
+ 
+   simdjson_inline void call_print_space() {
+-      this->print_space();
++      static_cast<formatter*>(this)->print_space();
+   }
+ 
+ protected: