aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ivy.rb
diff options
context:
space:
mode:
authorPaul Phillips2011-09-01 10:22:46 -0700
committerAdam Vandenberg2012-02-17 19:43:03 -0800
commitae4fd534ecdaa92a9b60208902c8d0e7c3665567 (patch)
tree4529c9ec97e1e87bd763a67bdee33fde6207466f /Library/Formula/ivy.rb
parent8af8724524679b14f46d068515fa07d369a3a6b3 (diff)
downloadhomebrew-ae4fd534ecdaa92a9b60208902c8d0e7c3665567.tar.bz2
ivy 2.2.0
Closes #7418. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ivy.rb')
-rw-r--r--Library/Formula/ivy.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/ivy.rb b/Library/Formula/ivy.rb
new file mode 100644
index 000000000..ca45b9823
--- /dev/null
+++ b/Library/Formula/ivy.rb
@@ -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