php: Enable more extentions.

* gnu/packages/php.scm (php)[arguments]: Use libzip instead of zip for
the "--with-libzip" argument, enable intl and zip.
[inputs]: Add icu4c, libzip. Remove zip.
This commit is contained in:
Björn Höfling 2019-11-10 22:19:09 +01:00
parent a9b15d4c7f
commit 30502f1dd6
No known key found for this signature in database
GPG key ID: BF286CB6593E5FFD

View file

@ -36,6 +36,7 @@ (define-module (gnu packages php)
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
#:use-module (gnu packages linux)
#:use-module (gnu packages multiprecision)
@ -101,7 +102,7 @@ (define-public php
(with "--with-jpeg-dir" "libjpeg")
(with "--with-ldap" "openldap")
(with "--with-ldap-sasl" "cyrus-sasl")
(with "--with-libzip" "zip")
(with "--with-libzip" "libzip")
(with "--with-libxml-dir" "libxml2")
(with "--with-onig" "oniguruma")
(with "--with-pcre-dir" "pcre")
@ -136,9 +137,11 @@ (define-public php
"--enable-fpm"
"--enable-ftp"
"--enable-inifile"
"--enable-intl"
"--enable-mbstring"
"--enable-pcntl"
"--enable-sockets"))
"--enable-sockets"
"--enable-zip"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'do-not-record-build-flags
@ -356,6 +359,7 @@ (define-public php
("glibc" ,glibc)
("gmp" ,gmp)
("gnutls" ,gnutls)
("icu4c" ,icu4c)
("libgcrypt" ,libgcrypt)
("libjpeg" ,libjpeg)
("libpng" ,libpng)
@ -364,6 +368,7 @@ (define-public php
("libxpm" ,libxpm)
("libxslt" ,libxslt)
("libx11" ,libx11)
("libzip" ,libzip)
("oniguruma" ,oniguruma)
("openldap" ,openldap)
("openssl" ,openssl)
@ -372,7 +377,6 @@ (define-public php
("readline" ,readline)
("sqlite" ,sqlite)
("tidy" ,tidy)
("zip" ,zip)
("zlib" ,zlib)))
(native-inputs
`(("pkg-config" ,pkg-config)