aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRobert Iannucci2009-09-24 23:31:17 -0700
committerMax Howell2009-10-02 16:30:34 +0100
commit7f1098d6cf656cd21ef6f01d4479ac8eda14f5bc (patch)
tree7493dab883e4f90931f6f4185ae602d36c03ee25 /Library/Formula
parentc28a95bd5a7bf5b974f84c1ce1419a8791ea7d9f (diff)
downloadhomebrew-7f1098d6cf656cd21ef6f01d4479ac8eda14f5bc.tar.bz2
ccache formula
ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ccache.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/ccache.rb b/Library/Formula/ccache.rb
new file mode 100644
index 000000000..25aa37faf
--- /dev/null
+++ b/Library/Formula/ccache.rb
@@ -0,0 +1,13 @@
+require 'brewkit'
+
+class Ccache <Formula
+ @url='http://samba.org/ftp/ccache/ccache-2.4.tar.gz'
+ @homepage='http://ccache.samba.org/'
+ @md5='73c1ed1e767c1752dd0f548ec1e66ce7'
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make"
+ system "make install"
+ end
+end