Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2016 13:15:07 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423913 - head/www/zend-framework
Message-ID:  <201610131315.u9DDF7vD048657@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Thu Oct 13 13:15:07 2016
New Revision: 423913
URL: https://svnweb.freebsd.org/changeset/ports/423913

Log:
  www/zend-framework: Make memcache dependency optional
  
  PR:		213384
  Submitted by:	Fredrik Eriksson

Modified:
  head/www/zend-framework/Makefile

Modified: head/www/zend-framework/Makefile
==============================================================================
--- head/www/zend-framework/Makefile	Thu Oct 13 13:08:09 2016	(r423912)
+++ head/www/zend-framework/Makefile	Thu Oct 13 13:15:07 2016	(r423913)
@@ -3,7 +3,7 @@
 
 PORTNAME=	ZendFramework
 PORTVERSION=	2.3.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	https://packages.zendframework.com/releases/${DISTNAME}/
 
@@ -21,7 +21,7 @@ USES=		gettext tar:tgz
 
 SUB_FILES=	pkg-message
 
-OPTIONS_DEFINE=	DOCS MYSQL MYSQLI DBLIB PGSQL ODBC SQLITE REQPHP OPTPHP
+OPTIONS_DEFINE=	DOCS MYSQL MYSQLI DBLIB PGSQL ODBC SQLITE REQPHP OPTPHP MEMCACHE
 OPTIONS_DEFAULT=REQPHP
 
 MYSQL_DESC=	Enable MySQL PDO support
@@ -32,6 +32,7 @@ ODBC_DESC=	Enable ODBC PDO support
 SQLITE_DESC=	Enable SQLite v3 PDO support
 REQPHP_DESC=	Install required PHP dependencies
 OPTPHP_DESC=	Install optional PHP dependencies
+MEMCACHE_DESC= Enable memcache support
 
 PORTDOCS=	CHANGELOG.md INSTALL.md README-GIT.md CONTRIBUTING.md README.md
 
@@ -47,13 +48,18 @@ USE_PHP+=	sqlite
 .else
 USE_PHP+=	sqlite3
 .endif
-RUN_DEPENDS+=	pecl-memcache>=0:databases/pecl-memcache \
-		pecl-memcached>=0:databases/pecl-memcached
+
 .endif
+
 .if ${PORT_OPTIONS:MOPTPHP}
 USE_PHP+=	bcmath bitset json posix
 .endif
 
+.if ${PORT_OPTIONS:MMCACHE}
+RUN_DEPENDS+=	pecl-memcache>=0:databases/pecl-memcache \
+		pecl-memcached>=0:databases/pecl-memcached
+.endif
+
 .if ${PORT_OPTIONS:MMYSQL}
 USE_PHP+=	pdo_mysql
 .endif



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