diff options
| author | Mislav Marohnić | 2011-07-10 14:47:40 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-07-10 11:09:55 -0700 |
| commit | b04a1ab4eac1d31dfe7ec0921e01515cbc7f5de1 (patch) | |
| tree | 175ea53e4446703bf0e1cae5cb3d942590bc58ae /Library/Formula | |
| parent | e47a255f74fe743963ede9fcb8f36b52a2e5079c (diff) | |
| download | homebrew-b04a1ab4eac1d31dfe7ec0921e01515cbc7f5de1.tar.bz2 | |
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 <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mysql.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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? |
