homebrew-core/Formula/walkmod.rb

30 lines
914 B
Ruby

class Walkmod < Formula
desc "Java-based open source tool to apply and share code conventions"
homepage "https://walkmod.com/"
url "https://bitbucket.org/rpau/walkmod/downloads/walkmod-3.0.0-installer.zip"
sha256 "7d83564b8b11ce02b5a0924e552a8f006524003a03749e5fe901c937cff3d544"
license "GPL-3.0-or-later"
revision 1
bottle do
sha256 cellar: :any_skip_relocation, all: "532f649c7bad73761473554fca6bd1bb4ede5105775beda4e199e5cdeddfdd58"
end
deprecate! date: "2022-12-23", because: :unmaintained
depends_on "openjdk"
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
libexec.install Dir["*"]
(bin/"walkmod").write_env_script libexec/"bin/walkmod", JAVA_HOME: Formula["openjdk"].opt_prefix
end
test do
system "git", "clone", "--depth", "1", "https://github.com/walkmod/walkmod-core.git"
cd "walkmod-core"
system bin/"walkmod", "chains"
end
end