add support for yac

pull/392/head
Laurent Laville 2021-07-17 07:52:10 +02:00 committed by Michele Locati
parent fbc3f963a4
commit 2cdf6f92c1
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
3 changed files with 53 additions and 0 deletions

View File

@ -102,6 +102,7 @@ xlswriter 7.0 7.1 7.2 7.3 7.4 8.0
xmldiff 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
xmlrpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
xsl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
yac 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
yaml 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
yar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1
zip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1

View File

@ -2282,6 +2282,33 @@ installRemoteModule() {
addConfigureOption enable-reader yes
fi
;;
yac)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=0.9.2
fi
fi
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 2.2.0) -ge 0; then
# Enable igbinary serializer support
if php --ri igbinary >/dev/null 2>/dev/null; then
addConfigureOption enable-igbinary yes
else
addConfigureOption enable-igbinary no
fi
# Enable json serializer support
if php --ri json >/dev/null 2>/dev/null; then
addConfigureOption enable-json yes
else
addConfigureOption enable-json no
fi
# Enable msgpack serializer support
if php --ri msgpack >/dev/null 2>/dev/null; then
addConfigureOption enable-msgpack yes
else
addConfigureOption enable-msgpack no
fi
fi
;;
yaml)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then

25
scripts/tests/yac Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
set -o errexit
set -o nounset
rc=0
if test -z "$(php --ri yac | grep 'Serializer => .*igbinary')"; then
echo 'yac has not been compiled with Igbinary support' >&2
rc=1
else
echo 'yac has been compiled with Igbinary support'
fi
if test -z "$(php --ri yac | grep 'Serializer => .*json')"; then
echo 'yac has not been compiled with Json support' >&2
rc=1
else
echo 'yac has been compiled with Json support'
fi
if test -z "$(php --ri yac | grep 'Serializer => .*msgpack')"; then
echo 'yac has not been compiled with Msgpack support' >&2
rc=1
else
echo 'yac has been compiled with Msgpack support'
fi
exit $rc