From owner-svn-ports-all@freebsd.org Wed Sep 7 07:31:28 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC4A7BCF833; Wed, 7 Sep 2016 07:31:28 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F2D9AE7; Wed, 7 Sep 2016 07:31:28 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u877VRq5061074; Wed, 7 Sep 2016 07:31:27 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u877VRdG061073; Wed, 7 Sep 2016 07:31:27 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201609070731.u877VRdG061073@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Wed, 7 Sep 2016 07:31:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421479 - head/www/magento X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 07:31:28 -0000 Author: mat Date: Wed Sep 7 07:31:27 2016 New Revision: 421479 URL: https://svnweb.freebsd.org/changeset/ports/421479 Log: Use USE_PHP=redis. While there, use options helpers. Sponsored by: Absolight Modified: head/www/magento/Makefile (contents, props changed) Modified: head/www/magento/Makefile ============================================================================== --- head/www/magento/Makefile Wed Sep 7 07:17:37 2016 (r421478) +++ head/www/magento/Makefile Wed Sep 7 07:31:27 2016 (r421479) @@ -24,25 +24,16 @@ REDIS_DESC= Depend on php56-redis for fa NO_BUILD= yes MAGENTODIR?= www/magento -.include -.if !empty(${PORT_OPTIONS:MOAUTH}) -RUN_DEPENDS+= pecl-oauth>=1.2.3:net/pecl-oauth -.endif -.if !empty(${PORT_OPTIONS:MREDIS}) -RUN_DEPENDS+= php56-redis>=2.2.0:databases/php56-redis -.endif -# First need to submit the port -#.if ${PORT_OPTIONS:MSNAPPY} -#RUN_DEPENDS+= php5-snappy>=0.0.2:archivers/php5-snappy -#.endif +OAUTH_RUN_DEPENDS= pecl-oauth>=1.2.3:net/pecl-oauth +REDIS_USE= php=redis -.include +# First need to submit the port +#SNAPPY_RUN_DEPENDS= php5-snappy>=0.0.2:archivers/php5-snappy SUB_FILES= pkg-message cron.sh pkg-install crontab SUB_LIST+= MAGENTODIR=${MAGENTODIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} PLIST_SUB+= ${SUB_LIST} - post-patch: @${RM} -f ${WRKSRC}/cron.sh ${WRKSRC}/.htaccess @@ -53,14 +44,12 @@ do-install: -exec ${CHMOD} a+w {} + @${CHMOD} a+x ${STAGEDIR}${PREFIX}/${MAGENTODIR}/app/etc \ ${STAGEDIR}${PREFIX}/${MAGENTODIR}/app/etc/modules -.if !empty(${PORT_OPTIONS:MSESSIONS}) +do-install-SESSIONS-on: @${REINPLACE_CMD} -e 's,false,true,' \ ${STAGEDIR}${PREFIX}/${MAGENTODIR}/app/etc/modules/Cm_RedisSession.xml @${RM} -f ${STAGEDIR}${PREFIX}/${MAGENTODIR}/app/etc/modules/Cm_RedisSession.xml.bak -.endif -.if !empty(${PORT_OPIONS:MEXAMPLES}) +do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${PREFIX}/${EXAMPLESDIR} @${INSTALL_DATA} ${WRKDIR}/crontab ${STAGEDIR}${PREFIX}/${EXAMPLESDIR} -.endif -.include +.include