diff options
Diffstat (limited to 'Formula/cmake.rb')
| -rw-r--r-- | Formula/cmake.rb | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Formula/cmake.rb b/Formula/cmake.rb index 2f3a3af1f..ee35e3eef 100644 --- a/Formula/cmake.rb +++ b/Formula/cmake.rb @@ -1,19 +1,13 @@ -$:.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' +class Cmake <Formula + @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" - - # the people who develop cmake are just idiots - share=prefix+'share' - FileUtils.mv prefix+'man', share - FileUtils.mv prefix+'doc', share - - nil + def install + system "./bootstrap --prefix=#{prefix} --system-libs" + system "make install" + + ['man','doc'].each { |d| (prefix+d).mv prefix+'share' } + end end
\ No newline at end of file |
