diff options
Diffstat (limited to 'databases/pecl-memcache')
-rw-r--r-- | databases/pecl-memcache/Makefile | 14 | ||||
-rw-r--r-- | databases/pecl-memcache/files/patch-php85 | 55 |
2 files changed, 56 insertions, 13 deletions
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 @@ -18,20 +18,8 @@ USE_CSTD= gnu89 OPTIONS_DEFINE= EXAMPLES -.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}/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 <bsd.port.post.mk> +.include <bsd.port.mk> 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 <netinet/in.h> + #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 <string.h> + + #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 |