Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2014 20:55:17 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355087 - in head/devel: . pecl-memoize
Message-ID:  <201405242055.s4OKtHeX003595@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat May 24 20:55:16 2014
New Revision: 355087
URL: http://svnweb.freebsd.org/changeset/ports/355087
QAT: https://qat.redports.org/buildarchive/r355087/

Log:
  - Add pecl-memoize 0.2.0
  - While I'm here:
    - Convert to new options helper
    - Use USE_PHP=apc
  
  php-memoize is a PHP extension which transparently caches PHP functions, much
  like Perl's Memoize module.
  
  It comes with the following storage modules which can be enabled at compile
  time:
  
  - memory: Simple per-request module with no dependencies.
            Since this is a per-request cache, neither TTLs specified in the
            `memoize()` call or `memoize.default_ttl` are used.
  - memcached: Uses libmemcached or the memcached PHP extension
  - apc: Uses the APC PHP extension
  
  WWW: http://pecl.php.net/package/memoize
  
  PR:		ports/190098
  Submitted by:	Gasol Wu <gasol.wu@gmail.com>

Added:
  head/devel/pecl-memoize/
  head/devel/pecl-memoize/Makefile   (contents, props changed)
  head/devel/pecl-memoize/distinfo   (contents, props changed)
  head/devel/pecl-memoize/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat May 24 20:54:16 2014	(r355086)
+++ head/devel/Makefile	Sat May 24 20:55:16 2014	(r355087)
@@ -3338,6 +3338,7 @@
     SUBDIR += pecl-judy
     SUBDIR += pecl-libevent
     SUBDIR += pecl-mcve
+    SUBDIR += pecl-memoize
     SUBDIR += pecl-msgpack
     SUBDIR += pecl-ncurses
     SUBDIR += pecl-newt

Added: head/devel/pecl-memoize/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pecl-memoize/Makefile	Sat May 24 20:55:16 2014	(r355087)
@@ -0,0 +1,34 @@
+# Created by: Gasol Wu <gasol.wu@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	memoize
+PORTVERSION=	0.2.0
+CATEGORIES=	devel
+MASTER_SITES=	http://pecl.php.net/get/
+PKGNAMEPREFIX=	pecl-
+DIST_SUBDIR=	PECL
+
+MAINTAINER=	gasol.wu@gmail.com
+COMMENT=	PHP extension which transparently caches PHP functions
+
+LICENSE=	PHP301
+
+USES=		tar:tgz
+USE_PHP=	yes
+USE_PHPEXT=	yes
+CONFIGURE_ARGS=	--enable-memoize
+
+OPTIONS_DEFINE=	APC MEMCACHED MEMORY
+OPTIONS_DEFAULT=MEMORY
+APC_DESC=	Enable memoize APC module
+MEMCACHED_DESC=	Enable memcached storage module
+MEMORY_DESC=	Enable the memoize memory storage module
+
+APC_CONFIGURE_ON=	--enable-memoize-apc
+APC_USE=		PHP=apc
+MEMCACHED_CONFIGURE_ON=	--with-memoize-memcached
+MEMCACHED_BUILD_DEPENDS=libmemcached>=0:${PORTSDIR}/databases/libmemcached
+MEMCACHED_RUN_DEPENDS=	libmemcached>=0:${PORTSDIR}/databases/libmemcached
+MEMORY_CONFIGURE_OFF=	--disable-memoize-memory
+
+.include <bsd.port.mk>

Added: head/devel/pecl-memoize/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pecl-memoize/distinfo	Sat May 24 20:55:16 2014	(r355087)
@@ -0,0 +1,2 @@
+SHA256 (PECL/memoize-0.2.0.tgz) = 9da97c4b8edbb3452b3e9f429d5cf51c13692b9be90d43cf36d213d073bd39c9
+SIZE (PECL/memoize-0.2.0.tgz) = 13016

Added: head/devel/pecl-memoize/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pecl-memoize/pkg-descr	Sat May 24 20:55:16 2014	(r355087)
@@ -0,0 +1,13 @@
+php-memoize is a PHP extension which transparently caches PHP functions, much
+like Perl's Memoize module.
+
+It comes with the following storage modules which can be enabled at compile
+time:
+
+- memory: Simple per-request module with no dependencies.
+          Since this is a per-request cache, neither TTLs specified in the
+          `memoize()` call or `memoize.default_ttl` are used.
+- memcached: Uses libmemcached or the memcached PHP extension
+- apc: Uses the APC PHP extension
+
+WWW: http://pecl.php.net/package/memoize



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405242055.s4OKtHeX003595>