Bug 190098 - [NEW PORT] devel/pecl-memoize: PHP extension which transparently caches PHP functions
Summary: [NEW PORT] devel/pecl-memoize: PHP extension which transparently caches PHP f...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-22 09:40 UTC by Gasol Wu
Modified: 2014-05-24 22:22 UTC (History)
0 users

See Also:


Attachments
pecl-memoize-0.2.0.shar (2.65 KB, text/plain)
2014-05-22 09:40 UTC, Gasol Wu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gasol Wu 2014-05-22 09:40:00 UTC
The memoize has been submitted to pecl.php.net, Therefore, devel/php-memoize should be move to devel/pecl-memoize.

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

Generated with FreeBSD Port Tools 1.00.2014.03.23 (mode: new)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-22 09:40:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-05-24 21:55:22 UTC
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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2014-05-24 22:22:03 UTC
State Changed
From-To: open->closed

Committed. Thanks!