aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sqlite.rb
blob: 1eb486e56cfc0d8fa4b18b8f99dbeb89f9dcc111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Sqlite <Formula
  url 'http://www.sqlite.org/sqlite-amalgamation-3.7.0.tar.gz'
  md5 '61b85f108760f91b79afc7833e6e6cb4'
  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