Created
February 18, 2012 04:41
-
-
Save warrickcustomhomes/1857449 to your computer and use it in GitHub Desktop.
Result of Homebrew Install
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 FooCore < Formula | |
url 'http://example.com/downloads/foo-core-21924.tgz' | |
sha1 '91cc434e88c1e370650927d8525cb828d7f7859a' | |
version '21924' | |
homepage 'http://foo.example.com/' | |
depends_on 'cmake' | |
depends_on 'boost' | |
depends_on 'xerces-c' | |
depends_on 'openscenegraph' | |
def options | |
[["--use-cstk", "Compile CSTK."]] | |
end | |
def install | |
args = ["../foo/core", "-Wno-dev", "-DCMAKE_INSTALL_PREFIX:STRING='#{prefix}'"] | |
if ARGV.include? "--use-cstk" | |
args << ["-DUSE_CSTK2:BOOL=YES"] | |
else | |
args << ["-DUSE_CSTK2:BOOL=NO"] | |
end | |
Dir.mkdir "build" | |
Dir.chdir "build" do | |
system "cmake", *args | |
system "make -j 5 install" | |
end | |
end | |
def patches | |
# The 'load.tcl' script loaded by wish tries to load cstk by default. | |
# This needs to be commented out if CSTK is not compiled. | |
return DATA unless ARGV.include? "--use-cstk" | |
end | |
end | |
__END__ | |
diff --git a/foo/core/load.tcl b/foo/core/load.tcl | |
index e9de879..18bedff 100644 | |
--- a/foo/core/load.tcl | |
+++ b/foo/core/load.tcl | |
@@ -167,8 +167,8 @@ foo::loadConfigFile | |
logDebug "libraries currently loaded are [foo::libraries]" | |
-logStatus "loading cstk library from load.tcl" | |
-foo::load cstk | |
+#logStatus "loading cstk library from load.tcl" | |
+#foo::load cstk | |
logStatus "loading xml library from load.tcl" | |
foo::load xml |
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
==> Downloading http://example.com/downloads/foo-core-21924.tgz | |
File already downloaded in /Users/scrapcoder/Library/Caches/Homebrew | |
==> Patching | |
patching file foo/core/load.tcl | |
==> cmake ../foo/core -Wno-dev -DCMAKE_INSTALL_PREFIX:STRING='/usr/local/Cellar/foo-core/21924' -DUSE_CSTK2:BOOL=NO | |
==> Exit Status: 1 | |
http://github.com/mxcl/homebrew/blob/master/Library/Formula/foo-core.rb#L30 | |
==> Environment | |
HOMEBREW_VERSION: 0.8.1 | |
HEAD: 8af8724524679b14f46d068515fa07d369a3a6b3 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
Hardware: quad-core 64-bit arrandale | |
OS X: 10.6.8 | |
Kernel Architecture: i386 | |
Xcode: 4.1 | |
GCC-4.0: N/A | |
GCC-4.2: build 5666 | |
LLVM: build 0 | |
Clang: 2.1 build 163 | |
MacPorts or Fink? false | |
X11 installed? true | |
System Ruby: 1.8.7-174 | |
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
Which Perl: /usr/bin/perl | |
Which Python: /usr/bin/python | |
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
==> Build Flags | |
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 | |
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2 | |
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 | |
CFLAGS: -Os -w -pipe -march=core2 -msse4 | |
CXXFLAGS: -Os -w -pipe -march=core2 -msse4 | |
MAKEFLAGS: -j4 | |
Error: Failed executing: cmake ../foo/core -Wno-dev -DCMAKE_INSTALL_PREFIX:STRING='/usr/local/Cellar/foo-core/21924' -DUSE_CSTK2:BOOL=NO | |
If `brew doctor' does not help diagnose the issue, please report the bug: | |
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment