diff --git a/databases/pecl-memcache/Makefile b/databases/pecl-memcache/Makefile index 9b32402ee944..4e9a9a40171c 100644 --- a/databases/pecl-memcache/Makefile +++ b/databases/pecl-memcache/Makefile @@ -1,37 +1,25 @@ PORTNAME= memcache PORTVERSION= 8.2 CATEGORIES= databases MAINTAINER= sunpoet@FreeBSD.org COMMENT= Memcached extension WWW= https://pecl.php.net/package/memcache \ https://github.com/websupport-sk/pecl-memcache LICENSE= PHP30 LICENSE_FILE= ${WRKSRC}/LICENSE USES= dos2unix php:pecl USE_PHP= session:build zlib:build CONFIGURE_ARGS= --with-zlib-dir=/usr USE_CSTD= gnu89 OPTIONS_DEFINE= EXAMPLES -.include - -post-patch: -.if ${PHP_VER} >= 85 - @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \ - ${WRKSRC}/src/memcache_ascii_protocol.c \ - ${WRKSRC}/src/memcache_binary_protocol.c \ - ${WRKSRC}/src/memcache_session.c \ - ${WRKSRC}/src/memcache_pool.c \ - ${WRKSRC}/src/memcache_pool.h -.endif - post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/example.php ${STAGEDIR}${EXAMPLESDIR}/ -.include +.include diff --git a/databases/pecl-memcache/files/patch-php85 b/databases/pecl-memcache/files/patch-php85 new file mode 100644 index 000000000000..8f1f700e8dc3 --- /dev/null +++ b/databases/pecl-memcache/files/patch-php85 @@ -0,0 +1,55 @@ +--- src/memcache_ascii_protocol.c.orig 2023-04-30 11:27:52 UTC ++++ src/memcache_ascii_protocol.c +@@ -24,7 +24,7 @@ + #endif + + #include "memcache_pool.h" +-#include "ext/standard/php_smart_string.h" ++#include "Zend/zend_smart_string.h" + + typedef struct mmc_ascii_request { + mmc_request_t base; /* enable cast to mmc_request_t */ +--- src/memcache_binary_protocol.c.orig 2023-04-30 11:27:52 UTC ++++ src/memcache_binary_protocol.c +@@ -34,7 +34,7 @@ + #include + #endif + #include "memcache_pool.h" +-#include "ext/standard/php_smart_string.h" ++#include "Zend/zend_smart_string.h" + + #ifdef htonll + #undef htonll +--- src/memcache_pool.c.orig 2023-04-30 11:27:52 UTC ++++ src/memcache_pool.c +@@ -35,7 +35,7 @@ + #include "ext/standard/crc32.h" + #include "ext/standard/php_var.h" + #include "ext/standard/php_string.h" +-#include "ext/standard/php_smart_string.h" ++#include "Zend/zend_smart_string.h" + #include "zend_smart_str.h" + #include "memcache_pool.h" + +--- src/memcache_pool.h.orig 2023-04-30 11:27:52 UTC ++++ src/memcache_pool.h +@@ -42,7 +42,7 @@ + #include + + #include "php.h" +-#include "ext/standard/php_smart_string_public.h" ++#include "Zend/zend_smart_string_public.h" + #include "memcache_queue.h" + + /* +--- src/memcache_session.c.orig 2023-04-30 11:27:52 UTC ++++ src/memcache_session.c +@@ -29,7 +29,7 @@ + #include "php_variables.h" + + #include "SAPI.h" +-#include "ext/standard/php_smart_string.h" ++#include "Zend/zend_smart_string.h" + #include "ext/standard/url.h" + #include "ext/session/php_session.h" + #ifdef PHP_WIN32