35 lines
949 B
Ruby
35 lines
949 B
Ruby
class Umple < Formula
|
|
desc "Modeling tool/programming language that enables Model-Oriented Programming"
|
|
homepage "https://www.umple.org"
|
|
url "https://github.com/umple/umple/releases/download/v1.32.0/umple-1.32.0.6441.414d09714.jar"
|
|
version "1.32.0"
|
|
sha256 "cd5a85b1192122ae88ea89f20487c48547088501ac3c93ea406a0aef25ac1a02"
|
|
license "MIT"
|
|
version_scheme 1
|
|
|
|
livecheck do
|
|
url :stable
|
|
strategy :github_latest
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "59b672bd1080c3e1639c38590af8cd58a755f4ee118935ad14801c4a142190ac"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
filename = File.basename(stable.url)
|
|
|
|
libexec.install filename
|
|
bin.write_jar_script libexec/filename, "umple"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.ump").write("class X{ a; }")
|
|
system "#{bin}/umple", "test.ump", "-c", "-"
|
|
assert_predicate testpath/"X.java", :exist?
|
|
assert_predicate testpath/"X.class", :exist?
|
|
end
|
|
end
|