From c575b324b0a62bece4f046c24e66dfe863b85d9f Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Mon, 7 May 2012 10:44:01 -0700 Subject: SQLite: Always enable R-Tree index This allows the SQLite formula to support the SpatiaLite formula. RTree is also enabled by default in the SQLite build that ships with Lion. --- Library/Formula/sqlite.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula/sqlite.rb') diff --git a/Library/Formula/sqlite.rb b/Library/Formula/sqlite.rb index f8e20900d..90a76f9d7 100644 --- a/Library/Formula/sqlite.rb +++ b/Library/Formula/sqlite.rb @@ -23,7 +23,7 @@ class Sqlite < Formula def options [ ["--with-docs", "Install HTML documentation"], - ["--with-rtree", "Enable the R*Tree index module"], + ["--without-rtree", "Disable the R*Tree index module"], ["--with-fts", "Enable the FTS Module"], ["--universal", "Build a universal binary"], ["--with-functions", "Enable more math and string functions for SQL queries"] @@ -35,7 +35,7 @@ class Sqlite < Formula # http://groups.google.com/group/spatialite-users/browse_thread/thread/8e1cfa79f2d02a00# ENV.Os - ENV.append 'CPPFLAGS', "-DSQLITE_ENABLE_RTREE" if ARGV.include? "--with-rtree" + ENV.append 'CPPFLAGS', "-DSQLITE_ENABLE_RTREE" unless ARGV.include? "--without-rtree" ENV.append 'CPPFLAGS', "-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS" if ARGV.include? "--with-fts" # enable these options by default -- cgit v1.2.3