aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-05-07 10:44:01 -0700
committerCharlie Sharpsteen2012-05-07 10:49:11 -0700
commitc575b324b0a62bece4f046c24e66dfe863b85d9f (patch)
tree26367483ef184a2f7529b94e01949c95e2489a5f /Library/Formula
parent08456e4cd335a5ea0e3aa8285b39f2c4bfd93171 (diff)
downloadhomebrew-c575b324b0a62bece4f046c24e66dfe863b85d9f.tar.bz2
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.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sqlite.rb4
1 files changed, 2 insertions, 2 deletions
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