From 4e5fbe0d84e1e196bf246d166500fa6daa1f65d4 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 24 Mar 2022 10:18:15 +0100 Subject: [PATCH] Add support for geos (#532) --- data/special-requirements | 1 + data/supported-extensions | 1 + install-php-extensions | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/data/special-requirements b/data/special-requirements index f8fd775..64f3ad0 100644 --- a/data/special-requirements +++ b/data/special-requirements @@ -1,3 +1,4 @@ +geos !alpine3.7 !alpine3.8 !alpine3.9 !alpine3.10 memprof !alpine parallel zts pdo_sqlsrv !alpine3.7 !alpine3.8 diff --git a/data/supported-extensions b/data/supported-extensions index da9d069..d23df59 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -20,6 +20,7 @@ ffi 7.4 8.0 8.1 gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 gearman 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 geoip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +geos 5.5 5.6 7.0 7.1 7.2 7.3 7.4 geospatial 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 gettext 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 gmagick 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 fca8816..456202e 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -681,6 +681,14 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ^libgeoip1[0-9]*$" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgeoip-dev" ;; + geos@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent geos-dev" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile geos" + ;; + geos@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ^libgeos-c1(v[0-9]*)?$" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgeos-dev" + ;; gettext@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libintl" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gettext-dev" @@ -2286,6 +2294,18 @@ installRemoteModule() { installRemoteModule_version=beta fi ;; + geos) + if test -z "$installRemoteModule_version"; then + installRemoteModule_version=71b5f9001512e16d3cf4657b517e8a051d6ef36f + fi + installRemoteModule_src="$(getPackageSource https://git.osgeo.org/gitea/geos/php-geos/archive/$installRemoteModule_version.tar.gz)" + cd "$installRemoteModule_src" + ./autogen.sh + ./configure + make -j$(getProcessorCount) install + cd - >/dev/null + installRemoteModule_manuallyInstalled=1 + ;; geospatial) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then