homebrew-core/Formula/mysql-sandbox.rb

41 lines
1.4 KiB
Ruby

class MysqlSandbox < Formula
desc "Install one or more MySQL servers"
homepage "http://mysqlsandbox.net"
head "https://github.com/datacharmer/mysql-sandbox.git"
stable do
url "https://github.com/datacharmer/mysql-sandbox/archive/3.2.02.tar.gz"
sha256 "47b5a54b36c767f9898c991fc3de4c7b143d650ba6105a69cd4fefdc2ae8a543"
# Fix the version
# Upstream commit "Fixed download parameter for make_sandbox_from_url"
patch do
url "https://github.com/datacharmer/mysql-sandbox/commit/f6a9b03.patch"
sha256 "811a1ff6aa49c0e679df78edd51a78f6f13f6d1b0cf5dcfb2be632aa479dd151"
end
end
bottle do
cellar :any_skip_relocation
sha256 "bedd438beb1b7e2b2895ed977add733eb5c8d1d52a842dbeb8109acfd622b2aa" => :sierra
sha256 "9eb05c6997159ac70a20a11cbd7385015e8e8ec47ff4c89c1071a0fb41573c94" => :el_capitan
sha256 "e058d701aa83475f9d8654c4a3ecadbfe4d275cc37d6694cc77e9ddc7ebbc19d" => :yosemite
sha256 "c1688beb968e70feac97b42beda44f7d2a9f0eaf4725920c8e9127daf3473c10" => :mavericks
end
def install
ENV["PERL_LIBDIR"] = libexec/"lib/perl5"
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5/site_perl"
system "perl", "Makefile.PL", "PREFIX=#{libexec}"
system "make", "test", "install"
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", :PERL5LIB => ENV["PERL5LIB"])
end
test do
assert_match version.to_s, shell_output("#{bin}/msandbox", 1)
end
end