diff options
| author | Xiyue Deng | 2014-03-15 00:40:43 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2014-03-22 14:35:25 -0700 |
| commit | 0c4ac15f81a3183aa5249fc860e5d4da97964212 (patch) | |
| tree | 8ce43931fac0ea993cfc339d17232d3942a491ed /Library/Formula | |
| parent | 949013234c3f189224406bca4af3d68ae1078554 (diff) | |
| download | homebrew-0c4ac15f81a3183aa5249fc860e5d4da97964212.tar.bz2 | |
boost: trunk now on github with submodules.
* Also remove legacy rpath handling logic, which is taken care of by
install_name_tool.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/boost.rb | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb index 2ff43421b..6de432b3a 100644 --- a/Library/Formula/boost.rb +++ b/Library/Formula/boost.rb @@ -18,7 +18,7 @@ class Boost < Formula sha1 'cef9a0cc7084b1d639e06cd3bc34e4251524c840' revision 1 - head 'http://svn.boost.org/svn/boost/trunk' + head 'https://github.com/boostorg/boost.git' bottle do cellar :any @@ -57,17 +57,19 @@ class Boost < Formula odie 'boost: --with-c++11 has been renamed to --c++11' if build.with? 'c++11' - # Patches boost::atomic for LLVM 3.4 as it is used on OS X 10.9 with Xcode 5.1 - # https://github.com/Homebrew/homebrew/issues/27396 - # https://github.com/Homebrew/homebrew/pull/27436 - patch :p2 do - url "https://github.com/boostorg/atomic/commit/6bb71fdd.patch" - sha1 "9ab8e6c041b4ecc291b2dd1a3c93e9b342d5e0e4" - end + stable do + # Patches boost::atomic for LLVM 3.4 as it is used on OS X 10.9 with Xcode 5.1 + # https://github.com/Homebrew/homebrew/issues/27396 + # https://github.com/Homebrew/homebrew/pull/27436 + patch :p2 do + url "https://github.com/boostorg/atomic/commit/6bb71fdd.patch" + sha1 "9ab8e6c041b4ecc291b2dd1a3c93e9b342d5e0e4" + end - patch :p2 do - url "https://github.com/boostorg/atomic/commit/e4bde20f.patch" - sha1 "f206e7261d00503788ae8ec3a0635ced8a816293" + patch :p2 do + url "https://github.com/boostorg/atomic/commit/e4bde20f.patch" + sha1 "f206e7261d00503788ae8ec3a0635ced8a816293" + end end fails_with :llvm do @@ -96,29 +98,7 @@ class Boost < Formula ENV.universal_binary if build.universal? ENV.cxx11 if build.cxx11? - # Adjust the name the libs are installed under to include the path to the - # Homebrew lib directory so executables will work when installed to a - # non-/usr/local location. - # - # otool -L `which mkvmerge` - # /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) - # - # becomes: - # - # /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/lib/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/" - - # boost will try to use cc, even if we'd rather it use, say, gcc-4.2 - inreplace 'tools/build/v2/engine/build.sh', 'BOOST_JAM_CC=cc', "BOOST_JAM_CC=#{ENV.cc}" - inreplace 'tools/build/v2/engine/build.jam', 'toolset darwin cc', "toolset darwin #{ENV.cc}" - - # Force boost to compile using the appropriate GCC version + # Force boost to compile using the appropriate GCC version. open("user-config.jam", "a") do |file| file.write "using darwin : : #{ENV.cxx} ;\n" file.write "using mpi ;\n" if build.with? 'mpi' |
