aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV.rb
AgeCommit message (Collapse)Author
2017-04-22Hide sensitive tokens from install/test/post.Mike McQuaid
Hide these tokens to avoid malicious subprocesses e.g. sending them over the network. Also, support using these tokens with environment filtering and clear `HOMEBREW_PATH` from subprocesses to stop them sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s PATH for e.g. `brew doctor` etc.
2016-07-06ENV: only check Superenv if necessary. (#451)Mike McQuaid
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-04-22Only directories are candidates for superenv binJack Nagel
2014-04-22Simplify conditions for superenv activationJack Nagel
`MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?` should never be true. In its earliest form, this would raise a bare RuntimeError in an effort to have the bug reported. Later, it was changed to silently disable superenv. But we don't want to do that. If there's a bug, or the user's system is misconfigured, we want to know, so that we can fix the bug, or the user can fix their system. So let's remove the condition.
2014-03-13Use ARGV.envJack Nagel
2013-08-19More robust implementation of ENV.with_build_environmentJack Nagel
2013-08-19Rename HomebrewEnvExtension to StdenvJack Nagel
2013-08-19Move common ENV methods to a shared moduleJack Nagel
2013-08-19Move superenv.rb to extend/ENV/super.rbJack Nagel
2013-08-19Reference self, not ENV, in ENV.fortranJack Nagel
2013-08-19Move extra stdenv setup to extended callbackJack Nagel
2013-08-19Move common stuff to extend/ENV.rbJack Nagel
2013-08-16This is a backreference, not an embedded NULJack Nagel
2013-08-15ENV.universal_binary: use as_arch_flagsMisty De Meo
2013-08-15Add Hardware::CPU.arch_(32|64)_bitMisty De Meo
This replaces hardcoding of i386/x86_64 all over the code.
2013-08-05ENV: add usage note to ncurses_defineAdam Vandenberg
2013-07-11Remove unreachable branch in ENV.fortranJack Nagel
Now that this is handled by a Requirement with a default formula, this code cannot be triggered under normal circumstances. The advice given has now been moved to the Formula Cookbook on the wiki.
2013-06-24Add Fortran ENV helpersAdam Vandenberg
2013-06-14Fix another constant referenceJack Nagel
2013-06-14Fix constant referenceJack Nagel
2013-06-14Favor compound if over compound unlessJack Nagel
2013-06-14Use ||= instead of unlessJack Nagel
2013-06-14Remove outdated commentJack Nagel
2013-06-14Assign this inlineJack Nagel
2013-06-14Delete rather than assign nilJack Nagel
2013-06-14Simplify nested conditionalJack Nagel
2013-06-14Use has_key? rather than accessing the valueJack Nagel
2013-06-14Rename single-letter variableJack Nagel
2013-06-14Make flag lists into constantsJack Nagel
2013-06-14ENV: clean up set_cpu_flags and set_cpu_cflags usageJack Nagel
2013-06-14Use Hardware::CPU moduleJack Nagel
2013-06-08Add :ld64 dependencyMisty De Meo
This allows formulae which won't build with Tiger's ld to conditionally request a dependency on the ld64 formula. This modifies the build environment appropriately, and will only be active on Tiger.
2013-06-06Move oldest_cpu to HardwareJack Nagel
2013-06-04ENV.userpaths! Hotfix to prefer brewed stuffSamuel John
The depends_on 'nose' => :python tests fails even if people did `pip install nose` with their brewed pythons because during the tests the PATH is set up such that /usr/bin comes before HOMEBRE_PREFIX/bin. This is a hot fix. Proper fix need resorting the PATH.
2013-06-01Require hardware where it is neededJack Nagel
2013-05-19Fix set_cpu_flags invocations in ENV.fortranJack Nagel
Fixes Homebrew/homebrew#19013. Fixes Homebrew/homebrew#19862. Fixes Homebrew/homebrew#19921.
2013-05-11Fix --build-bottle CFLAGS.Mike McQuaid
The CFLAGS were previously not generic enough. References Homebrew/homebrew#18944. References Homebrew/homebrew#19179.
2013-03-23Hardware: separate out CPU values into CPU moduleMisty De Meo
* CPU functions now exist in Hardware::CPU * Added compatibility functions in compat/hardware_compat.rb * Names are less specific to Mac hardware, e.g. CPU.family instead of Hardware.intel_family * Hardware::CPU.family works for both Intel and PowerPC * New helper methods on CPU, like .sse4? and .altivec? Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-21Replace remaining shelled-out `which`esMisty De Meo
2013-03-16ENV: clear influential include path varsJack Nagel
2013-03-11Don't run certain functions on non-MACOS.Mike McQuaid
2013-03-09Index pkgconfig directories by MacOS.versionJack Nagel
2013-02-18Don't shadow outer local variablesJack Nagel
2013-01-21ENV.with_build_environmentJack Nagel
2013-01-04Only add -F if the frameworks folder existsAdam Vandenberg
Closes Homebrew/homebrew#16901.
2012-12-26Allow requirements to specify env optionsJack Nagel
2012-11-19separate ENV/pkgconfig dirs by OS versionCamillo Lugaresi
Closes Homebrew/homebrew#16063. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-19add necessary .pc files for LeopardCamillo Lugaresi
add missing libcrypto.pc override broken system libcurl.pc Closes Homebrew/homebrew#16063. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-13ENV.rb: Configure Objective-C++ compilerCharlie Sharpsteen
Ensures the `OBJCXX` environment variable is correctly set. Also adds `OBJC` and `OBJCXX` to `ENV.remove_cc_etc`.