From 1888790bc8182cfa7fd8c02698c125c03ebfa160 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 30 Aug 2023 15:42:58 +0200 Subject: [PATCH] Add support for ecma_intl PHP extension (#795) --- MAINTAINERS.md | 5 +++++ data/special-requirements | 1 + data/supported-extensions | 1 + install-php-extensions | 13 +++++++++++++ 4 files changed, 20 insertions(+) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 18e9423..138f94b 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -25,6 +25,11 @@ The `decimal` PHP extension requires the `libmpdec` system library. It's not available on Alpine Linux, so we install it manually. We need to monitor new releases at https://www.bytereef.org/mpdecimal/changelog.html +### ecma_intl + +The only available versions of this PHP extension are all alpha. +We should switch to the stable release once it will be available. + ### gearman The `gearman` PHP extension requires the `libgearman` system library. diff --git a/data/special-requirements b/data/special-requirements index 8606a4c..947ebf1 100644 --- a/data/special-requirements +++ b/data/special-requirements @@ -1,5 +1,6 @@ cassandra !jessie !stretch !buster !bullseye !bookworm ddtrace !jessie +ecma_intl !buster !bullseye geos !alpine3.9 !alpine3.10 lz4 !jessie memcached !bookworm diff --git a/data/supported-extensions b/data/supported-extensions index 16a38b2..66de651 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -14,6 +14,7 @@ dba 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 ddtrace 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 decimal 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 ds 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 +ecma_intl 8.2 enchant 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 ev 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 event 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index 7262367..adf0155 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -744,6 +744,14 @@ buildRequiredPackageLists() { buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmpdec-dev" fi ;; + ecma_intl@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev libidn-dev" + ;; + ecma_intl@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ^libicu[0-9]+$" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev" + ;; enchant@alpine) if test $DISTRO_MAJMIN_VERSION -ge 312; then if test $PHP_MAJMIN_VERSION -ge 800; then @@ -2708,6 +2716,11 @@ installRemoteModule() { fi fi ;; + ecma_intl) + if test -z "$installRemoteModule_version"; then + installRemoteModule_version=alpha + fi + ;; event) installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")" if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 2.4.0) -ge 0; then