aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXiyue Deng2012-12-15 13:34:56 -0800
committerJack Nagel2012-12-15 17:31:12 -0600
commit4085c0b476fdf10b33fe368eb263b74e4ff57b43 (patch)
tree55bdbd93a3cd35558b3c050d6dce850dbddfd339 /Library/Formula
parentcde19e7d42c9932fa2546d6eb55c3c0e74289a38 (diff)
downloadhomebrew-4085c0b476fdf10b33fe368eb263b74e4ff57b43.tar.bz2
New formula: ecj
This is splitted from GCC formulae to avoid conflicts between different GCC versions. Closes #16590. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-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