aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2013-07-22Pathname#write: don't check ARGV.force?Jack Nagel
Closes Homebrew/homebrew#21390.
2013-07-22typoPhil Smith
Closes Homebrew/homebrew#21385. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-19Add String#end_with?Jack Nagel
I'm tired of not remembering if start_with?/end_with? are portable, so just add them both if they're not defined.
2013-07-19Fix String#start_with? implementationJack Nagel
It is supposed to accept a variable number of prefixes, and also to check if they are convertible to strings. This matches behavior documented in RubySpec.
2013-07-17add ARGV.valueAdam Vandenberg
2013-07-13Handle NULs in link targets in Pathname#resolved_path_exists?Jack Nagel
Fixes Homebrew/homebrew#19475. Fixes Homebrew/homebrew#21184.
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-07-06Don't use install_p directlyJack Nagel
2013-06-26ARGV: filter build-bottle from dependencies.Mike McQuaid
Fixes Homebrew/homebrew#20682.
2013-06-24Add Fortran ENV helpersAdam Vandenberg
2013-06-22ARGV: ensure ? methods return truth values.Mike McQuaid
2013-06-20Splatted parameter is always an arrayJack Nagel
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-09Remove adamv-alt references.Adam Vandenberg
Closes Homebrew/homebrew#20364.
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-08Sniff for non-tarred gzipsAdam Vandenberg
Don't try to untar non-tarred gzips.
2013-06-08Add Enumerable#group_byJack Nagel
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-04Extract attr_rw from Formula for reuseJack Nagel
Closes Homebrew/homebrew#20239.
2013-06-01Require hardware where it is neededJack Nagel
2013-05-20Simplify implementation of ARGV.flag? and .switch?Jack 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-05-09Overwrite broken symlinks with --overwriteDesmond Brand
Closes Homebrew/homebrew#19480. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-04-27Only remove DS_Store on ENOTEMPTYJack Nagel
2013-04-20Avoid calling to_s on the same Pathname multiple timesJack Nagel
2013-04-14Performance fix for Pathname#prepend_prefixJack Nagel
See 05a456c231dc6da7cb0f7c70cb21feaf9a0d803c; same story.
2013-04-14Performance fix for Pathname#chop_basenameJack Nagel
This is an internal method, but is called a bunch of times in performance-critical codepaths, and is ultra slow because the constant is interpoplated into the Regexp each time the method is called. Alas, this has been fixed in Ruby 1.9+.
2013-04-03Recognize 7z files by magic bytes, not filenameJack Nagel
2013-04-01Requirement: env DSL is evaluated in context of self, not ENVJack Nagel
This was meant to support: env do |req| append_path 'PATH', req.some_method ... end i.e., the block was evaluated in the context of ENV. But it turned out to be not so useful after all, so I'm ripping it out before something actually depends on it.
2013-03-28extend/fileutils: suppress discarded method definition warningsJack Nagel
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-11Add with_system_path to run using system PATHs.Mike McQuaid
Needed for Linux compatibility.
2013-03-11Add current Ruby globals.Mike McQuaid
Allows access to the Ruby path. Needed for Linux porting.