aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV
AgeCommit message (Collapse)Author
2017-10-29ENV/std: fully extend from HOMEBREW_PATH.Mike McQuaid
Rather than just re-adding HOMEBREW_PREFIX/bin if it's missing re-add everything from HOMEBREW_PATH. This works well with or without environment filtering being enabled but with environment filtering it ensures that ENV/std just builds on the original user environment.
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-09-24Rubocop: manual rule fixes.Mike McQuaid
2017-08-31ENV: move java_cache to compat for future hard deprecationDominyk Tiller
2017-08-03Remove errant pkg-config libdir Andrew Yates
We found an issue in Linuxbrew/homebrew-core#3366 where the addition of "/usr/lib/pkg-config" causes compilation issues if system pkg-config files are in that directory on Linux. Removing the line from here and adding it into the mac superenv.
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-06-02Re-revert "Fix operator spacing."Markus Reiter
2017-06-01Revert "Fix operator spacing."ilovezfs
2017-05-31Fix operator spacing.Markus Reiter
2017-05-30Stdenv: Add ENV.libxml2 and ENV.x11 for LinuxBob W. Hogg
Add ENV.libxml2 primarily for the use of test do blocks. Add a dummy ENV.x11 function. See Linuxbrew/brew#356 and Linuxbrew/brew#382
2017-04-30Use `PATH#select`.Markus Reiter
2017-04-30Rename `PATH#validate` to `PATH#existing`.Markus Reiter
2017-04-30Use `PATH` where possible.Markus Reiter
2017-04-30Remove `Array#to_path_s`.Markus Reiter
2017-04-30Use `to_path_s` for `determine_pkg_config_libdir`.Markus Reiter
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
2017-04-22super: re-add set_cpu_flags.Mike McQuaid
It's used by ENV.fortran. Fixes https://github.com/Homebrew/brew/issues/2530 Fixes https://github.com/Homebrew/homebrew-science/issues/5485
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2017-03-17Merge pull request #2279 from sjackman/determine_pathMike McQuaid
determine_path: Fix tests FormulaUnavailableError
2017-03-11env: make prepend_path ignore system pathsilovezfs
`ENV.prepend_path "PATH", which("emacs").dirname` in the emacs requirement was causing us to end up invoking /usr/bin/clang instead of /usr/local/Homebrew/Library/Homebrew/shims/super/clang.
2017-03-07determine_path: Fix tests FormulaUnavailableErrorShaun Jackman
Fix the brew tests error: InstallTests#test_a_basic_install: FormulaUnavailableError: No available formula with the name "gcc" Library/Homebrew/formulary.rb:231:in `get_formula' Library/Homebrew/formulary.rb:259:in `factory' Library/Homebrew/extend/ENV/shared.rb:287:in `gcc_version_formula' Library/Homebrew/extend/ENV/super.rb:124:in `determine_path' Library/Homebrew/extend/ENV/super.rb:44:in `setup_build_environment' Library/Homebrew/build.rb:87:in `install' Library/Homebrew/build.rb:201:in `<main>'
2017-02-21Merge pull request #1948 from sjackman/gnu-gccMike McQuaid
gcc_version_formula: Use gcc@4.x rather than gcc4x
2017-02-12rubocop: trailing comma in multiline method callsAlyssa Ross
Discussed in https://github.com/Homebrew/brew/pull/1987/files#r100693581. This was originally ommitted because it wasn't compatible with Ruby 1.8. (See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971).
2017-02-11gcc_version_formula: Use gcc@4.x rather than gcc4xShaun Jackman
2017-01-16Unset GREP_OPTIONS.Mike McQuaid
Users may have this set, breaking grep's output. Fixes #1430.
2016-12-31ENV/super: fix set_cpu_flags stub.Mike McQuaid
It should accept arguments. Fixes https://github.com/Homebrew/homebrew-core/issues/8362
2016-12-30ENV: deprecate old methods.Mike McQuaid
These should have been deprecated long ago but we didn’t really have the necessary framework to do so.
2016-11-13No if/unless-modifier on multiline blocks.Markus Reiter
2016-11-13Use guard clauses.Markus Reiter
2016-10-22Update Rubocop style.Mike McQuaid
Another look at the current Rubocop rules and how they fit with our existing and desired future style. Almost all of these changes were automatic. Split some rules between formulae/brew where brew doesn't have millions of cases that need fixed.
2016-09-24RuboCop: Style/AccessorMethodNameMarkus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-13extend/ENV/super: fix Rubocop warnings.Mike McQuaid
2016-09-13extend/ENV/std: fix Rubocop warnings.Mike McQuaid
2016-09-13extend/ENV/shared: fix Rubocop warnings.Mike McQuaid
2016-08-22Make -no_weak_imports opt-in.Mike McQuaid
The experiment to add `-no_weak_imports` unconditionally has been a bit of a failure. It's broken more than it's fixed and I don't think we can have this as a default for Xcode 8. Add `ENV.no_weak_imports` to be used by formulae authors and make `ENV.no_weak_imports a no-op (for now). We may reconsider this behaviour in future.
2016-08-17Add permit_weak_imports directiveTim D. Smith
Issue Homebrew/homebrew-core#3727 suggested we set -no_weak_imports for new versions of Xcode to ensure that e.g. building on 10.11 against the 10.12 SDK doesn't result in a situation where autotools thinks symbols exist that don't actually exist on the current platform. Further discussion in golang/go#16770 revealed that some packages require weak imports to build normally.
2016-08-17Document 'w' CCCFG flagTim D. Smith
2016-08-17ENV/super: use Hardware::CPU.is_32_bit?Xu Cheng
`Hardware.is_32_bit?` is deprecated.
2016-08-16Add OS X-specific SharedEnvExtension.Mike McQuaid
2016-07-29Add missing development_tools requires.Mike McQuaid
2016-07-16Unify Version.create usageVlad Shablinsky
Substitue each Version.new and HeadVersion.new with Version.create to unify Version and HeadVersion instantiation among core code. Note that this does not relate to Mac::OS::Version class.
2016-07-15super: remove effective_sysroot.Mike McQuaid
No longer needed in `super.rb` after it was moved to `os/mac`.
2016-07-15super: migrate xml2 cmake to mac/superDominyk Tiller
Looks like it was accidentally left behind (?)
2016-07-13superenv: restore HOMEBREW_PREFIX/libDominyk Tiller
2016-07-12superenv: port to generic OS. (#457)Mike McQuaid