homebrew-core/Formula/umlet.rb
Mike McQuaid 7a4dabfc1a Use hash rockets again. ()
This restores 1.8 hash rockets because they look nicer with e.g. `depends_on :foo => :bar`
2016-09-24 16:45:48 +01:00

31 lines
949 B
Ruby

class Umlet < Formula
desc "This UML tool aimed at providing a fast way of creating UML diagrams."
homepage "http://www.umlet.com/"
url "http://www.umlet.com/umlet_14_2/umlet-standalone-14.2.zip"
sha256 "dc09538d04cb899218f3bdfdb5205f60359cff68cb1428d1228c6d91743d8cb9"
bottle :unneeded
depends_on :java => "1.6+"
def install
rm Dir["*.{desktop,exe}"]
libexec.install Dir["*"]
inreplace "#{libexec}/umlet.sh", " java ", " ${JAVA_HOME}/bin/java "
inreplace "#{libexec}/umlet.sh", /^programDir=.*$/,
"programDir=#{libexec}"
chmod 0755, "#{libexec}/umlet.sh"
(bin/"umlet-#{version}").write_env_script "#{libexec}/umlet.sh",
Language::Java.java_home_env("1.6+")
bin.install_symlink "umlet-#{version}" => "umlet"
end
test do
system "#{bin}/umlet", "-action=convert", "-format=png",
"-output=#{testpath}/test-output.png",
"-filename=#{libexec}/palettes/Plots.uxf"
end
end