From d6a703c72ae507ed30d3a9000cbb6be8f6bb07a1 Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Sat, 31 Oct 2020 20:24:42 +0000 Subject: [PATCH] www/nextcloud: Fix build with PHP 8.0 * This does NOT mean Nextcloud is PHP 8 compatible! --- www/nextcloud/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/nextcloud/Makefile b/www/nextcloud/Makefile index c80e1325b8c5..0711e1cb9903 100644 --- a/www/nextcloud/Makefile +++ b/www/nextcloud/Makefile @@ -13,8 +13,8 @@ LICENSE= AGPLv3 USES= cpe gettext-runtime php:flavors,web tar:bzip2 USE_PHP= bcmath bz2 ctype curl dom fileinfo filter gd gmp hash iconv \ - json mbstring pdo posix session simplexml xml xmlreader \ - xmlwriter xsl zip zlib + mbstring pdo posix session simplexml xml xmlreader xmlwriter \ + xsl zip zlib NEXTCLOUD_USERNAME?= ${WWWOWN} NEXTCLOUD_GROUPNAME?= ${WWWGRP} @@ -63,6 +63,10 @@ SSL_USE= PHP=openssl RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu@${PHP_FLAVOR} .endif +.if ${FLAVOR} != php80 +USE_PHP+= json +.endif + post-extract: @${MV} ${WRKSRC}/config/config.sample.php ${WRKSRC}/config/config.documented.php