mysql 5.7.18
Closes #12467. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
658e688013
commit
c0472912b5
1 changed files with 8 additions and 11 deletions
|
@ -1,8 +1,8 @@
|
|||
class Mysql < Formula
|
||||
desc "Open source relational database management system"
|
||||
homepage "https://dev.mysql.com/doc/refman/5.7/en/"
|
||||
url "https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.17.tar.gz"
|
||||
sha256 "b75bba87199ef6a6ccc5dfbcaf70949009dc12089eafad8c5254afc9002aa903"
|
||||
url "https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-boost-5.7.18.tar.gz"
|
||||
sha256 "ae6f5e2cf7b936496cf60260cd7fd5a0862c21f48cd240448021c4ea067a0f0c"
|
||||
|
||||
bottle do
|
||||
rebuild 1
|
||||
|
@ -28,7 +28,7 @@ class Mysql < Formula
|
|||
|
||||
# https://github.com/Homebrew/homebrew-core/issues/1475
|
||||
# Needs at least Clang 3.3, which shipped alongside Lion.
|
||||
# Note: MySQL themselves don't support anything below Mavericks.
|
||||
# Note: MySQL themselves don't support anything below El Capitan.
|
||||
depends_on :macos => :lion
|
||||
|
||||
conflicts_with "mysql-cluster", "mariadb", "percona-server",
|
||||
|
@ -44,7 +44,7 @@ class Mysql < Formula
|
|||
|
||||
def install
|
||||
# Don't hard-code the libtool path. See:
|
||||
# https://github.com/Homebrew/homebrew/issues/20185
|
||||
# https://github.com/Homebrew/legacy-homebrew/issues/20185
|
||||
inreplace "cmake/libutils.cmake",
|
||||
"COMMAND /usr/bin/libtool -static -o ${TARGET_LOCATION}",
|
||||
"COMMAND libtool -static -o ${TARGET_LOCATION}"
|
||||
|
@ -109,13 +109,10 @@ class Mysql < Formula
|
|||
(prefix/"scripts").install "client/mysql_install_db"
|
||||
bin.install_symlink prefix/"scripts/mysql_install_db"
|
||||
|
||||
# Fix up the control script and link into bin
|
||||
inreplace "#{prefix}/support-files/mysql.server" do |s|
|
||||
s.gsub!(/^(PATH=".*)(")/, "\\1:#{HOMEBREW_PREFIX}/bin\\2")
|
||||
# pidof can be replaced with pgrep from proctools on Mountain Lion
|
||||
s.gsub!(/pidof/, "pgrep") if MacOS.version >= :mountain_lion
|
||||
end
|
||||
|
||||
# Fix up the control script and link into bin.
|
||||
inreplace "#{prefix}/support-files/mysql.server",
|
||||
/^(PATH=".*)(")/,
|
||||
"\\1:#{HOMEBREW_PREFIX}/bin\\2"
|
||||
bin.install_symlink prefix/"support-files/mysql.server"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue