aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sqlite.rb
diff options
context:
space:
mode:
authorTomasz Pajor2014-08-07 23:12:12 -0500
committerJack Nagel2014-08-07 23:12:12 -0500
commitdf1b2af10b8fe7608cd4b3bbdaf20e030325c519 (patch)
treef977dd68789e5f49639e10ddcc7331fb86485a75 /Library/Formula/sqlite.rb
parent1a82df7edfefb7c59a92aecaf4aa3736eda6eec0 (diff)
downloadhomebrew-df1b2af10b8fe7608cd4b3bbdaf20e030325c519.tar.bz2
sqlite: bump revision for icu4c upgrade
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/sqlite.rb')
-rw-r--r--Library/Formula/sqlite.rb45
1 files changed, 23 insertions, 22 deletions
diff --git a/Library/Formula/sqlite.rb b/Library/Formula/sqlite.rb
index 16776c516..4805781d3 100644
--- a/Library/Formula/sqlite.rb
+++ b/Library/Formula/sqlite.rb
@@ -1,10 +1,11 @@
-require 'formula'
+require "formula"
class Sqlite < Formula
- homepage 'http://sqlite.org/'
+ homepage "http://sqlite.org/"
url "http://sqlite.org/2014/sqlite-autoconf-3080500.tar.gz"
version "3.8.5"
sha1 "7f667e10ccebc26ab2086b8a30cb0a600ca0acae"
+ revision 1
bottle do
cellar :any
@@ -16,31 +17,31 @@ class Sqlite < Formula
keg_only :provided_by_osx, "OS X provides an older sqlite3."
option :universal
- option 'with-docs', 'Install HTML documentation'
- option 'without-rtree', 'Disable the R*Tree index module'
- option 'with-fts', 'Enable the FTS module'
- option 'with-icu4c', 'Enable the ICU module'
- option 'with-functions', 'Enable more math and string functions for SQL queries'
-
- depends_on 'readline' => :recommended
- depends_on 'icu4c' => :optional
-
- resource 'functions' do
- url 'http://www.sqlite.org/contrib/download/extension-functions.c?get=25', :using => :nounzip
- version '2010-01-06'
- sha1 'c68fa706d6d9ff98608044c00212473f9c14892f'
+ option "with-docs", "Install HTML documentation"
+ option "without-rtree", "Disable the R*Tree index module"
+ option "with-fts", "Enable the FTS module"
+ option "with-icu4c", "Enable the ICU module"
+ option "with-functions", "Enable more math and string functions for SQL queries"
+
+ depends_on "readline" => :recommended
+ depends_on "icu4c" => :optional
+
+ resource "functions" do
+ url "http://www.sqlite.org/contrib/download/extension-functions.c?get=25", :using => :nounzip
+ version "2010-01-06"
+ sha1 "c68fa706d6d9ff98608044c00212473f9c14892f"
end
- resource 'docs' do
+ resource "docs" do
url "http://sqlite.org/2014/sqlite-doc-3080500.zip"
version "3.8.5"
sha1 "c5655a4004095c50dc8403661e0ed02fd4191d57"
end
def install
- ENV.append 'CPPFLAGS', "-DSQLITE_ENABLE_RTREE" if build.with? "rtree"
- ENV.append 'CPPFLAGS', "-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS" if build.with? "fts"
- ENV.append 'CPPFLAGS', "-DSQLITE_ENABLE_COLUMN_METADATA"
+ ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_RTREE" if build.with? "rtree"
+ ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS" if build.with? "fts"
+ ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_COLUMN_METADATA"
if build.with? "icu4c"
icu4c = Formula['icu4c']
@@ -57,7 +58,7 @@ class Sqlite < Formula
system "make install"
if build.with? "functions"
- buildpath.install resource('functions')
+ buildpath.install resource("functions")
system ENV.cc, "-fno-common",
"-dynamiclib",
"extension-functions.c",
@@ -65,11 +66,11 @@ class Sqlite < Formula
*ENV.cflags.to_s.split
lib.install "libsqlitefunctions.dylib"
end
- doc.install resource('docs') if build.with? "docs"
+ doc.install resource("docs") if build.with? "docs"
end
def caveats
- if build.with? 'functions' then <<-EOS.undent
+ if build.with? "functions" then <<-EOS.undent
Usage instructions for applications calling the sqlite3 API functions:
In your application, call sqlite3_enable_load_extension(db,1) to