2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-08 17:33:03 +00:00
|
|
|
|
|
|
|
class Sqlite <Formula
|
2010-04-12 18:19:13 +00:00
|
|
|
url 'http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz'
|
|
|
|
md5 'ed585bb3d4e5c643843ebb1e318644ce'
|
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
|
|
|
|
[
|
|
|
|
["--with-rtree", "Enables the R*Tree index module"]
|
|
|
|
]
|
|
|
|
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
|