Move cmake mac and doc directories to share

This commit is contained in:
Max Howell 2009-05-21 12:41:05 +01:00
parent 1b5d1c16ac
commit ee385a2ca9

View File

@ -1,5 +1,6 @@
$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks $:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks
require 'brewkit' require 'brewkit'
require 'fileutils'
url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz' url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz'
md5='5ba47a94ce276f326abca1fd72a7e7c6' md5='5ba47a94ce276f326abca1fd72a7e7c6'
@ -8,4 +9,11 @@ Formula.new(url, md5).brew do |prefix|
system "./bootstrap --prefix=#{prefix} --system-libs" system "./bootstrap --prefix=#{prefix} --system-libs"
system "make" system "make"
system "make install" 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 end