2009-10-15 08:07:12 +00:00
|
|
|
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
|
|
|
|
2010-04-08 02:41:07 +00:00
|
|
|
def options
|
2010-04-07 05:58:35 +00:00
|
|
|
[["--with-rtree", "Enables the R*Tree index module"]]
|
2010-04-08 02:41:07 +00:00
|
|
|
end
|
|
|
|
|
2009-08-08 17:33:03 +00:00
|
|
|
def install
|
2010-04-08 02:41:07 +00:00
|
|
|
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
|
2010-04-08 02:41:07 +00:00
|
|
|
end
|