spatialite-tools: use Formula[]

This commit is contained in:
Adam Vandenberg 2014-02-26 20:33:23 -08:00
parent e357890c79
commit e85f057582

View file

@ -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"