postgis: remove options

This commit is contained in:
FX Coudert 2018-09-26 15:19:42 +02:00
parent 1473768a6d
commit 3f80fa295d

View file

@ -20,36 +20,18 @@ class Postgis < Formula
end
option "with-gui", "Build shp2pgsql-gui in addition to command line tools"
option "without-gdal", "Disable postgis raster support"
option "with-html-docs", "Generate multi-file HTML documentation"
option "with-api-docs", "Generate developer API documentation (long process)"
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 "json-c" # for GeoJSON and raster handling
depends_on "pcre"
depends_on "postgresql"
depends_on "proj"
# For GeoJSON and raster handling
depends_on "gdal" => :recommended
depends_on "pcre" if build.with? "gdal"
# For advanced 2D/3D functions
depends_on "sfcgal" => :recommended
if build.with? "html-docs"
depends_on "imagemagick"
depends_on "docbook-xsl"
end
if build.with? "api-docs"
depends_on "graphviz"
depends_on "doxygen"
end
depends_on "sfcgal" # for advanced 2D/3D functions
depends_on "protobuf-c" => :optional
def install
@ -67,29 +49,12 @@ class Postgis < Formula
]
args << "--with-gui" if build.with? "gui"
args << "--without-raster" if build.without? "gdal"
args << "--with-xsldir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl" if build.with? "html-docs"
args << "--with-protobufdir=#{Formula["protobuf-c"].opt_bin}" if build.with? "protobuf-c"
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
if build.with? "html-docs"
cd "doc" do
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
system "make", "chunked-html"
doc.install "html"
end
end
if build.with? "api-docs"
cd "doc" do
system "make", "doxygen"
doc.install "doxygen/html" => "api"
end
end
mkdir "stage"
system "make", "install", "DESTDIR=#{buildpath}/stage"