plantuml: fix non-/usr/local installations. (#1464)
* plantuml 8041 * plantuml: use the homebrew version of graphviz installed as dependency This fixes plantuml when homebrew prefix is not `/usr/local`.
This commit is contained in:
parent
ac6627d471
commit
1cd9490c6f
1 changed files with 6 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
class Plantuml < Formula
|
||||
desc "Draw UML diagrams"
|
||||
homepage "http://plantuml.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/plantuml/plantuml.8039.jar"
|
||||
sha256 "a82d120fbb5109b6187f53bb8f9c479706ba305352e7bcaaecef5d2b3fed0470"
|
||||
url "https://downloads.sourceforge.net/project/plantuml/plantuml.8041.jar"
|
||||
sha256 "8964b8ea316e37492d9a4533a57338c46f629cdd920d48ddae53e2b62f5b6c8d"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
|
@ -11,7 +11,10 @@ class Plantuml < Formula
|
|||
def install
|
||||
jar = "plantuml.#{version}.jar"
|
||||
prefix.install jar
|
||||
bin.write_jar_script prefix/jar, "plantuml"
|
||||
(bin+"plantuml").write <<-EOS.undent
|
||||
#!/bin/bash
|
||||
GRAPHVIZ_DOT="#{Formula["graphviz"].opt_bin}/dot" exec java -jar #{prefix}/#{jar} "$@"
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue