From b04a1ab4eac1d31dfe7ec0921e01515cbc7f5de1 Mon Sep 17 00:00:00 2001 From: Mislav Marohnić Date: Sun, 10 Jul 2011 14:47:40 +0200 Subject: mysql: compile with readline by default MySQL client compiles with EditLine wrapper by default. This formula configures the build to use readline since it's superior in handling multibyte input, enabling use of non-English languages in the mysql prompt. Users can still choose to use EditLine with the `--with-libedit` flag. Signed-off-by: Adam Vandenberg --- Library/Formula/mysql.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 08450e3cc..b7642b44b 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -17,6 +17,7 @@ class Mysql < Formula [ ['--with-tests', "Build with unit tests."], ['--with-embedded', "Build the embedded server."], + ['--with-libedit', "Compile with EditLine wrapper instead of readline"], ['--universal', "Make mysql a universal binary"], ['--enable-local-infile', "Build with local infile loading support"] ] @@ -51,6 +52,9 @@ class Mysql < Formula # Build the embedded server args << "-DWITH_EMBEDDED_SERVER=ON" if ARGV.include? '--with-embedded' + # Compile with readline unless libedit is explicitly chosen + args << "-DWITH_READLINE=yes" unless ARGV.include? '--with-libedit' + # Make universal for binding to universal applications args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if ARGV.build_universal? -- cgit v1.2.3