From 13556ecb8f9b587d4778bc263ccc27183713450b Mon Sep 17 00:00:00 2001 From: Trevor Muñoz Date: Thu, 24 Nov 2011 19:12:35 -0700 Subject: Jing 20091111 Jing is a tool for validating XML documents according to RelaxNG schema. Manual can be found at: http://www.thaiopensource.com/relaxng/jing.html Signed-off-by: Adam Vandenberg --- Library/Formula/jing.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Library/Formula/jing.rb (limited to 'Library') diff --git a/Library/Formula/jing.rb b/Library/Formula/jing.rb new file mode 100644 index 000000000..1c0479cc5 --- /dev/null +++ b/Library/Formula/jing.rb @@ -0,0 +1,18 @@ +require 'formula' + +class Jing < Formula + homepage 'http://code.google.com/p/jing-trang/' + url 'http://jing-trang.googlecode.com/files/jing-20091111.zip' + md5 '13eef193921409a1636377d1efbf9843' + + def wrapper target; <<-EOS.undent + #!/bin/bash + java -jar "#{libexec}/bin/jing.jar" "$@" + EOS + end + + def install + libexec.install Dir["*"] + (bin+'jing').write wrapper('jing') + end +end -- cgit v1.2.3