sqlite: add secure_delete, unlock_notify options.

Closes Homebrew/homebrew#36140.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Hector Zhao 2015-01-23 00:19:19 +08:00 committed by Mike McQuaid
parent 87c19f5eda
commit cdfd89a788

View file

@ -17,6 +17,8 @@ class Sqlite < Formula
option "with-docs", "Install HTML documentation"
option "without-rtree", "Disable the R*Tree index module"
option "with-fts", "Enable the FTS module"
option "with-secure-delete", "Defaults secure_delete to on"
option "with-unlock-notify", "Enable the unlock notification feature"
option "with-icu4c", "Enable the ICU module"
option "with-functions", "Enable more math and string functions for SQL queries"
@ -39,6 +41,8 @@ class Sqlite < Formula
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_SECURE_DELETE" if build.with? "secure-delete"
ENV.append "CPPFLAGS", "-DSQLITE_ENABLE_UNLOCK_NOTIFY" if build.with? "unlock-notify"
if build.with? "icu4c"
icu4c = Formula["icu4c"]