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 <martin@afanasjew.de>
This commit is contained in:
parent
41a15fbb8e
commit
ea98100b35
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue