aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sqlite.rb
diff options
context:
space:
mode:
authorBarry Sears2010-04-07 22:41:07 -0400
committerDavid Höppner2010-04-08 10:07:05 +0200
commit5a17a17646636aec94165245551ad5d6b1bd9776 (patch)
tree9c88005cf1140824a11c8ea37d20764ecd764b5a /Library/Formula/sqlite.rb
parent9be76a15c2b894fa896402b1267ea88f2c2bafde (diff)
downloadhomebrew-5a17a17646636aec94165245551ad5d6b1bd9776.tar.bz2
Modified sqlite formula. Added option for R*-Tree module
Signed-off-by: David Höppner <0xffea@gmail.com> * white space
Diffstat (limited to 'Library/Formula/sqlite.rb')
-rw-r--r--Library/Formula/sqlite.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/sqlite.rb b/Library/Formula/sqlite.rb
index faf738b6d..8f4f60629 100644
--- a/Library/Formula/sqlite.rb
+++ b/Library/Formula/sqlite.rb
@@ -5,9 +5,16 @@ class Sqlite <Formula
md5 '8f1e86b3909a27f8122b0981afd16fcd'
homepage 'http://www.sqlite.org/'
+ def options
+ [
+ ["--with-rtree", "Enables the R*Tree index module"]
+ ]
+ end
+
def install
+ ENV.append "CFLAGS", "-DSQLITE_ENABLE_RTREE=1" if ARGV.include? "--with-rtree"
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"
system "make install"
end
-end \ No newline at end of file
+end