diff --git a/Formula/spatialite-tools.rb b/Formula/spatialite-tools.rb index 5fa30aa1e5..6be9dbb6bd 100644 --- a/Formula/spatialite-tools.rb +++ b/Formula/spatialite-tools.rb @@ -6,7 +6,6 @@ class SpatialiteTools < Formula sha1 '0af3de926b8086287ef31ebba5d8327ee18d14bd' depends_on 'pkg-config' => :build - depends_on 'libspatialite' depends_on 'readosm' @@ -14,7 +13,7 @@ class SpatialiteTools < Formula # See: https://github.com/Homebrew/homebrew/issues/3328 ENV.append 'LDFLAGS', '-liconv' # Ensure Homebrew SQLite is found before system SQLite. - sqlite = Formula.factory 'sqlite' + sqlite = Formula["sqlite"] ENV.append 'LDFLAGS', "-L#{sqlite.opt_prefix}/lib" ENV.append 'CFLAGS', "-I#{sqlite.opt_prefix}/include"