svn commit: r463918 - in head: devel/phpunit6 devel/phpunit7 www/moodle34 www/typo3-8

Mathieu Arnold mat at FreeBSD.org
Thu Mar 8 19:54:42 UTC 2018


Author: mat
Date: Thu Mar  8 19:54:40 2018
New Revision: 463918
URL: https://svnweb.freebsd.org/changeset/ports/463918

Log:
  Enable PHP flavors for these php apps that do not support the default
  PHP version.
  
  This is done so that they actually build something, and to show very
  clearly how adding flavors to a PHP app is done:
  
  - Add the flavors keyword to USES=php
  - Add ${PHP_PKGNAMESUFFIX} to PKGNAMESUFFIX.
  
  Sponsored by:	Absolight

Modified:
  head/devel/phpunit6/Makefile   (contents, props changed)
  head/devel/phpunit7/Makefile   (contents, props changed)
  head/www/moodle34/Makefile   (contents, props changed)
  head/www/typo3-8/Makefile   (contents, props changed)

Modified: head/devel/phpunit6/Makefile
==============================================================================
--- head/devel/phpunit6/Makefile	Thu Mar  8 19:48:41 2018	(r463917)
+++ head/devel/phpunit6/Makefile	Thu Mar  8 19:54:40 2018	(r463918)
@@ -5,7 +5,7 @@ PORTNAME=	phpunit
 DISTVERSION=	6.5.7
 CATEGORIES=	devel www
 MASTER_SITES=	https://phar.phpunit.de/
-PKGNAMESUFFIX=	6
+PKGNAMESUFFIX=	6${PHP_PKGNAMESUFFIX}
 EXTRACT_SUFX=	.phar
 
 MAINTAINER=	joneum at FreeBSD.org
@@ -17,7 +17,7 @@ IGNORE_WITH_PHP=	56
 
 CONFLICTS_INSTALL=	phpunit
 
-USES=		cpe php
+USES=		cpe php:flavors
 CPE_VENDOR=	phpunit_project
 USE_PHP=	dom json spl pcre phar
 

Modified: head/devel/phpunit7/Makefile
==============================================================================
--- head/devel/phpunit7/Makefile	Thu Mar  8 19:48:41 2018	(r463917)
+++ head/devel/phpunit7/Makefile	Thu Mar  8 19:54:40 2018	(r463918)
@@ -4,7 +4,7 @@ PORTNAME=	phpunit
 DISTVERSION=	7.0.2
 CATEGORIES=	devel www
 MASTER_SITES=	https://phar.phpunit.de/
-PKGNAMESUFFIX=	7
+PKGNAMESUFFIX=	7${PHP_PKGNAMESUFFIX}
 EXTRACT_SUFX=	.phar
 
 MAINTAINER=	joneum at FreeBSD.org
@@ -16,7 +16,7 @@ IGNORE_WITH_PHP=	56
 
 CONFLICTS_INSTALL=	phpunit
 
-USES=		cpe php
+USES=		cpe php:flavors
 CPE_VENDOR=	phpunit_project
 USE_PHP=	dom json spl pcre phar
 

Modified: head/www/moodle34/Makefile
==============================================================================
--- head/www/moodle34/Makefile	Thu Mar  8 19:48:41 2018	(r463917)
+++ head/www/moodle34/Makefile	Thu Mar  8 19:54:40 2018	(r463918)
@@ -5,7 +5,7 @@ PORTNAME=	moodle
 PORTVERSION=	3.4.1
 CATEGORIES=	www
 MASTER_SITES=	SF/moodle/Moodle/stable34/
-PKGNAMESUFFIX=	${PKGORIGIN:T:S/moodle//}
+PKGNAMESUFFIX=	${PKGORIGIN:T:S/moodle//}${PHP_PKGNAMESUFFIX}
 
 MAINTAINER=	wen at FreeBSD.org
 COMMENT=	Course management system based on social constructionism
@@ -16,7 +16,7 @@ CONFLICTS=	moodle31-3.1.[0-9]* moodle32-3.2.[0-9]* moo
 
 IGNORE_WITH_PHP=	56
 
-USES=		cpe php tar:tgz
+USES=		cpe php:flavors tar:tgz
 USE_PHP=	ctype curl dom fileinfo gd hash iconv intl json mbstring \
 		opcache openssl pcre session simplexml soap spl tokenizer \
 		xml xmlreader xmlrpc zip zlib

Modified: head/www/typo3-8/Makefile
==============================================================================
--- head/www/typo3-8/Makefile	Thu Mar  8 19:48:41 2018	(r463917)
+++ head/www/typo3-8/Makefile	Thu Mar  8 19:54:40 2018	(r463918)
@@ -5,7 +5,7 @@ PORTNAME=	typo3
 PORTVERSION=	${PORT_V_MAJOR}.${PORT_V_MINOR}.${PORT_V_PATCH}
 CATEGORIES=	www
 MASTER_SITES=	https://typo3.azureedge.net/typo3/${PORTVERSION}/
-PKGNAMESUFFIX=	-${PORT_V_MAJOR}
+PKGNAMESUFFIX=	-${PORT_V_MAJOR}${PHP_PKGNAMESUFFIX}
 
 MAINTAINER=	freebsd-ports at charlieroot.de
 COMMENT=	Typo3 content management system
@@ -17,7 +17,7 @@ IGNORE_WITH_PHP=	56
 
 PORTSCOUT=	limit:^${PORT_V_MAJOR}\.${PORT_V_MINOR}\.
 
-USES=		cpe php:web shebangfix
+USES=		cpe php:web,flavors shebangfix
 SHEBANG_GLOB=	*.sh *.php
 NO_BUILD=	yes
 NO_ARCH=	yes


More information about the svn-ports-head mailing list