postgis: remove options. (#36286)
See https://github.com/Homebrew/homebrew-core/issues/31510.
This commit is contained in:
parent
cddd97c85c
commit
b71824a63f
1 changed files with 2 additions and 28 deletions
|
@ -19,20 +19,15 @@ class Postgis < Formula
|
|||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
option "with-gui", "Build shp2pgsql-gui in addition to command line tools"
|
||||
option "with-protobuf-c", "Build with protobuf-c to enable Geobuf and Mapbox Vector Tile support"
|
||||
|
||||
depends_on "gpp" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "gdal" # for GeoJSON and raster handling
|
||||
depends_on "geos"
|
||||
depends_on "gtk+" if build.with? "gui"
|
||||
depends_on "json-c" # for GeoJSON and raster handling
|
||||
depends_on "pcre"
|
||||
depends_on "postgresql"
|
||||
depends_on "proj"
|
||||
depends_on "sfcgal" # for advanced 2D/3D functions
|
||||
depends_on "protobuf-c" => :optional
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
|
@ -48,9 +43,6 @@ class Postgis < Formula
|
|||
"--disable-nls",
|
||||
]
|
||||
|
||||
args << "--with-gui" if build.with? "gui"
|
||||
args << "--with-protobufdir=#{Formula["protobuf-c"].opt_bin}" if build.with? "protobuf-c"
|
||||
|
||||
system "./autogen.sh" if build.head?
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
|
@ -81,24 +73,6 @@ class Postgis < Formula
|
|||
man1.install Dir["doc/**/*.1"]
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
To create a spatially-enabled database, see the documentation:
|
||||
https://postgis.net/docs/manual-2.4/postgis_installation.html#create_new_db_extensions
|
||||
If you are currently using PostGIS 2.0+, you can go the soft upgrade path:
|
||||
ALTER EXTENSION postgis UPDATE TO "#{version}";
|
||||
Users of 1.5 and below will need to go the hard-upgrade path, see here:
|
||||
https://postgis.net/docs/manual-2.4/postgis_installation.html#upgrading
|
||||
|
||||
PostGIS SQL scripts installed to:
|
||||
#{opt_pkgshare}
|
||||
PostGIS plugin libraries installed to:
|
||||
#{HOMEBREW_PREFIX}/lib
|
||||
PostGIS extension modules installed to:
|
||||
#{HOMEBREW_PREFIX}/share/postgresql/extension
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
require "base64"
|
||||
(testpath/"brew.shp").write ::Base64.decode64 <<~EOS
|
||||
|
@ -133,7 +107,7 @@ class Postgis < Formula
|
|||
igAAABI=
|
||||
EOS
|
||||
result = shell_output("#{bin}/shp2pgsql #{testpath}/brew.shp")
|
||||
assert_match /Point/, result
|
||||
assert_match /AddGeometryColumn/, result
|
||||
assert_match(/Point/, result)
|
||||
assert_match(/AddGeometryColumn/, result)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue