Skip to content

Commit

Permalink
Improvements to cmake install
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jul 23, 2009
1 parent e97c31e commit 905f31e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
/lib
/include
/share
/etc
!/Library/
!/bin/brew
!/bin/brew
6 changes: 4 additions & 2 deletions Library/Formula/cmake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
class Cmake <Formula
@url='http://www.cmake.org/files/v2.6/cmake-2.6.3.tar.gz'
@md5='5ba47a94ce276f326abca1fd72a7e7c6'
@homepage='http://www.cmake.org/'

def deps
LibraryDep.new 'xmlrpc', 'xmlrpc-c'
end

def install
system "./bootstrap --prefix=#{prefix} --system-libs"
system "./bootstrap --prefix=#{prefix} --system-libs --datadir=/share/cmake --docdir=/share/cmake --mandir=/share/man"
system "make install"

['man','doc'].each { |d| (prefix+d).mv prefix+'share' }
# txt sucks, welcome to 1990
Dir["#{prefix}/share/cmake/*.txt"].each {|f| File.unlink f}
end
end

0 comments on commit 905f31e

Please sign in to comment.