diff options
author | Dave Hall <skwashd@gmail.com> | 2017-05-25 23:50:14 +1000 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-04-14 03:01:12 +0300 |
commit | 0c5e0829f977425e09c10d6cf47f62eb32651b51 (patch) | |
tree | 77458a1df23de782cbddc60e84716df50a459ff2 /community/php7 | |
parent | b4b03e271c2cec0efc7341659cc5f8dad1e22786 (diff) | |
download | aports-0c5e0829f977425e09c10d6cf47f62eb32651b51.tar.bz2 aports-0c5e0829f977425e09c10d6cf47f62eb32651b51.tar.xz |
community/php7 Add php virtual packages
This allows other packages to depend on php5 or php7 via the
php or php-[extension] virtual packages.
Diffstat (limited to 'community/php7')
-rw-r--r-- | community/php7/APKBUILD | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/community/php7/APKBUILD b/community/php7/APKBUILD index 00885e9313..4dad9a8d6a 100644 --- a/community/php7/APKBUILD +++ b/community/php7/APKBUILD @@ -26,7 +26,7 @@ pkgname=php7 _pkgreal=php pkgver=7.2.4 -pkgrel=1 +pkgrel=2 _apiver=20170718 _suffix=${pkgname#php} # Is this package the default (latest) PHP version? @@ -83,7 +83,8 @@ makedepends=" unixodbc-dev zlib-dev " -provides="$pkgname-cli" # for backward compatibility +provides="$pkgname-cli php-cli php" # for backward compatibility +provider_priority=100 subpackages="$pkgname-dev $pkgname-doc $pkgname-apache2 $pkgname-phpdbg $pkgname-embed $pkgname-litespeed $pkgname-cgi $pkgname-fpm $pkgname-pear::noarch @@ -443,6 +444,7 @@ doc() { apache2() { pkgdesc="PHP$_suffix Module for Apache2" depends="$depends apache2" + provides="php-apache2" install -D -m 755 "$builddir"/sapi/apache2handler/mod_php$_suffix.so \ "$subpkgdir"/usr/lib/apache2/mod_php$_suffix.so @@ -453,6 +455,7 @@ apache2() { phpdbg() { pkgdesc="Interactive PHP$_suffix debugger" + provides="php-phpdbg" install -Dm755 "$builddir"/sapi/phpdbg/phpdbg \ "$subpkgdir"/usr/bin/phpdbg$_suffix @@ -464,12 +467,14 @@ phpdbg() { embed() { pkgdesc="PHP$_suffix Embedded Library" + provides="php-embed" _mv "$pkgdir"/usr/lib/libphp*.so "$subpkgdir"/usr/lib/ } litespeed() { pkgdesc="PHP$_suffix LiteSpeed SAPI" + provides="php-lightspeed" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/lsphp$_suffix "$subpkgdir"/usr/bin @@ -481,6 +486,7 @@ litespeed() { cgi() { pkgdesc="PHP$_suffix Common Gateway Interface" + provides="php-cgi" _mv "$pkgdir"/usr/bin/php-cgi$_suffix "$subpkgdir"/usr/bin/ @@ -491,6 +497,7 @@ cgi() { fpm() { pkgdesc="PHP$_suffix FastCGI Process Manager" + provides="php-fpm" cd "$pkgdir" @@ -516,6 +523,7 @@ fpm() { pear() { pkgdesc="PHP$_suffix Extension and Application Repository" depends="$pkgname $pkgname-xml" + provides="php-pear" cd "$pkgdir" @@ -537,7 +545,7 @@ pear() { common() { pkgdesc="$pkgdesc (common config)" - provides="$pkgname-zlib" # for backward compatibility + provides="php-common $pkgname-zlib php-zlib" # for backward compatibility depends="" cd "$pkgdir" @@ -569,6 +577,7 @@ _extension() { local extdepends="$(eval "echo \$_depends_$extname")" local extdesc="$(head -n1 "$builddir"/ext/$extname/CREDITS 2>/dev/null ||:)" pkgdesc="PHP$_suffix extension: ${extdesc:-$extname}" + provides="php-$extname" : ${extdepends:=$(_resolve_extension_deps "$extname")} depends="$depends $extdepends" |