homebrew-core/Formula/apgdiff.rb
nibbles 2bits de439c4cfc apgdiff 2.3
Upgrade apgdiff to version 2.3.
Use `version` string in the heredoc and libexec.install lines
so we don't have to change that at the next upgrade.
Install the metafiles in `prefix`.
Use the official site as the url.  Change sf.net to the mirror.
Tested on Lion using clang and llvm-gcc.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-09 07:32:37 -07:00

18 lines
598 B
Ruby

require 'formula'
class Apgdiff < Formula
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'
def install
libexec.install "apgdiff-#{version}.jar"
prefix.install 'changelog.txt' => 'ChangeLog'
prefix.install 'license.txt' => 'LICENSE'
(bin+'apgdiff').write <<-EOS.undent
#!/bin/bash
java -jar "#{libexec}/apgdiff-#{version}.jar" "$@"
EOS
end
end