aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-12-11 14:07:08 -0600
committerJack Nagel2011-12-11 14:08:17 -0600
commitd7acdf18e7fa3f1f031304ee0cbcf81cd89ef155 (patch)
treee1d9518542c5e681fa56069b24c6fc336d936c8b /Library
parent285c16b1463d55e3300f4589f255c4707d6d78e8 (diff)
downloadhomebrew-d7acdf18e7fa3f1f031304ee0cbcf81cd89ef155.tar.bz2
sqlite: add option to install HTML docs
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sqlite.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/sqlite.rb b/Library/Formula/sqlite.rb
index e802bf148..9063e062d 100644
--- a/Library/Formula/sqlite.rb
+++ b/Library/Formula/sqlite.rb
@@ -6,6 +6,12 @@ class SqliteFunctions < Formula
version '2010-01-06'
end
+class SqliteDocs < Formula
+ url 'http://www.sqlite.org/sqlite-doc-3070900.zip'
+ sha1 '2d4a25f75cc6b7251f1b49b828f9fd1d699fc8a2'
+ version '3.7.9'
+end
+
class Sqlite < Formula
homepage 'http://sqlite.org/'
url 'http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz'
@@ -16,6 +22,7 @@ class Sqlite < Formula
def options
[
+ ["--with-docs", "Install HTML documentation"],
["--with-rtree", "Enable the R*Tree index module"],
["--with-fts", "Enable the FTS Module"],
["--universal", "Build a universal binary"],
@@ -47,6 +54,8 @@ class Sqlite < Formula
system ENV.cc, "-fno-common", "-dynamiclib", "extension-functions.c", "-o", "libsqlitefunctions.dylib", *ENV.cflags.split
lib.install "libsqlitefunctions.dylib"
end
+
+ SqliteDocs.new.brew { doc.install Dir['*'] } if ARGV.include? "--with-docs"
end
if ARGV.include? "--with-functions"