homebrew-core/Formula/sjk.rb
2017-05-06 01:00:58 +02:00

30 lines
930 B
Ruby

class Sjk < Formula
desc "Swiss Java Knife"
homepage "https://github.com/aragozin/jvm-tools"
url "https://github.com/aragozin/jvm-tools/archive/jvmtool-umbrella-pom-0.5.1.tar.gz"
sha256 "d6e34a7e9ce8a094bcf8b5ceab092c04a7307a9a4e7eca0005b7d4f70dd98942"
revision 1
bottle do
cellar :any_skip_relocation
sha256 "763a1ec26af64f3d0c7fa0618af1d2c4f7f9a9c1b3cf623f58bd103ccac7ccbc" => :sierra
sha256 "3b335b625144874891261d6acfa4ef88483b57fe0712ff3d9e7b36320dda152d" => :el_capitan
sha256 "7a3731b4df74fb8903bc59b5e3c2f932fb01988a30fca5e692de860dee0539c7" => :yosemite
end
depends_on "maven" => :build
depends_on :java
def install
ENV.java_cache
system "mvn", "clean", "package"
cd "sjk-plus/target" do
libexec.install "sjk-plus-#{version}.jar"
bin.write_jar_script "#{libexec}/sjk-plus-#{version}.jar", "sjk"
end
end
test do
system bin/"sjk", "jps"
end
end