homebrew-core/Formula/sqlite.rb

19 lines
500 B
Ruby
Raw Normal View History

require 'formula'
2009-08-08 17:33:03 +00:00
class Sqlite <Formula
2010-08-25 18:34:54 +00:00
url 'http://www.sqlite.org/sqlite-amalgamation-3.7.2.tar.gz'
md5 'bd9586208f48ba840467bcfd066a6fa9'
2009-11-21 17:50:07 +00:00
homepage 'http://www.sqlite.org/'
2009-08-08 17:33:03 +00:00
def options
[["--with-rtree", "Enables the R*Tree index module"]]
end
2009-08-08 17:33:03 +00:00
def install
ENV.append "CFLAGS", "-DSQLITE_ENABLE_RTREE=1" if ARGV.include? "--with-rtree"
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