* Add info about option renaming: '--with-c++11' -> '--c++11'.
- Require C++ dependencies with C++11 support when requesting '--c++11'.
* Building MPI python support in C++11 mode fails. Disable.
* Use Homebrew standard universal handling.
* Handle whether to build MPI at bootstrap.
- Also improve parameter construction.
- Use CPU.is_32_bit? instead of accessing CPU.bits directly.
* Add more caveats:
- Boost.Log is disabled when building using apple-gcc42 or llvm-gcc.
- Boost.Context and Boost.Coroutine are only supported on x86_64.
Specifying 'without-python' option for ./b2 takes precedence over all
'without-libraries' options specified previously for ./boostrap.sh
ClosesHomebrew/homebrew#22988.
Signed-off-by: Andrei Polushin <polushin@gmail.com>
ClosesHomebrew/homebrew#22988.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
* Use default darwin toolset.
- Used to set toolset as clang in C++11 build, which will override
darwin settings and fail to increase template depth which is
required for some of the libraries such as Boost.Log.
* Remove unnecessary "-fPIC" build flag.
ClosesHomebrew/homebrew#22942.
* Building MPI support for both single and multi-threaded flavors will
result in duplicated rules for mpi.so. Upstream bug report
https://svn.boost.org/trac/boost/ticket/8841.
* Require '--with-mpi' be used together with '--without-single' until
this is fixed.
* Disable Boost.Log on Snow Leopard and lower as it fails to build using
Apple GCC.
* Applies upstream patches from http://www.boost.org/patches/.
ClosesHomebrew/homebrew#20947.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.
To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.
The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:
python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.
Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.
python do
system python, 'setup.py', "--prefix=#{prefix}"
end
Read more in the Homebrew wiki.
Removes any global methods from formulae, and moves #kext_prefix (which
seems to be at least somewhat abstractable) into the Formula class. The
only formula with global methods is now aspell; it (and its generating
script in contrib) has been changed to prefix that method with
`aspell_`, to minimize the risk of name collisions.
ClosesHomebrew/homebrew#19331.
ClosesHomebrew/homebrew#19343.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit modifies boost.rb to provide C++11 support for compiling Boost. The support is the simplest possible, adding a "with-c++11" option which if selected will add the appropriate toolset switch to the bootstrap.sh invocation and the appropriate toolset, cxxflags and linkflags to the b2 invocation. Due to a bug in Boost, it is also necessary to provide a patch (IAW Boost Ticket 7671) or C++11 compilation will fail.
ClosesHomebrew/homebrew#16078.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
* Fix typo in comment for adding rpath
* Enable detailed build log by adding "-d2" to bjam.
- This will show the actual compile commands during building.
* Tweak ICU handling
- Change icu4c_prefix to opt_prefix to avoid breakage when keg_only icu updates.
ClosesHomebrew/homebrew#15506.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>