blob: c3e4a502e35229269b51ca2e6931fd49c5e1f31b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | require 'formula'
class Sqlite <Formula
  url 'http://www.sqlite.org/sqlite-amalgamation-3.7.0.1.tar.gz'
  md5 '24b589eb1522b4d9a179a621d0729dfa'
  homepage 'http://www.sqlite.org/'
  def options
    [["--with-rtree", "Enables the R*Tree index module"]]
  end
  def install
    ENV.append "CFLAGS", "-DSQLITE_ENABLE_RTREE=1" if ARGV.include? "--with-rtree"
    system "./configure", "--prefix=#{prefix}",
                          "--disable-dependency-tracking"
    system "make install"
  end
end
 |