ivy 2.2.0

Closes Homebrew/homebrew#7418.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Paul Phillips 2011-09-01 10:22:46 -07:00 committed by Adam Vandenberg
parent 7c444a58ba
commit 7a44e13e9b
1 changed files with 21 additions and 0 deletions

21
Formula/ivy.rb Normal file
View File

@ -0,0 +1,21 @@
require 'formula'
class Ivy < Formula
homepage 'http://ant.apache.org/ivy/'
url 'http://www.apache.org/dist/ant/ivy/2.2.0/apache-ivy-2.2.0-bin.tar.gz'
md5 '80d87a17006518a762ceeb88b692cbe6'
def install
libexec.install Dir['ivy*']
doc.install Dir['doc/*']
(bin+'ivy').write <<-EOS.undent
#!/bin/sh
java $JAVA_OPTS -jar "#{libexec}/ivy-#{version}.jar" "$@"
EOS
end
def test
system "#{bin}/ivy -version"
end
end