aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mysql.rb
diff options
context:
space:
mode:
authorJoachim Beckers2011-03-27 16:47:54 +0200
committerAdam Vandenberg2011-03-29 12:02:04 -0700
commit9ce1c123eff79625350126c113d9629257dabfac (patch)
treebb35f33191f8657fe35214d62d70f6dc9e1b74b3 /Library/Formula/mysql.rb
parent4e16c6026b708c9837c84569283f0a15372fafbc (diff)
downloadhomebrew-9ce1c123eff79625350126c113d9629257dabfac.tar.bz2
Update MySQL options
* added embedded server build option * fix --with-tests build option * remove broken --with-bench build option Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/mysql.rb')
-rw-r--r--Library/Formula/mysql.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index b57d3a2e0..a5eac57a5 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -12,8 +12,8 @@ class Mysql < Formula
def options
[
- ['--with-tests', "Keep tests when installing."],
- ['--with-bench', "Keep benchmark app when installing."],
+ ['--with-tests', "Build with unit tests."],
+ ['--with-embedded', "Build the embedded server."],
['--universal', "Make mysql a universal binary"]
]
end
@@ -33,8 +33,12 @@ class Mysql < Formula
"-DDEFAULT_COLLATION='utf8_general_ci'",
"-DSYSCONFDIR='#{HOMEBREW_PREFIX}/etc'"]
+ # To enable unit testing at build, we need to download the unit testing suite
args << "-DWITH_UNIT_TESTS=OFF" if not ARGV.include? '--with-tests'
- args << "-DINSTALL_SQLBENCHDIR=" if not ARGV.include? '--with-bench'
+ args << "-DENABLE_DOWNLOADS=ON" if ARGV.include? '--with-tests'
+
+ # Build the embedded server
+ args << "-DWITH_EMBEDDED_SERVER=ON" if ARGV.include? '--with-embedded'
# Make universal for bindings to universal applications
args << "-DCMAKE_OSX_ARCHITECTURES='ppc;i386'" if ARGV.include? '--universal'