homebrew-core/Formula/sqlite.rb

26 lines
777 B
Ruby
Raw Normal View History

require 'formula'
2009-08-08 17:33:03 +00:00
2011-03-10 05:11:03 +00:00
class Sqlite < Formula
homepage 'http://sqlite.org/'
url 'http://www.sqlite.org/sqlite-autoconf-3070700.tar.gz'
md5 'a98df57053adf4c132b6b7ab59e9f333'
version '3.7.7'
2009-08-08 17:33:03 +00:00
def options
2010-11-02 14:40:27 +00:00
[
["--with-rtree", "Enables the R*Tree index module"],
["--with-fts", "Enables the FTS Module"],
2010-11-02 14:40:27 +00:00
["--universal", "Build a universal binary."]
]
end
2009-08-08 17:33:03 +00:00
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"
2011-04-21 16:42:27 +00:00
ENV.universal_binary if ARGV.build_universal?
2010-03-12 18:20:08 +00:00
system "./configure", "--prefix=#{prefix}",
2009-08-08 17:33:03 +00:00
"--disable-dependency-tracking"
system "make install"
end
end