diff options
| author | Adam Vandenberg | 2010-07-09 16:36:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-09 16:36:52 -0700 |
| commit | 3640fb912ce738f33d82b87900db5d37ae0f17db (patch) | |
| tree | 4270e31de22bbc705ed93db4f5b822bbb60203af /Library/Formula | |
| parent | fe6e6ada77813df1d1354ddf0c0338b18b4d3f35 (diff) | |
| download | homebrew-3640fb912ce738f33d82b87900db5d37ae0f17db.tar.bz2 | |
Reformat boost a bit
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/boost.rb | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb index c84bb82d9..0d8763871 100644 --- a/Library/Formula/boost.rb +++ b/Library/Formula/boost.rb @@ -6,44 +6,25 @@ class Boost <Formula md5 'dd49767bfb726b0c774f7db0cef91ed1' def install - fails_with_llvm "the standard llvm-gcc causes errors with dropped arugments "+ + fails_with_llvm "the standard llvm-gcc causes errors with dropped arguments "+ "to functions when linking with the boost library" # Adjust the name the libs are installed under to include the path to the - # Homebrew lib directory. It has the following effect: + # Homebrew lib directory so executables will work when isntalled to a non-/usr/local location. # # otool -L `which mkvmerge` - # /Users/cehoffman/.homebrew/bin/mkvmerge: - # /Users/cehoffman/.homebrew/Cellar/libvorbis/1.2.3/lib/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.3.0) - # /Users/cehoffman/.homebrew/Cellar/libogg/1.1.4/lib/libogg.0.dylib (compatibility version 7.0.0, current version 7.0.0) - # /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) - # /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5) - # /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0) - # /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) + # /usr/local/bin/mkvmerge: # libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0) # libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) # libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) - # /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) - # /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0) # - # becomes + # becomes: # - # /Users/cehoffman/.homebrew/bin/mkvmerge: - # /Users/cehoffman/.homebrew/Cellar/libvorbis/1.2.3/lib/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.3.0) - # /Users/cehoffman/.homebrew/Cellar/libogg/1.1.4/lib/libogg.0.dylib (compatibility version 7.0.0, current version 7.0.0) - # /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) - # /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5) - # /usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0) - # /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) - # /Users/cehoffman/.homebrew/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0) - # /Users/cehoffman/.homebrew/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) - # /Users/cehoffman/.homebrew/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) - # /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) - # /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0) - # - # Hence executables that link against the boost library will work when - # Homebrew is installed in a non standard location - inreplace 'tools/build/v2/tools/darwin.jam', '-install_name "', "-install_name \"#{`brew --prefix`.strip}/lib/" + # /usr/local/bin/mkvmerge: + # /usr/local/lib/libboost_regex-mt.dylib (compatibility version 0.0.0, current version 0.0.0) + # /usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) + # /usr/local/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) + inreplace 'tools/build/v2/tools/darwin.jam', '-install_name "', "-install_name \"#{HOMEBREW_PREFIX}/lib/" # Force boost to compile using the GCC 4.2 compiler open("user-config.jam", "a") do |file| @@ -51,7 +32,13 @@ class Boost <Formula end # we specify libdir too because the script is apparently broken - system "./bootstrap.sh --prefix='#{prefix}' --libdir='#{lib}'" - system "./bjam -j#{Hardware.processor_count} --layout=tagged --prefix='#{prefix}' --libdir='#{lib}' --user-config=user-config.jam threading=multi install" + system "./bootstrap.sh", "--prefix=#{prefix}", "--libdir=#{lib}" + system "./bjam", "--prefix=#{prefix}", + "--libdir=#{lib}", + "-j#{Hardware.processor_count}", + "--layout=tagged", + "--user-config=user-config.jam", + "threading=multi", + "install" end end |
