Added --with-fts option to sqlite3 formula

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
aktowns 2010-11-16 16:35:28 +11:00 committed by Adam Vandenberg
parent e9251d6c68
commit 8222e5b74d
1 changed files with 2 additions and 0 deletions

View File

@ -8,12 +8,14 @@ class Sqlite <Formula
def options
[
["--with-rtree", "Enables the R*Tree index module"],
["--with-fts", "Enables the FTS Module"],
["--universal", "Build a universal binary."]
]
end
def install
ENV.append "CFLAGS", "-DSQLITE_ENABLE_RTREE=1" if ARGV.include? "--with-rtree"
ENV.append "CPPFLAGS","-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS" if ARGV.include? "--with-fts"
ENV.universal_binary if ARGV.include? "--universal"
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"