mariadb 10.1.8

mariadb: promote 10.1.8 to stable

Announcement: https://blog.mariadb.org/mariadb-10-1-is-stable-ga/

Closes Homebrew/homebrew#45172.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Dan 2015-10-20 08:08:28 +02:00 committed by Baptiste Fontaine
parent da1969bccf
commit ac3e18c8d5

View file

@ -1,8 +1,8 @@
class Mariadb < Formula
desc "Drop-in replacement for MySQL"
homepage "https://mariadb.org/"
url "http://ftp.osuosl.org/pub/mariadb/mariadb-10.0.21/source/mariadb-10.0.21.tar.gz"
sha256 "4b9a32e15ceadefdb1057a02eb3e0addf702b75aef631a3c9194b832ecfa3545"
url "http://ftp.osuosl.org/pub/mariadb/mariadb-10.1.8/source/mariadb-10.1.8.tar.gz"
sha256 "7cbf6a4649aa6dc9cd1dc24424ade7b994de78582ce4d47ca0f4cd1c4c003bfa"
bottle do
revision 2
@ -11,13 +11,9 @@ class Mariadb < Formula
sha256 "e804cb846bcf19b389a0c2d7c728e9f9c9b377de7c71fb0e0ff9c2f27f85e722" => :mavericks
end
devel do
url "http://ftp.osuosl.org/pub/mariadb/mariadb-10.1.8/source/mariadb-10.1.8.tar.gz"
sha256 "7cbf6a4649aa6dc9cd1dc24424ade7b994de78582ce4d47ca0f4cd1c4c003bfa"
# fix compilation failure with clang in mroonga storage engine
# https://mariadb.atlassian.net/projects/MDEV/issues/MDEV-8551
patch :DATA
end
# fix compilation failure with clang in mroonga storage engine
# https://mariadb.atlassian.net/projects/MDEV/issues/MDEV-8551
patch :DATA
option :universal
option "with-tests", "Keep test when installing"
@ -78,11 +74,7 @@ class Mariadb < Formula
]
# disable TokuDB, which is currently not supported on Mac OS X
if build.stable?
args << "-DWITHOUT_TOKUDB=1"
else
args << "-DPLUGIN_TOKUDB=NO"
end
args << "-DPLUGIN_TOKUDB=NO"
args << "-DWITH_UNIT_TESTS=OFF" if build.without? "tests"
@ -93,22 +85,10 @@ class Mariadb < Formula
args << "-DWITH_READLINE=yes" if build.without? "libedit"
# Compile with ARCHIVE engine enabled if chosen
if build.with? "archive-storage-engine"
if build.stable?
args << "-DWITH_ARCHIVE_STORAGE_ENGINE=1"
else
args << "-DPLUGIN_ARCHIVE=YES"
end
end
args << "-DPLUGIN_ARCHIVE=YES" if build.with? "archive-storage-engine"
# Compile with BLACKHOLE engine enabled if chosen
if build.with? "blackhole-storage-engine"
if build.stable?
args << "-DWITH_BLACKHOLE_STORAGE_ENGINE=1"
else
args << "-DPLUGIN_BLACKHOLE=YES"
end
end
args << "-DPLUGIN_BLACKHOLE=YES" if build.with? "blackhole-storage-engine"
# Make universal for binding to universal applications
if build.universal?
@ -149,20 +129,18 @@ class Mariadb < Formula
bin.install_symlink prefix/"support-files/mysql.server"
if build.devel?
# Move sourced non-executable out of bin into libexec
libexec.mkpath
libexec.install "#{bin}/wsrep_sst_common"
# Fix up references to wsrep_sst_common
%W[
wsrep_sst_mysqldump
wsrep_sst_rsync
wsrep_sst_xtrabackup
wsrep_sst_xtrabackup-v2
].each do |f|
inreplace "#{bin}/#{f}" do |s|
s.gsub!("$(dirname $0)/wsrep_sst_common", "#{libexec}/wsrep_sst_common")
end
# Move sourced non-executable out of bin into libexec
libexec.mkpath
libexec.install "#{bin}/wsrep_sst_common"
# Fix up references to wsrep_sst_common
%W[
wsrep_sst_mysqldump
wsrep_sst_rsync
wsrep_sst_xtrabackup
wsrep_sst_xtrabackup-v2
].each do |f|
inreplace "#{bin}/#{f}" do |s|
s.gsub!("$(dirname $0)/wsrep_sst_common", "#{libexec}/wsrep_sst_common")
end
end
end