GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Switch to homebrew-extensions for geos on macOS [skip ci] · shivammathur/setup-php@bc12f5c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • configs
      • brew_extensions
    • scripts/extensions
      • geos.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/configs/brew_extensions‎

Copy file name to clipboardExpand all lines: src/configs/brew_extensions
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ event=event
88
excimer=excimer
99
expect=expect
1010
gearman=gearman
11+
geos=geos
1112
gmagick=gmagick
1213
gnupg=gnupg
1314
grpc=grpc
Collapse file

‎src/scripts/extensions/geos.sh‎

Copy file name to clipboardExpand all lines: src/scripts/extensions/geos.sh
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Helper function to compile and install geos
22
add_geos_helper() {
3-
export GEOS_LINUX_LIBS='libgeos-dev'
4-
export GEOS_DARWIN_LIBS='geos'
5-
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get
3+
if [[ "$os" = "Linux" || "${version:?}" =~ 5.[3-5] ]]; then
4+
export GEOS_LINUX_LIBS='libgeos-dev'
5+
export GEOS_DARWIN_LIBS='geos'
6+
add_extension_from_source geos https://github.com libgeos php-geos 1.0.0 extension get
7+
else
8+
add_brew_extension geos extension
9+
fi
610
}
711

812
# Function to add geos
@@ -15,3 +19,5 @@ add_geos() {
1519
add_extension_log "geos" "Installed and enabled"
1620
fi
1721
}
22+
23+
os="$(uname -s)"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.