diff options
| author | Max Howell | 2009-05-21 12:41:05 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-21 12:41:05 +0100 |
| commit | ee385a2ca9e22b5d4d089f95b492b0b90c71a8e3 (patch) | |
| tree | f30f55426efc5e5055284678dc205929c0ff5857 | |
| parent | 1b5d1c16acc16c6be766276fb612b7a02e6aeae9 (diff) | |
| download | brew-ee385a2ca9e22b5d4d089f95b492b0b90c71a8e3.tar.bz2 | |
Move cmake mac and doc directories to share
| -rw-r--r-- | Formula/cmake.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Formula/cmake.rb b/Formula/cmake.rb index 0961a8254..2f3a3af1f 100644 --- a/Formula/cmake.rb +++ b/Formula/cmake.rb @@ -1,5 +1,6 @@ $:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks require 'brewkit' +require 'fileutils' url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz' md5='5ba47a94ce276f326abca1fd72a7e7c6' @@ -8,4 +9,11 @@ Formula.new(url, md5).brew do |prefix| system "./bootstrap --prefix=#{prefix} --system-libs" system "make" system "make install" + + # the people who develop cmake are just idiots + share=prefix+'share' + FileUtils.mv prefix+'man', share + FileUtils.mv prefix+'doc', share + + nil end
\ No newline at end of file |
