mysql@5.6: enable all options by default

This commit is contained in:
Mike McQuaid 2018-11-24 13:23:38 +00:00
parent 62727d3b7b
commit 66dd3963d2
No known key found for this signature in database
GPG key ID: 48A898132FD8EE70

View file

@ -12,15 +12,6 @@ class MysqlAT56 < Formula
keg_only :versioned_formula
option "with-embedded", "Build the embedded server"
option "with-archive-storage-engine", "Compile with the ARCHIVE storage engine enabled"
option "with-blackhole-storage-engine", "Compile with the BLACKHOLE storage engine enabled"
option "with-local-infile", "Build with local infile loading support"
option "with-memcached", "Enable innodb-memcached support"
deprecated_option "enable-local-infile" => "with-local-infile"
deprecated_option "enable-memcached" => "with-memcached"
depends_on "cmake" => :build
depends_on "pidof" unless MacOS.version >= :mountain_lion
depends_on "openssl"
@ -51,23 +42,13 @@ class MysqlAT56 < Formula
-DCOMPILATION_COMMENT=Homebrew
-DWITH_EDITLINE=system
-DWITH_UNIT_TESTS=OFF
-DWITH_EMBEDDED_SERVER=ON
-DWITH_ARCHIVE_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DENABLED_LOCAL_INFILE=1
-DWITH_INNODB_MEMCACHED=1
]
# Build the embedded server
args << "-DWITH_EMBEDDED_SERVER=ON" if build.with? "embedded"
# Compile with ARCHIVE engine enabled if chosen
args << "-DWITH_ARCHIVE_STORAGE_ENGINE=1" if build.with? "archive-storage-engine"
# Compile with BLACKHOLE engine enabled if chosen
args << "-DWITH_BLACKHOLE_STORAGE_ENGINE=1" if build.with? "blackhole-storage-engine"
# Build with local infile loading support
args << "-DENABLED_LOCAL_INFILE=1" if build.with? "local-infile"
# Build with memcached support
args << "-DWITH_INNODB_MEMCACHED=1" if build.with? "memcached"
system "cmake", ".", *std_cmake_args, *args
system "make"
system "make", "install"