From c2ff9aeb86b50a26356d8234c807ed69deeb2a2b Mon Sep 17 00:00:00 2001 From: int128 Date: Thu, 26 Feb 2015 12:10:02 +0900 Subject: gssh 1.1.5 Closes #37208. Signed-off-by: Mike McQuaid --- Library/Formula/gssh.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Library/Formula/gssh.rb (limited to 'Library/Formula') diff --git a/Library/Formula/gssh.rb b/Library/Formula/gssh.rb new file mode 100644 index 000000000..75e621a4a --- /dev/null +++ b/Library/Formula/gssh.rb @@ -0,0 +1,24 @@ +class Gssh < Formula + homepage "https://github.com/int128/groovy-ssh" + url "https://github.com/int128/groovy-ssh/releases/download/v1.1.5/gssh.jar" + version "1.1.5" + sha1 "c050c74b5d491e836d8210758369466162abf946" + + head "https://github.com/int128/groovy-ssh.git" + + depends_on :java => "1.6+" + + def install + if build.head? + system "./gradlew", "shadowJar" + libexec.install "build/libs/gssh.jar" + else + libexec.install "gssh.jar" + end + bin.write_jar_script libexec/"gssh.jar", "gssh" + end + + test do + system "gssh" + end +end -- cgit v1.2.3