Created
March 15, 2011 08:06
-
-
Save bgyss/870444 to your computer and use it in GitHub Desktop.
slightly modified version of cmake.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Cmake < Formula | |
url 'http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz' | |
md5 '209b7d1d04b2e00986538d74ba764fcf' | |
homepage 'http://www.cmake.org/' | |
def install | |
# A framework-installed expat will be detected and mess things up. | |
if File.exist? "/Library/Frameworks/expat.framework" | |
opoo "/Library/Frameworks/expat.framework detected" | |
puts <<-EOS.undent | |
This will be picked up by Cmake's build system and likey cause the | |
build to fail, trying to link to a 32-bit version of expat. | |
You may need to move this file out of the way for this brew to work. | |
EOS | |
end | |
system "./bootstrap", "--prefix=#{prefix}", | |
"--no-system-libarchive", | |
"--datadir=/share/cmake", | |
"--docdir=/share/doc/cmake", | |
"--mandir=/share/man" | |
system "make" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment