homebrew-core/Formula/sqlite.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

18 lines
502 B
Ruby

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