git: f4f9a7084031 - main - devel/pecl-zookeeper: Simplify a393df7785bdc9e91e533e1ab4ba9d18c30cec6a
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Aug 2025 18:17:35 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f4f9a70840314b982097b05cf06b74d96e3efe56
commit f4f9a70840314b982097b05cf06b74d96e3efe56
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-08-12 17:57:55 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-08-12 18:15:36 +0000
devel/pecl-zookeeper: Simplify a393df7785bdc9e91e533e1ab4ba9d18c30cec6a
---
devel/pecl-zookeeper/Makefile | 10 +---------
devel/pecl-zookeeper/files/patch-php85 | 11 +++++++++++
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/devel/pecl-zookeeper/Makefile b/devel/pecl-zookeeper/Makefile
index 558f39c2a8e1..b1d8c572c3ae 100644
--- a/devel/pecl-zookeeper/Makefile
+++ b/devel/pecl-zookeeper/Makefile
@@ -18,16 +18,8 @@ USE_PHP= session:build
PORTDATA= zookeeper-api.php
-.include <bsd.port.pre.mk>
-
-post-patch:
-.if ${PHP_VER} >= 85
- @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \
- ${WRKSRC}/php_zookeeper.c
-.endif
-
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/zookeeper-api.php ${STAGEDIR}${DATADIR}/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/pecl-zookeeper/files/patch-php85 b/devel/pecl-zookeeper/files/patch-php85
index 6efa2f09aa6b..f6f5aedd927e 100644
--- a/devel/pecl-zookeeper/files/patch-php85
+++ b/devel/pecl-zookeeper/files/patch-php85
@@ -1,3 +1,14 @@
+--- php_zookeeper.c.orig 2025-01-02 06:11:14 UTC
++++ php_zookeeper.c
+@@ -39,7 +39,7 @@
+ #include <ext/standard/info.h>
+ #include <zend_extensions.h>
+
+-#include <ext/standard/php_smart_string.h>
++#include <Zend/zend_smart_string.h>
+
+ #include "php_zookeeper.h"
+ #include "php_zookeeper_private.h"
--- php_zookeeper_exceptions.c.orig 2025-01-02 06:11:14 UTC
+++ php_zookeeper_exceptions.c
@@ -39,7 +39,7 @@ void php_zk_register_exceptions()