git: f5220f2de9de - main - irc/inspircd: update PCRE to PCRE2 following upstream

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Sat, 13 Jul 2024 13:33:29 UTC
The branch main has been updated by driesm:

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

commit f5220f2de9de483196ae7f2e830a7001967797ee
Author:     Fabian Wenk <fabian@wenks.ch>
AuthorDate: 2024-07-13 13:03:23 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-07-13 13:32:26 +0000

    irc/inspircd: update PCRE to PCRE2 following upstream
    
    inspircd would fail to build with the PCRE option as it was renamed.
    
    PR:     280164
---
 irc/inspircd/Makefile  | 9 +++++----
 irc/inspircd/pkg-plist | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/irc/inspircd/Makefile b/irc/inspircd/Makefile
index 5c7aa8c394dd..190dbbcdca16 100644
--- a/irc/inspircd/Makefile
+++ b/irc/inspircd/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	inspircd
 DISTVERSIONPREFIX=	v
 DISTVERSION=	4.0.1
+PORTREVISION=	1
 CATEGORIES=	irc
 
 MAINTAINER=	driesm@FreeBSD.org
@@ -49,7 +50,7 @@ PLIST_SUB=	INSPIRCD_DBDIR=${_INSPIRCD_DBDIR} \
 		INSPIRCD_USER=${USERS}
 
 OPTIONS_DEFINE=		ARGON GNUTLS JSON LDAP MAXMIND MBEDTLS MYSQL OPENSSL \
-			PCRE PGSQL POSIX RE2 SQLITE SSLREHASH SYSLOG
+			PCRE2 PGSQL POSIX RE2 SQLITE SSLREHASH SYSLOG
 OPTIONS_DEFAULT=	OPENSSL POSIX
 OPTIONS_SUB=		yes
 
@@ -61,7 +62,7 @@ MAXMIND_DESC=	Build m_geo_maxmind module
 MBEDTLS_DESC=	Build m_ssl_mbedtls module
 MYSQL_DESC=	Build m_mysql module
 OPENSSL_DESC=	Build m_ssl_openssl module
-PCRE_DESC=	Build m_regex_pcre module
+PCRE2_DESC=	Build m_regex_pcre module
 PGSQL_DESC=	Build m_pgsql module
 POSIX_DESC=	Build m_regex_posix module
 RE2_DESC=	Build m_regex_re2 module
@@ -85,8 +86,8 @@ MYSQL_USES=		mysql
 MYSQL_VARS=		EXTRAS+=m_mysql.cpp
 OPENSSL_USES=		ssl
 OPENSSL_VARS=		EXTRAS+=m_ssl_openssl.cpp
-PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
-PCRE_VARS=		EXTRAS+=m_regex_pcre.cpp
+PCRE2_LIB_DEPENDS=	libpcre.so:devel/pcre
+PCRE2_VARS=		EXTRAS+=m_regex_pcre.cpp
 PGSQL_USES=		pgsql
 PGSQL_VARS=		EXTRAS+=m_pgsql.cpp
 POSIX_VARS=		EXTRAS+=m_regex_posix.cpp
diff --git a/irc/inspircd/pkg-plist b/irc/inspircd/pkg-plist
index 546362f43bc7..91f7ab57bc09 100644
--- a/irc/inspircd/pkg-plist
+++ b/irc/inspircd/pkg-plist
@@ -223,7 +223,7 @@ libexec/inspircd/modules/m_services.so
 %%MBEDTLS%%libexec/inspircd/modules/m_ssl_mbedtls.so
 %%MYSQL%%libexec/inspircd/modules/m_mysql.so
 %%OPENSSL%%libexec/inspircd/modules/m_ssl_openssl.so
-%%PCRE%%libexec/inspircd/modules/m_regex_pcre.so
+%%PCRE2%%libexec/inspircd/modules/m_regex_pcre.so
 %%PGSQL%%libexec/inspircd/modules/m_pgsql.so
 %%POSIX%%libexec/inspircd/modules/m_regex_posix.so
 %%SQLITE%%libexec/inspircd/modules/m_sqlite3.so