aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-07-23 03:02:09 +0100
committerMax Howell2009-07-23 03:02:09 +0100
commit905f31e3bd0c009fa245796ab254d945488dcf9a (patch)
treef4d5363738a0ef70724f367be82d5282c0dfcb9a
parente97c31e35e19207e537c0af1a20e5c7cf5b89d2c (diff)
downloadhomebrew-905f31e3bd0c009fa245796ab254d945488dcf9a.tar.bz2
Improvements to cmake install
-rw-r--r--.gitignore3
-rw-r--r--Library/Formula/cmake.rb6
2 files changed, 6 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 5c9d4963a..62d21fe1b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,5 +4,6 @@
/lib
/include
/share
+/etc
!/Library/
-!/bin/brew \ No newline at end of file
+!/bin/brew
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb
index 16a7aacf6..210aa9060 100644
--- a/Library/Formula/cmake.rb
+++ b/Library/Formula/cmake.rb
@@ -3,15 +3,17 @@ require 'brewkit'
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 \ No newline at end of file