diff options
| -rw-r--r-- | Library/Formula/libspatialite.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/libspatialite.rb b/Library/Formula/libspatialite.rb index 141ba453e..4124f5835 100644 --- a/Library/Formula/libspatialite.rb +++ b/Library/Formula/libspatialite.rb @@ -1,5 +1,10 @@ require 'formula' +# Postgis depends on gdal, which in turn depends on libspatialite, +# so enabling a "with-postgis" option in this formula introduces a +# circular dependency. +# See https://github.com/mxcl/homebrew/issues/20373 + class Libspatialite < Formula homepage 'https://www.gaia-gis.it/fossil/libspatialite/index' url 'http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.1.1.tar.gz' @@ -7,7 +12,6 @@ class Libspatialite < Formula option 'without-freexl', 'Build without support for reading Excel files' option 'without-libxml2', 'Disable support for xml parsing (parsing needed by spatialite-gui)' - option 'with-postgis', 'Enable additional sanitization/segmentation routines provided by PostGIS 2.0+' depends_on 'pkg-config' => :build depends_on 'proj' @@ -18,7 +22,6 @@ class Libspatialite < Formula depends_on 'sqlite' depends_on 'libxml2' => :recommended depends_on 'freexl' => :recommended - depends_on 'postgis' => :optional def install # Ensure Homebrew's libsqlite is found before the system version. @@ -33,7 +36,6 @@ class Libspatialite < Formula ] args << '--enable-freexl=no' if build.without? 'freexl' args << '--enable-libxml2=yes' unless build.without? 'libxml2' - args << '--enable-lwgeom' if build.with? 'postgis' system './configure', *args system "make install" |
