Subject: [alpine-aports] [PATCH] community/nextcloud: fix php-related depends

From: Valery Kartel <[email-masked]>
Date: Thu, 4 May 2017 13:29:19 +0300

from https://docs.nextcloud.com/server/11/admin_manual/installation/source_installation.html#prerequisites

- add all php extensions from 'Required' and 'Recommended' sections

- set database-specific depends to those pointed in 'Database
  connectors' section
---
 community/nextcloud/APKBUILD | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/community/nextcloud/APKBUILD b/community/nextcloud/APKBUILD
index 78a559af78..00cb31f5e8 100644
--- a/community/nextcloud/APKBUILD
+++ b/community/nextcloud/APKBUILD
@@ -1,15 +1,15 @@
 # Maintainer: Leonardo Arena <[email-masked]>
 pkgname=nextcloud
 pkgver=11.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A safe home for all your data"
 url="http://nextcloud.com"
 arch="noarch"
 license="AGPL"
 _php=php7
-depends="$_php ${_php}-ctype ${_php}-curl ${_php}-dom ${_php}-gd ${_php}-iconv
-	${_php}-json ${_php}-openssl ${_php}-xml ${_php}-xmlreader
-	${_php}-zlib ${_php}-zip
+depends="$_php $_php-bz2 $_php-ctype $_php-curl $_php-fileinfo $_php-dom $_php-gd
+	$_php-iconv $_php-intl $_php-json $_php-mbstring $_php-mcrypt $_php-openssl
+	$_php-posix $_php-xml $_php-xmlreader $_php-xmlwriter $_php-zlib $_php-zip
 	"
 depends_dev=
 makedepends="$depends_dev"
@@ -79,19 +79,19 @@ doc() {
 
 pgsql() {
 	pkgdesc="Nextcloud PostgreSQL support"
-	depends="nextcloud ${_php}-pgsql ${_php}-pdo_pgsql ${_php}-pear-mdb2_driver_pgsql"
+	depends="nextcloud $_php-pgsql"
 	mkdir -p "$subpkgdir"${_ncwwwdir}
 }
 
 sqlite() {
 	pkgdesc="Nextcloud SQLite support"
-	depends="nextcloud ${_php}-sqlite3 ${_php}-pdo_sqlite"
+	depends="nextcloud $_php-sqlite3"
 	mkdir -p "$subpkgdir"${_ncwwwdir}
 }
 
 mysql() {
 	pkgdesc="Nextcloud MySQL support"
-	depends="nextcloud ${_php}-mysql ${_php}-pdo_mysql ${_php}-pear-mdb2_driver_mysql"
+	depends="nextcloud $_php-pdo_mysql"
 	mkdir -p "$subpkgdir"${_ncwwwdir}
 }
 
-- 
2.12.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Leonardo Arena <[email-masked]>
Date: Wed, 10 May 2017 11:43:38 +0200

Hi,

> +++ b/community/nextcloud/APKBUILD

I pushed a variation of this, since not all depends are strictly needed. 
They can always be added manually. For example you don't need mcrypt if 
you don't use encryption.

>   	mkdir -p "$subpkgdir"${_ncwwwdir}

This has been fully merged. Probably they were legacy depends of 
owncloud package.

Thanks!

- leo

---