From ea98100b3568ea15afe9c9fd64db2b813c48237b Mon Sep 17 00:00:00 2001 From: Sadayuki Furuhashi Date: Tue, 21 Jun 2016 14:31:20 -0700 Subject: [PATCH] embulk: use shell wrapper, require java 1.7+ - support Mac OS 10.9 using the same exec script with digdag - embulk requires java 1.7+ Closes #2261. Signed-off-by: Martin Afanasjew --- Formula/embulk.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Formula/embulk.rb b/Formula/embulk.rb index aaea5a6fb2..1e69734eb7 100644 --- a/Formula/embulk.rb +++ b/Formula/embulk.rb @@ -6,14 +6,15 @@ class Embulk < Formula bottle :unneeded - depends_on :java - - skip_clean "libexec" + depends_on :java => "1.7+" def install - (libexec/"bin").install "embulk-#{version}.jar" => "embulk" - chmod 0755, libexec/"bin/embulk" - bin.write_exec_script libexec/"bin/embulk" + # Execute through /bin/bash to be compatible with OS X 10.9. + libexec.install "embulk-#{version}.jar" => "embulk.jar" + (bin/"embulk").write <<-EOS.undent + #!/bin/bash + exec /bin/bash "#{libexec}/embulk.jar" "$@" + EOS end test do