Merge pull request #128 from mlocati/improve-tdlib

tdlib: support more PHP versions
pull/135/head
Michele Locati 2020-03-03 13:29:46 +01:00 committed by GitHub
commit 91cf4013fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -1,2 +1,3 @@
parallel zts parallel zts
pthreads zts pthreads zts
tdlib !alpine3.7 !jessie

View File

@ -65,7 +65,7 @@ sybase_ct 5.5 5.6
sysvmsg 5.5 5.6 7.0 7.1 7.2 7.3 7.4 sysvmsg 5.5 5.6 7.0 7.1 7.2 7.3 7.4
sysvsem 5.5 5.6 7.0 7.1 7.2 7.3 7.4 sysvsem 5.5 5.6 7.0 7.1 7.2 7.3 7.4
sysvshm 5.5 5.6 7.0 7.1 7.2 7.3 7.4 sysvshm 5.5 5.6 7.0 7.1 7.2 7.3 7.4
tdlib 7.3 7.4 tdlib 7.0 7.1 7.2 7.3 7.4
tidy 5.5 5.6 7.0 7.1 7.2 7.3 7.4 tidy 5.5 5.6 7.0 7.1 7.2 7.3 7.4
timezonedb 5.5 5.6 7.0 7.1 7.2 7.3 7.4 timezonedb 5.5 5.6 7.0 7.1 7.2 7.3 7.4
uopz 5.5 5.6 7.0 7.1 7.2 7.3 7.4 uopz 5.5 5.6 7.0 7.1 7.2 7.3 7.4

View File

@ -1236,7 +1236,13 @@ installPECLModule() {
;; ;;
tdlib) tdlib)
if ! test -f /usr/lib/libphpcpp.so || ! test -f /usr/include/phpcpp.h; then if ! test -f /usr/lib/libphpcpp.so || ! test -f /usr/include/phpcpp.h; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/444d1f90cf6b7f3cb5178fa0d0b5ab441b0389d0)" if test $PHP_MAJMIN_VERSION -le 701; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/v2.1.4)"
elif test $PHP_MAJMIN_VERSION -le 703; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/v2.2.0)"
else
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/444d1f90cf6b7f3cb5178fa0d0b5ab441b0389d0)"
fi
make -j$(nproc) make -j$(nproc)
make install make install
cd - >/dev/null cd - >/dev/null