aboutsummaryrefslogtreecommitdiffstats
path: root/Formula/cmake.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Formula/cmake.rb')
-rw-r--r--Formula/cmake.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Formula/cmake.rb b/Formula/cmake.rb
new file mode 100644
index 000000000..0961a8254
--- /dev/null
+++ b/Formula/cmake.rb
@@ -0,0 +1,11 @@
+$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks
+require 'brewkit'
+
+url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz'
+md5='5ba47a94ce276f326abca1fd72a7e7c6'
+
+Formula.new(url, md5).brew do |prefix|
+ system "./bootstrap --prefix=#{prefix} --system-libs"
+ system "make"
+ system "make install"
+end \ No newline at end of file