2011-11-25 01:42:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Trang < Formula
|
|
|
|
homepage 'http://code.google.com/p/jing-trang/'
|
|
|
|
url 'http://jing-trang.googlecode.com/files/trang-20091111.zip'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b5f1fd4b63f347c8d0575bd1922f94316240cb29'
|
2011-11-25 01:42:31 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
2012-03-17 04:59:28 +00:00
|
|
|
(bin+'trang').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
java -jar "#{libexec}/trang.jar" "$@"
|
|
|
|
EOS
|
2011-11-25 01:42:31 +00:00
|
|
|
end
|
|
|
|
end
|