mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-09-29 04:20:41 +07:00
Switch to homebrew-extensions for geos on macOS [skip ci]
This commit is contained in:
@@ -8,6 +8,7 @@ event=event
|
|||||||
excimer=excimer
|
excimer=excimer
|
||||||
expect=expect
|
expect=expect
|
||||||
gearman=gearman
|
gearman=gearman
|
||||||
|
geos=geos
|
||||||
gmagick=gmagick
|
gmagick=gmagick
|
||||||
gnupg=gnupg
|
gnupg=gnupg
|
||||||
grpc=grpc
|
grpc=grpc
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
# Helper function to compile and install geos
|
# Helper function to compile and install geos
|
||||||
add_geos_helper() {
|
add_geos_helper() {
|
||||||
export GEOS_LINUX_LIBS='libgeos-dev'
|
if [ "$os" = "Linux" ]; then
|
||||||
export GEOS_DARWIN_LIBS='geos'
|
export GEOS_LINUX_LIBS='libgeos-dev'
|
||||||
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get
|
export GEOS_DARWIN_LIBS='geos'
|
||||||
|
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get
|
||||||
|
else
|
||||||
|
add_brew_extension geos extension
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to add geos
|
# Function to add geos
|
||||||
@@ -15,3 +19,5 @@ add_geos() {
|
|||||||
add_extension_log "geos" "Installed and enabled"
|
add_extension_log "geos" "Installed and enabled"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os="$(uname -s)"
|
||||||
|
|||||||
Reference in New Issue
Block a user