aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2026-07-12 01:18:27 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2026-07-12 01:34:11 +0000
commit845e719864e0915b92b968eefbb3f97fbc4f0712 (patch)
treeeca0719b2a28ba829398440d8e5e419c53ca70e1
parent5934ed95b5b4c8a51b70ecde62cbb96942953dda (diff)
devel/{pecl|php}-raphf2?: Convert port
A facility to manage possibly persistent resources with a comprehensible API. Provides simliar functionality like the zend_list API, but with more flexiblity and freedom. Please note that pecl infrastructure is being deprecated so create a different port which is not dependent on pecl infrastructure. This commit also removes pecl-raphf2 ports in lieu of this port and updates reverse dependency. WWW: https://github.com/m6w6/ext-raphf/
-rw-r--r--MOVED1
-rw-r--r--devel/Makefile2
-rw-r--r--devel/pecl-raphf2/Makefile23
-rw-r--r--devel/pecl-raphf2/distinfo3
-rw-r--r--devel/pecl-raphf2/pkg-descr3
-rw-r--r--devel/php-raphf/Makefile28
-rw-r--r--devel/php-raphf/distinfo3
-rw-r--r--devel/php-raphf/pkg-descr3
-rw-r--r--www/pecl-http/Makefile6
9 files changed, 39 insertions, 33 deletions
diff --git a/MOVED b/MOVED
index 68833aa122cd..1f358d0983e6 100644
--- a/MOVED
+++ b/MOVED
@@ -5493,3 +5493,4 @@ graphics/gimp-jxl-plugin||2026-07-03|Integrated into graphics/gimp-app
textproc/pecl-pspell|textproc/php-pspell|2026-07-05|Converted to standard extension from pecl extension
print/qpdfview@qt5||2026-07-10|Unflavorize, remove Qt5 flavor
print/qpdfview@qt6|print/qpdfview|2026-07-10|Unflavorize
+devel/pecl-raphf2|devel/php-raphf|2026-07-12|Converted to standard extension from pecl extension
diff --git a/devel/Makefile b/devel/Makefile
index c5bf88c7e298..d174ed10800d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4289,7 +4289,6 @@
SUBDIR += pecl-pcov
SUBDIR += pecl-protobuf
SUBDIR += pecl-psr
- SUBDIR += pecl-raphf2
SUBDIR += pecl-runkit7
SUBDIR += pecl-swoole
SUBDIR += pecl-sync
@@ -4318,6 +4317,7 @@
SUBDIR += php-libawl
SUBDIR += php-maxminddb
SUBDIR += php-pie
+ SUBDIR += php-raphf
SUBDIR += php82-ffi
SUBDIR += php82-gettext
SUBDIR += php82-intl
diff --git a/devel/pecl-raphf2/Makefile b/devel/pecl-raphf2/Makefile
deleted file mode 100644
index 0c8a5ea655d5..000000000000
--- a/devel/pecl-raphf2/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-PORTNAME= raphf
-DISTVERSION= 2.0.2
-PORTREVISION= 1
-CATEGORIES= devel
-
-MAINTAINER= bofh@FreeBSD.org
-COMMENT= Resource and persistent handles factory
-WWW= https://pecl.php.net/package/raphf
-
-LICENSE= BSD2CLAUSE
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
-DEPRECATED= pecl infrastructure is being deprecated and no consumers for this port
-EXPIRAION_DATE= 2026-09-30
-
-USES= gmake php:pecl
-IGNORE_WITH_PHP= 86
-
-PORTSCOUT= limit:^2.*
-
-CONFLICTS= pecl-raphf-1*
-
-.include <bsd.port.mk>
diff --git a/devel/pecl-raphf2/distinfo b/devel/pecl-raphf2/distinfo
deleted file mode 100644
index f097198e2d1d..000000000000
--- a/devel/pecl-raphf2/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1756637446
-SHA256 (PECL/raphf-2.0.2.tgz) = 7e782fbe7b7de2b5f1c43f49d9eb8c427649b547573564c78baaf2b8f8160ef4
-SIZE (PECL/raphf-2.0.2.tgz) = 16262
diff --git a/devel/pecl-raphf2/pkg-descr b/devel/pecl-raphf2/pkg-descr
deleted file mode 100644
index b263bf0706f3..000000000000
--- a/devel/pecl-raphf2/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-A facility to manage possibly persistent resources with a comprehensible API.
-Provides simliar functionality like the zend_list API, but with more flexiblity
-and freedom.
diff --git a/devel/php-raphf/Makefile b/devel/php-raphf/Makefile
new file mode 100644
index 000000000000..1cf7267fb26e
--- /dev/null
+++ b/devel/php-raphf/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= raphf
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.0.2
+CATEGORIES= devel
+PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= Resource and persistent handles factory
+WWW= https://github.com/m6w6/ext-raphf
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= gmake php:ext
+USE_GITHUB= yes
+GH_ACCOUNT= m6w6
+GH_PROJECT= ext-raphf
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${PHP_VER} >= 86
+ @${REINPLACE_CMD} -e 's|ZEND_RESULT_CODE|zend_result|g' \
+ ${WRKSRC}/src/php_raphf_api.c \
+ ${WRKSRC}/src/php_raphf_api.h
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/php-raphf/distinfo b/devel/php-raphf/distinfo
new file mode 100644
index 000000000000..a3d8bb01b5c5
--- /dev/null
+++ b/devel/php-raphf/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783817409
+SHA256 (m6w6-ext-raphf-v2.0.2_GH0.tar.gz) = d4f23617e518ce3041c9fe1bbe4261ff9c307f7f88dda31d90a94e959136a2fb
+SIZE (m6w6-ext-raphf-v2.0.2_GH0.tar.gz) = 48201
diff --git a/devel/php-raphf/pkg-descr b/devel/php-raphf/pkg-descr
new file mode 100644
index 000000000000..333612228df6
--- /dev/null
+++ b/devel/php-raphf/pkg-descr
@@ -0,0 +1,3 @@
+A facility to manage possibly persistent resources with a comprehensible
+API. Provides simliar functionality like the zend_list API, but with
+more flexiblity and freedom.
diff --git a/www/pecl-http/Makefile b/www/pecl-http/Makefile
index 52de6da35ecf..c896685a409c 100644
--- a/www/pecl-http/Makefile
+++ b/www/pecl-http/Makefile
@@ -1,6 +1,6 @@
PORTNAME= http
DISTVERSION= 4.3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
DISTNAME= pecl_${PORTNAME}-${PORTVERSION}
@@ -14,13 +14,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
DEPRECATED= pecl infrastructure is being deprecated and no consumers for this port
EXPIRAION_DATE= 2026-09-30
-BUILD_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/raphf.so:devel/pecl-raphf2@${PHP_FLAVOR} \
+BUILD_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/raphf.so:devel/php-raphf@${PHP_FLAVOR} \
re2c:devel/re2c \
bash>0:shells/bash
LIB_DEPENDS= libcurl.so:ftp/curl \
libevent.so:devel/libevent \
libicudata.so:devel/icu
-RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/raphf.so:devel/pecl-raphf2@${PHP_FLAVOR}
+RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/raphf.so:devel/php-raphf@${PHP_FLAVOR}
USES= php:build,pecl
USE_PHP= iconv:build zlib:build