homebrew-core/Formula/sqlite.rb
Andrew Nesbitt 2e0906b7ca sqlite 3.7.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-25 09:28:11 -07:00

25 lines
777 B
Ruby

require 'formula'
class Sqlite < Formula
homepage 'http://sqlite.org/'
url 'http://www.sqlite.org/sqlite-autoconf-3070700.tar.gz'
md5 'a98df57053adf4c132b6b7ab59e9f333'
version '3.7.7'
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.build_universal?
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking"
system "make install"
end
end