From owner-svn-ports-head@FreeBSD.ORG Fri Oct 25 18:33:36 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9C3809E3; Fri, 25 Oct 2013 18:33:36 +0000 (UTC) (envelope-from wg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8916E2926; Fri, 25 Oct 2013 18:33:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9PIXaBU080482; Fri, 25 Oct 2013 18:33:36 GMT (envelope-from wg@svn.freebsd.org) Received: (from wg@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9PIXZo1080477; Fri, 25 Oct 2013 18:33:35 GMT (envelope-from wg@svn.freebsd.org) Message-Id: <201310251833.r9PIXZo1080477@svn.freebsd.org> From: William Grzybowski Date: Fri, 25 Oct 2013 18:33:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331622 - in head/devel: . php-memoize X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 18:33:36 -0000 Author: wg Date: Fri Oct 25 18:33:35 2013 New Revision: 331622 URL: http://svnweb.freebsd.org/changeset/ports/331622 Log: devel/php-memoize: PHP extension which transparently caches PHP functions 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: https://github.com/arraypad/php-memoize PR: ports/183270 Submitted by: Gasol Wu Added: head/devel/php-memoize/ head/devel/php-memoize/Makefile (contents, props changed) head/devel/php-memoize/distinfo (contents, props changed) head/devel/php-memoize/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Oct 25 18:25:55 2013 (r331621) +++ head/devel/Makefile Fri Oct 25 18:33:35 2013 (r331622) @@ -3270,6 +3270,7 @@ SUBDIR += perltidy SUBDIR += php-java-bridge SUBDIR += php-libawl + SUBDIR += php-memoize SUBDIR += php-xdebug SUBDIR += php5-blitz SUBDIR += php5-blitz-devel Added: head/devel/php-memoize/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-memoize/Makefile Fri Oct 25 18:33:35 2013 (r331622) @@ -0,0 +1,49 @@ +# Created by: Gasol Wu +# $FreeBSD$ + +PORTNAME= memoize +PORTVERSION= 0.2.0b1 +CATEGORIES= devel +PKGNAMEPREFIX= php- + +MAINTAINER= gasol.wu@gmail.com +COMMENT= PHP extension which transparently caches PHP functions + +USE_GITHUB= yes +GH_ACCOUNT= arraypad +GH_PROJECT= ${UNIQUENAME} +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= cff0a58 + +USE_PHP= yes +USE_PHPEXT= yes +USE_PHPIZE= yes +USE_PHPBUILD= 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 + +NO_STAGE= yes + +.include + +.if ${PORT_OPTIONS:MAPC} +CONFIGURE_ARGS+= --enable-memoize-apc +BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:${PORTSDIR}/www/pecl-APC +.endif + +.if ${PORT_OPTIONS:MMEMCACHED} +CONFIGURE_ARGS+= --with-memoize-memcached +BUILD_DEPENDS+= libmemcached>0:${PORTSDIR}/databases/libmemcached +RUN_DEPENDS+= libmemcached>0:${PORTSDIR}/databases/libmemcached +.endif + +.if empty(PORT_OPTIONS:MMEMORY) +CONFIGURE_ARGS+= --disable-memoize-memory +.endif + +.include Added: head/devel/php-memoize/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-memoize/distinfo Fri Oct 25 18:33:35 2013 (r331622) @@ -0,0 +1,2 @@ +SHA256 (memoize-0.2.0b1.tar.gz) = c55bd2c0e684dfa35115250787065a79dfab9139499c509298c5fa3c76b51889 +SIZE (memoize-0.2.0b1.tar.gz) = 12078 Added: head/devel/php-memoize/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/php-memoize/pkg-descr Fri Oct 25 18:33:35 2013 (r331622) @@ -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: https://github.com/arraypad/php-memoize