kobalt 0.683
kobalt 0.683. Closes Homebrew/homebrew#50243. Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
parent
109253611b
commit
4c0f8f51ad
1 changed files with 11 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue