From 4c0f8f51aded3bc47c77669ea22cebaffb24d588 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Fri, 18 Mar 2016 21:42:30 +0400 Subject: [PATCH] kobalt 0.683 kobalt 0.683. Closes Homebrew/homebrew#50243. Signed-off-by: Andrew Janke --- Formula/kobalt.rb | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Formula/kobalt.rb b/Formula/kobalt.rb index c4bd313555..a23e5d1c00 100644 --- a/Formula/kobalt.rb +++ b/Formula/kobalt.rb @@ -1,16 +1,18 @@ class Kobalt < Formula desc "Build system" homepage "http://beust.com/kobalt" - url "https://github.com/cbeust/kobalt/releases/download/0.666/kobalt-0.666.zip" - sha256 "c43f225dadf4ca8431018a68573d38408a8fa84afde33860bed656f150b3d469" + url "https://github.com/cbeust/kobalt/releases/download/0.683/kobalt-0.683.zip" + sha256 "f9c08269f3065aaa4a13362e62f2ed85f077ab34e2b61f66e158d36c3f535d85" bottle :unneeded def install - libexec.install %w[kobaltw kobalt] - kobaltw = libexec/"kobaltw" - kobaltw.chmod 0755 - bin.write_exec_script kobaltw + libexec.install %w[kobalt] + + (bin/"kobaltw").write <<-EOS.undent + #!/bin/bash + java -jar #{libexec}/kobalt/wrapper/kobalt-wrapper.jar $* + EOS end test do @@ -30,13 +32,14 @@ class Kobalt < Formula name = "test" version = "1.0" assemble { - jar {} + jar {} + } } - } EOS system "#{bin}/kobaltw", "assemble" output = "kobaltBuild/libs/test-1.0.jar" assert File.exist?(output), "Couldn't find #{output}" + end end