2010-06-11 22:30:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Apgdiff < Formula
|
2012-06-09 11:04:09 +00:00
|
|
|
homepage 'http://apgdiff.startnet.biz/index.php'
|
|
|
|
url 'http://apgdiff.startnet.biz/download/apgdiff-2.3-bin.zip'
|
|
|
|
mirror 'http://downloads.sourceforge.net/project/apgdiff/apgdiff/apgdiff-2.3/apgdiff-2.3-bin.zip'
|
|
|
|
sha1 '6d42dd3b2496dec0063de3070ad7306a1588e266'
|
2010-06-11 22:30:49 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-09 11:04:09 +00:00
|
|
|
libexec.install "apgdiff-#{version}.jar"
|
|
|
|
prefix.install 'changelog.txt' => 'ChangeLog'
|
|
|
|
prefix.install 'license.txt' => 'LICENSE'
|
2012-02-13 05:13:28 +00:00
|
|
|
(bin+'apgdiff').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
2012-06-09 11:04:09 +00:00
|
|
|
java -jar "#{libexec}/apgdiff-#{version}.jar" "$@"
|
2012-02-13 05:13:28 +00:00
|
|
|
EOS
|
2010-06-11 22:30:49 +00:00
|
|
|
end
|
|
|
|
end
|