aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/ecj.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/ecj.rb b/Library/Formula/ecj.rb
new file mode 100644
index 000000000..477692e0f
--- /dev/null
+++ b/Library/Formula/ecj.rb
@@ -0,0 +1,14 @@
+require 'formula'
+
+# This formula is intended to be used by gcc formulae with java support.
+
+class Ecj < Formula
+ homepage 'http://gcc.gnu.org'
+ url 'ftp://sourceware.org/pub/java/ecj-4.5.jar'
+ mirror 'http://mirrors.kernel.org/sources.redhat.com/java/ecj-4.5.jar'
+ sha1 '58c1d79c64c8cd718550f32a932ccfde8d1e6449'
+
+ def install
+ (share/'java').install "ecj-#{version}.jar" => 'ecj.jar'
+ end
+end