From 3608f58e74fe296f564b4601654f8b502e8e2918 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 13 May 2022 17:18:20 +0200 Subject: [PATCH] Add support for ion (#573) --- data/supported-extensions | 1 + install-php-extensions | 25 +++++++++++++++++++++++++ scripts/tests/ion | 12 ++++++++++++ 3 files changed, 38 insertions(+) create mode 100755 scripts/tests/ion diff --git a/data/supported-extensions b/data/supported-extensions index 7eb8d66..cd10a14 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -34,6 +34,7 @@ imap 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 inotify 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 interbase 5.5 5.6 7.0 7.1 7.2 7.3 intl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 +ion 8.1 ioncube_loader 5.5 5.6 7.0 7.1 7.2 7.3 7.4 jsmin 5.5 5.6 7.0 7.1 7.2 7.3 7.4 json_post 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 diff --git a/install-php-extensions b/install-php-extensions index f75a9cd..4b5344e 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -864,6 +864,12 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ^libicu[0-9]+$" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev" ;; + ion@alpine) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake git" + ;; + ion@debian) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake git" + ;; ldap@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libldap" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile openldap-dev" @@ -2613,6 +2619,25 @@ installRemoteModule() { fi fi ;; + ion) + if ! test -f /usr/local/lib/libionc.so || ! test -f /usr/local/include/ionc/ion.h; then + echo 'Installing ion-c... ' + installRemoteModule_src="$(mktemp -p /tmp/src -d)" + git clone -q -c advice.detachedHead=false --depth 1 --branch v1.0.6 https://github.com/amzn/ion-c.git "$installRemoteModule_src/ion" + ( + cd "$installRemoteModule_src/ion" + git submodule init -q + git submodule update -q + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=Release .. -Wno-dev + make clean + make -j$(getProcessorCount) install + ) + rm -rf "$installRemoteModule_src" + fi + addConfigureOption with-ion "shared,/usr/local" + ;; ioncube_loader) installIonCubeLoader installRemoteModule_manuallyInstalled=1 diff --git a/scripts/tests/ion b/scripts/tests/ion new file mode 100755 index 0000000..d285aa9 --- /dev/null +++ b/scripts/tests/ion @@ -0,0 +1,12 @@ +#!/usr/bin/env php +