Simplify access to the different forms of a formula's build options by
making options into real objects rather than strings, and expose both
the 'name' and 'flag' form.
- Remove HEAD build; HEAD is incompatible with the bash that OS X
ships. Add a comment suggesting users check out homebrew-versions for
a bash-completion 2.0 formula.
- Automatically symlink Homebrew's completion script into the
bash_completion.d directory.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
ossp-uuid-1.6.2 has a flakey main ftp site, and they are no longer
hosted on the current `mirror` site. Change the mirror to use the
archive at googlecode.
Fixes#14265Closes#14288.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
build.rb calls Formula.factory to get a usable Formula object to pass to
its install method. However, because the formula file is the actual
executing script, its class is already defined, and loading it again
causes the class to be re-evaluated, which, unfortunately, is not
idempotent.
This bug has existed for a very long time, and its side effects include
duplicate entries the deps array and mirrors array, among others.
Fortunately, the fix is very simple.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
- Since 3.2.3, the "2to3" script has a version suffix already.
- Added `--without-gcc` to ensure python uses clang.
- Avoid optimization flags that are remembers by python
(e.g. `python3.2-config --cflags`) and lead to problems
with certain C-extensions.
Closes#14198.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
- Extras now in HOMEBREW_PREFIX/share/python/Extras instead of
HOMEBREW_PREFIX/share/python2.7/Extras
- Assure no '-march=...' or '-msse4' or similar flags are there
because `python-config --cflags` reports them later and can
break certain c-extensions. (happend for SciPy).
Closes#14199.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Reasons:
- It only adds 10 seconds to a deparallelized make job.
- We do it for GraphicsMagick
A new option, `--without-magick-plus-plus` has been added for those who wish to
leave the C++ interface out.
Fixes#13559.
Usually, the "foo-version already installed" error is printed by
FormulaInstaller. However, if an up-to-date formula that has outdated
deps is passed on the command line, we proceed to upgrade the deps and
then print a message saying that the formulae given on the command line
is already installed.
Catch this earlier, when the outdated list is being populated, print an
appropriate message, and skip the up-to-date formula.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This serves the same purpose as similar code in FormulaInstaller, but we
duplicate it because we do the dependency expansion in an ad-hoc fashion
here.
Fixes#11863.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>