class Walkmod < Formula desc "Java-based project to apply and share code conventions" homepage "http://www.walkmod.com" url "https://bitbucket.org/rpau/walkmod/downloads/walkmod-2.3.2-installer.zip" sha256 "af3f07474e8a0526bf2e5ea6ec8adc1b6245996714031f8b3bd4a7c81bb50b2d" bottle :unneeded depends_on :java => "1.7+" def install # Remove windows files rm_f Dir["bin/*.bat"] libexec.install Dir["*"] bin.install_symlink libexec+"bin/walkmod" end test do system "git", "clone", "--depth", "1", "https://github.com/walkmod/walkmod-core.git" cd "walkmod-core" system bin/"walkmod", "check" end end