homebrew-core/Formula/batik.rb
Dominyk Tiller c1b829f4e3 batik 1.9
Closes .

Signed-off-by: JCount <JCount42@gmail.com>
2017-04-18 18:09:12 -04:00

21 lines
806 B
Ruby

class Batik < Formula
desc "Java-based toolkit for SVG images"
homepage "https://xmlgraphics.apache.org/batik/"
url "https://www.apache.org/dist/xmlgraphics/batik/binaries/batik-bin-1.9.tar.gz"
sha256 "349bf6a4f02ce9f631248b224994e20ffc263fe65c1673c9180daa3584418b75"
bottle :unneeded
def install
libexec.install "lib", Dir["*.jar"]
bin.write_jar_script libexec/"batik-rasterizer-#{version}.jar", "batik-rasterizer"
bin.write_jar_script libexec/"batik-#{version}.jar", "batik"
bin.write_jar_script libexec/"batik-ttf2svg-#{version}.jar", "batik-ttf2svg"
end
test do
system bin/"batik-ttf2svg", "/Library/Fonts/Webdings.ttf", "-autorange",
"-o", "Webdings.svg", "-testcard"
assert_match "abcdefghijklmnopqrstuvwxyz", File.read("Webdings.svg")
end
end