git: 4a3d3aa4748e - main - devel/pcre2: Update to 10.40

From: Kirill Ponomarev <krion_at_FreeBSD.org>
Date: Mon, 02 May 2022 15:31:55 UTC
The branch main has been updated by krion:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a3d3aa4748e76ab3e01b3e32fdf513e6c7554b4

commit 4a3d3aa4748e76ab3e01b3e32fdf513e6c7554b4
Author:     Kirill Ponomarev <krion@FreeBSD.org>
AuthorDate: 2022-05-02 15:31:35 +0000
Commit:     Kirill Ponomarev <krion@FreeBSD.org>
CommitDate: 2022-05-02 15:31:35 +0000

    devel/pcre2: Update to 10.40
---
 devel/pcre2/Makefile                                    | 10 +++-------
 devel/pcre2/distinfo                                    |  6 +++---
 devel/pcre2/files/patch-src_sljit_sljitConfigInternal.h | 14 +++++++-------
 devel/pcre2/pkg-plist                                   |  8 ++++----
 4 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/devel/pcre2/Makefile b/devel/pcre2/Makefile
index 66ef4f909a30..c9a14faf6b57 100644
--- a/devel/pcre2/Makefile
+++ b/devel/pcre2/Makefile
@@ -1,9 +1,9 @@
 # Created by: Mark Felder <feld@FreeBSD.org>
 
 PORTNAME=	pcre2
-PORTVERSION=	10.39
-PORTREVISION=	1
+PORTVERSION=	10.40
 CATEGORIES=	devel
+MASTER_SITES=	https://github.com/PCRE2Project/${PORTNAME}/releases/download/${PORTNAME}-${PORTVERSION}/
 
 MAINTAINER=	krion@FreeBSD.org
 COMMENT=	Perl Compatible Regular Expressions library, version 2
@@ -11,13 +11,9 @@ COMMENT=	Perl Compatible Regular Expressions library, version 2
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENCE
 
-USES=		autoreconf cpe libtool pkgconfig
+USES=		autoreconf cpe libtool pkgconfig tar:bz2
 CPE_VENDOR=	pcre
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	PhilipHazel
-GH_TAGNAME=	35fee41
-
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
diff --git a/devel/pcre2/distinfo b/devel/pcre2/distinfo
index 16b8dd8d4a20..0ab535aaee6d 100644
--- a/devel/pcre2/distinfo
+++ b/devel/pcre2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1635843393
-SHA256 (PhilipHazel-pcre2-10.39-35fee41_GH0.tar.gz) = 601e9a5ebe3245711c5ba5fb597e3b4008a41fa9c10aea28d2548133754622b3
-SIZE (PhilipHazel-pcre2-10.39-35fee41_GH0.tar.gz) = 2383154
+TIMESTAMP = 1651504783
+SHA256 (pcre2-10.40.tar.bz2) = 14e4b83c4783933dc17e964318e6324f7cae1bc75d8f3c79bc6969f00c159d68
+SIZE (pcre2-10.40.tar.bz2) = 1765440
diff --git a/devel/pcre2/files/patch-src_sljit_sljitConfigInternal.h b/devel/pcre2/files/patch-src_sljit_sljitConfigInternal.h
index 96f61b289b02..7d14d71c3d86 100644
--- a/devel/pcre2/files/patch-src_sljit_sljitConfigInternal.h
+++ b/devel/pcre2/files/patch-src_sljit_sljitConfigInternal.h
@@ -1,11 +1,11 @@
---- src/sljit/sljitConfigInternal.h.orig	2022-03-25 09:54:56 UTC
+--- src/sljit/sljitConfigInternal.h.orig	2022-05-02 15:22:09 UTC
 +++ src/sljit/sljitConfigInternal.h
-@@ -283,7 +283,7 @@
- /* Instruction cache flush. */
- /****************************/
- 
+@@ -333,7 +333,7 @@ extern "C" {
+  * beware APPLE is known to have removed the code in iOS so
+  * it will need to be excempted or result in broken builds
+  */
 -#if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin)
 +#if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin && !defined SLJIT_CONFIG_PPC_32)
- #if __has_builtin(__builtin___clear_cache)
+ #if __has_builtin(__builtin___clear_cache) && !defined(__clang__)
  
- #define SLJIT_CACHE_FLUSH(from, to) \
+ /*
diff --git a/devel/pcre2/pkg-plist b/devel/pcre2/pkg-plist
index 949f0f3c8971..542541b41d3f 100644
--- a/devel/pcre2/pkg-plist
+++ b/devel/pcre2/pkg-plist
@@ -6,19 +6,19 @@ include/pcre2posix.h
 lib/libpcre2-16.a
 lib/libpcre2-16.so
 lib/libpcre2-16.so.0
-lib/libpcre2-16.so.0.10.4
+lib/libpcre2-16.so.0.11.0
 lib/libpcre2-32.a
 lib/libpcre2-32.so
 lib/libpcre2-32.so.0
-lib/libpcre2-32.so.0.10.4
+lib/libpcre2-32.so.0.11.0
 lib/libpcre2-8.a
 lib/libpcre2-8.so
 lib/libpcre2-8.so.0
-lib/libpcre2-8.so.0.10.4
+lib/libpcre2-8.so.0.11.0
 lib/libpcre2-posix.a
 lib/libpcre2-posix.so
 lib/libpcre2-posix.so.3
-lib/libpcre2-posix.so.3.0.1
+lib/libpcre2-posix.so.3.0.2
 libdata/pkgconfig/libpcre2-16.pc
 libdata/pkgconfig/libpcre2-32.pc
 libdata/pkgconfig/libpcre2-8.pc