From 0cee94a8bb311a4c50c7576cca2c66718a08f8c6 Mon Sep 17 00:00:00 2001 From: Anton Samofal Date: Tue, 7 Mar 2023 00:51:59 +0100 Subject: [PATCH] Add support for zmq (#716) --- data/supported-extensions | 1 + install-php-extensions | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index e75dce4..986525b 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -126,5 +126,6 @@ yaml 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 yar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 zephir_parser 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 zip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 +zmq 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 zookeeper 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 zstd 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 4b37d6a..42413c4 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1406,6 +1406,12 @@ buildRequiredPackageLists() { ;; esac ;; + zmq@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent zeromq-dev" + ;; + zmq@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzmq3-dev" + ;; zookeeper@alpine) if ! test -f /usr/local/include/zookeeper/zookeeper.h; then buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile maven automake libtool openjdk8" @@ -3622,6 +3628,18 @@ installRemoteModule() { fi fi ;; + zmq) + if test -z "$installRemoteModule_version"; then + installRemoteModule_src="$(getPackageSource https://github.com/zeromq/php-zmq/tarball/master)" + cd "$installRemoteModule_src" + phpize + ./configure + make -j$(getProcessorCount) + make install + cd - >/dev/null + installRemoteModule_manuallyInstalled=1 + fi + ;; zookeeper) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then