This modifies multiple formulae in a single commit, replacing
the patch suffix with diff per Homebrew/homebrew#28315. I used the following
command:
~~~
sed -i -e 's@patch"$@diff"@' `grep -rlI 'commit.*patch"$' .`
~~~
The patch shasums are then computed using:
~~~
brew fetch --build-from-source `git st | sed -e 's@^ M@@'`
~~~
and manually updated.
FixesHomebrew/homebrew#28315.
FixesHomebrew/homebrew#28335.
ClosesHomebrew/homebrew#28339.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
* Trunk now use "-x" flag to control which language to use, for instance
"clang++ -x c" will be used to compile C code, while Homebrew will
still think it is invoking the C++ compiler. It is easier to just set
cxxflags and linkflags.
* 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>