aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/pecl-memcache/Makefile7
-rw-r--r--databases/pecl-memcache/distinfo6
-rw-r--r--databases/pecl-memcache/files/patch-memcache.c11
3 files changed, 20 insertions, 4 deletions
diff --git a/databases/pecl-memcache/Makefile b/databases/pecl-memcache/Makefile
index 0208c666b0d4..854f0fb51bd9 100644
--- a/databases/pecl-memcache/Makefile
+++ b/databases/pecl-memcache/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= memcache
-PORTVERSION= 1.5
+PORTVERSION= 2.0.0
CATEGORIES= databases
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@@ -16,12 +16,17 @@ DIST_SUBDIR= PECL
MAINTAINER= tux@pinguru.net
COMMENT= Memcached extension
+USE_REINPLACE= yes
USE_PHP= zlib
USE_PHPEXT= yes
PHP_MODNAME= memcache
CONFIGURE_ARGS= --with-zlib-dir=/usr
+post-extract:
+ @${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|cpp|h|txt|php)" -print0 | \
+ ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
+
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${EXAMPLESDIR}
diff --git a/databases/pecl-memcache/distinfo b/databases/pecl-memcache/distinfo
index 5a115c4ee9c0..02ab0dff57bc 100644
--- a/databases/pecl-memcache/distinfo
+++ b/databases/pecl-memcache/distinfo
@@ -1,3 +1,3 @@
-MD5 (PECL/memcache-1.5.tgz) = f521dd4d3cad4ccb05d9ade4e1cc04d4
-SHA256 (PECL/memcache-1.5.tgz) = d500687fd2703266619821758f4f80aea1baea3c5e5c8370a7a80f516ca33db9
-SIZE (PECL/memcache-1.5.tgz) = 14291
+MD5 (PECL/memcache-2.0.0.tgz) = c4d9f90178438750c48d8807c97b8913
+SHA256 (PECL/memcache-2.0.0.tgz) = 3e7a17932a9e8766866d664983360cf032d36f04257bf4c21966f8d598b91f83
+SIZE (PECL/memcache-2.0.0.tgz) = 16896
diff --git a/databases/pecl-memcache/files/patch-memcache.c b/databases/pecl-memcache/files/patch-memcache.c
new file mode 100644
index 000000000000..f1e2335623d5
--- /dev/null
+++ b/databases/pecl-memcache/files/patch-memcache.c
@@ -0,0 +1,11 @@
+--- ./memcache.c.orig Wed Jan 4 23:33:18 2006
++++ ./memcache.c Wed Jan 4 23:33:25 2006
+@@ -120,7 +120,7 @@
+
+ /* {{{ macros */
+ #define MMC_PREPARE_KEY(key, key_len) \
+- php_strtr(key, key_len, "\t\r\n ", "____", 4); \
++ php_strtr(key, key_len, "\t\r\n ", "____", 4);
+
+ #if ZEND_DEBUG
+