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
|
||||
expect=expect
|
||||
gearman=gearman
|
||||
geos=geos
|
||||
gmagick=gmagick
|
||||
gnupg=gnupg
|
||||
grpc=grpc
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
# Helper function to compile and install geos
|
||||
add_geos_helper() {
|
||||
if [ "$os" = "Linux" ]; then
|
||||
export GEOS_LINUX_LIBS='libgeos-dev'
|
||||
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
|
||||
@@ -15,3 +19,5 @@ add_geos() {
|
||||
add_extension_log "geos" "Installed and enabled"
|
||||
fi
|
||||
}
|
||||
|
||||
os="$(uname -s)"
|
||||
|
||||
Reference in New Issue
Block a user