aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
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 #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 #19013. Fixes #19862. Fixes #19921.
2013-05-11Fix --build-bottle CFLAGS.Mike McQuaid
The CFLAGS were previously not generic enough. References #18944. References #19179.
2013-05-09Overwrite broken symlinks with --overwriteDesmond Brand
Closes #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.
2013-03-09Adjust BOTTLE_EXTNAME_RX for :snow_leopard_32Jack Nagel
2013-03-09Index pkgconfig directories by MacOS.versionJack Nagel
2013-03-01Add environment variable to build bottles.Mike McQuaid
2013-03-01Support 32-bit 10.6 bottles.Mike McQuaid
Closes #17735. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-18Don't shadow outer local variablesJack Nagel
2013-02-15Remove redundant returnJack Nagel
2013-02-15Make this more idiomaticJack Nagel
2013-02-10Fix Regexp encoding under 1.9/2.0Jack Nagel
2013-02-02Move ruby methods to FileUtils extensionJack Nagel
2013-01-30Remove MD5 support.Mike McQuaid
Closes #17317.
2013-01-29Don't use underscores in (new) bottle filenames.Mike McQuaid
Closes #14270
2013-01-29Cleanup old bottle syntax.Mike McQuaid
2013-01-26Move option comparison into BuildOptionsJack Nagel
2013-01-21Object#instance_exec for Ruby 1.8.6Jack Nagel
Not thread safe! But I don't think we care. We want to evaluate the env DSL block in the context of ENV for asthetic reasons, but we also want access to methods on the requirement instance. We can use #instance_exec to pass the requirement itself into the block: class Foo < Requirement env do |req| append 'PATH', req.some_path end def some_path which 'something' end end Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
2013-01-21ENV.with_build_environmentJack Nagel
2013-01-10Restore ARGV even if an exception is raisedJack Nagel
2013-01-09Define Symbol#to_proc for Ruby 1.8.6Jack Nagel
Ruby 1.8.6 doesn't have Symbol#to_proc, which allows things like map(&:to_s) rather than map { |o| o.to_s }. 1.8.7 does, though, and since it is used in a bunch of the superenv code we should attempt to keep it compatible with 1.8.6. Closes #16046.
2013-01-04Only add -F if the frameworks folder existsAdam Vandenberg
Closes #16901.
2013-01-01Add --homebrew-developer flagMike McQuaid
2012-12-26Allow requirements to specify env optionsJack Nagel
2012-12-11pathname.rb: Pass -s to du instead of -d0Shaun Jackman
The option `du -s` is equivalent to `du -d0`. The former is a POSIX standard (IEEE Std 1003.1-2008), whereas the latter is a BSD extension. From the BSD man page: `-s Display an entry for each specified file. (Equivalent to -d 0)` From SUSv4: `-s Instead of the default output, report only the total sum for each of the specified files.` http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html Closes #16516. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-12-04Improve bottle error messages.Mike McQuaid
On installation or creation of a bottle error out of the current machine does not support bottles. References #16291.
2012-11-25Rewrite plists when installing from a bottleJack Nagel
2012-11-25Overwrite plists.Mike McQuaid
2012-11-19separate ENV/pkgconfig dirs by OS versionCamillo Lugaresi
Closes #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 #16063. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-14Try to remove a single .DS_Store when uninstallingAdam Vandenberg
Closes #12976. Closes #15975.
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`.
2012-11-12Don't error out if metafiles are linkedAdam Vandenberg
Closes #16008.