mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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 <gasol.wu gmail.com>
This commit is contained in:
parent
52b86b41ea
commit
cbc6df9510
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331622
4 changed files with 65 additions and 0 deletions
|
@ -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
|
||||
|
|
49
devel/php-memoize/Makefile
Normal file
49
devel/php-memoize/Makefile
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Created by: Gasol Wu <gasol.wu@gmail.com>
|
||||
# $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 <bsd.port.pre.mk>
|
||||
|
||||
.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 <bsd.port.post.mk>
|
2
devel/php-memoize/distinfo
Normal file
2
devel/php-memoize/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (memoize-0.2.0b1.tar.gz) = c55bd2c0e684dfa35115250787065a79dfab9139499c509298c5fa3c76b51889
|
||||
SIZE (memoize-0.2.0b1.tar.gz) = 12078
|
13
devel/php-memoize/pkg-descr
Normal file
13
devel/php-memoize/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue