git: 8aca7f656be2 - main - www/php-solr: update to 2.9.3, also move to new php extension standard.

Vanilla I. Shu <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by vanilla:

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

commit 8aca7f656be243f451fdad17953db287e1b90d27
Author:     Vanilla I. Shu <[email protected]>
AuthorDate: 2026-08-17 03:24:22 +0000
Commit:     Vanilla I. Shu <[email protected]>
CommitDate: 2026-08-17 03:26:12 +0000

    www/php-solr: update to 2.9.3, also move to new php extension standard.
    
    PR:             297611
---
 MOVED                                     |  1 +
 www/Makefile                              |  2 +-
 www/pecl-solr/distinfo                    |  3 ---
 www/pecl-solr/files/extra-src__php_solr.h | 11 -----------
 www/{pecl-solr => php-solr}/Makefile      | 19 ++++++++-----------
 www/php-solr/distinfo                     |  3 +++
 www/{pecl-solr => php-solr}/pkg-descr     |  0
 7 files changed, 13 insertions(+), 26 deletions(-)

diff --git a/MOVED b/MOVED
index 6600f2fc39be..a44c02fc0002 100644
--- a/MOVED
+++ b/MOVED
@@ -5553,3 +5553,4 @@ biology/py-macs2||2026-08-11|Upstream end of life, depends on expired lang/cytho
 www/lua-stream-nginx-module|www/nginx-module-lua-stream|2026-08-14|Renamed to follow the nginx-module-* naming scheme
 devel/prjpeppercorn112||2026-08-15|No longer supported by devel/nextpnr
 devel/py-yg.lockfile|devel/py-fasteners|2026-08-16|Has expired: Upstream inactive since 8+ years, please use devel/py-fasteners instead
+www/pecl-solr|www/php-solr|2026-08-17|Converted to standard extension from pecl extension
diff --git a/www/Makefile b/www/Makefile
index b807784824d2..8ed7e0e71cef 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1455,7 +1455,6 @@
     SUBDIR += pear-UDDI
     SUBDIR += pear-XML_GRDDL
     SUBDIR += pear-twig
-    SUBDIR += pecl-solr
     SUBDIR += pecl-yaf
     SUBDIR += pecl-yar
     SUBDIR += peersuite
@@ -1465,6 +1464,7 @@
     SUBDIR += phalcon
     SUBDIR += php-google-api-php-client
     SUBDIR += php-http
+    SUBDIR += php-solr
     SUBDIR += php82-opcache
     SUBDIR += php82-session
     SUBDIR += php82-tidy
diff --git a/www/pecl-solr/distinfo b/www/pecl-solr/distinfo
deleted file mode 100644
index f02869053cf2..000000000000
--- a/www/pecl-solr/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1762715154
-SHA256 (PECL/solr-2.8.1.tgz) = 1284d25f0314009abf7187d79e4bdb53a28ca63436c2c3dd8767fc4880810c91
-SIZE (PECL/solr-2.8.1.tgz) = 627662
diff --git a/www/pecl-solr/files/extra-src__php_solr.h b/www/pecl-solr/files/extra-src__php_solr.h
deleted file mode 100644
index 00fde3640747..000000000000
--- a/www/pecl-solr/files/extra-src__php_solr.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/php_solr.h.orig	2025-11-11 22:20:54.799208000 +0800
-+++ src/php_solr.h	2025-11-11 22:21:15.328071000 +0800
-@@ -126,7 +126,7 @@
- #define solr_ce_Serializable zend_ce_serializable
- #define solr_ce_ArrayAccess  zend_ce_arrayaccess
- #define solr_ce_Iterator     zend_ce_iterator
--#define solr_ce_Exception    zend_exception_get_default()
-+#define solr_ce_Exception    zend_ce_exception
- /* }}} */
- 
- extern zend_object_handlers solr_object_handlers;
diff --git a/www/pecl-solr/Makefile b/www/php-solr/Makefile
similarity index 57%
rename from www/pecl-solr/Makefile
rename to www/php-solr/Makefile
index b1fbf607b969..93d188f0d210 100644
--- a/www/pecl-solr/Makefile
+++ b/www/php-solr/Makefile
@@ -1,28 +1,25 @@
 PORTNAME=	solr
-PORTVERSION=	2.8.1
-PORTREVISION=	1
+PORTVERSION=	2.9.3
 CATEGORIES=	www
+PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}
 
 MAINTAINER=	[email protected]
 COMMENT=	PHP extension for Apache Solr
-WWW=		https://pecl.php.net/package/solr
+WWW=		https://github.com/php/pecl-search_engine-solr
 
 LICENSE=	PHP301
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libcurl.so:ftp/curl
 
-USES=		gnome php:build,pecl pkgconfig
+USES=		gnome php:ext pkgconfig
 USE_GNOME=	libxml2
 IGNORE_WITH_PHP=	86
+USE_GITHUB=	yes
+GH_ACCOUNT=	php
+GH_PROJECT= 	pecl-search_engine-solr
 
 CONFIGURE_ARGS=	LIBXML_CFLAGS=-I${LOCALBASE}/include/libxml2 \
 		LIBXML_LIBS=-L${LOCALBASE}/include/libxml2
 
-.include <bsd.port.pre.mk>
-
-.if ${PHP_VER} >= 85
-EXTRA_PATCHES=	${PATCHDIR}/extra-src__php_solr.h
-.  endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/php-solr/distinfo b/www/php-solr/distinfo
new file mode 100644
index 000000000000..dd4497ebcec2
--- /dev/null
+++ b/www/php-solr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1786932418
+SHA256 (php-pecl-search_engine-solr-2.9.3_GH0.tar.gz) = 73cc53870f712142aafc6649884269a25da1ac861322402d132df5d0aea76b47
+SIZE (php-pecl-search_engine-solr-2.9.3_GH0.tar.gz) = 637170
diff --git a/www/pecl-solr/pkg-descr b/www/php-solr/pkg-descr
similarity index 100%
rename from www/pecl-solr/pkg-descr
rename to www/php-solr/pkg-descr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.