aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2015-08-06backport flat_map for Ruby 1.8Xu Cheng
Code is copied from https://github.com/marcandre/backports/blob/master/lib/backports/1.9.2/enumerable/flat_map.rb (MIT License by Marc-Andre Lafortune) Closes Homebrew/homebrew#42543. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-06favor flat_map over map...flattenXu Cheng
2015-08-06more core file style updated by rubocopXu Cheng
2015-08-05ARGV: don't downcase bottle filenamesMisty De Meo
Fixes Homebrew/homebrew#42470.
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-31ARGV#resolved_formulae: auto resolve specXu Cheng
2015-07-31ARGV#spec: allow pass default valueXu Cheng
2015-07-22Pathname#abv: handle the case `du` returns empty stringXu Cheng
This can happen when read permission is denied. Fixes Homebrew/homebrew#41925. Closes Homebrew/homebrew#42011. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-22Ask the exception for the formula nameJack Nagel
2015-06-22Ask the formula object for the opt pathJack Nagel
2015-06-21Simplify gcc_version_formulaJack Nagel
2015-06-21Inline variableJack Nagel
2015-06-21Eliminate special case for core gccJack Nagel
2015-06-21Less code in begin/rescue blockJack Nagel
2015-06-21Pass full match to warn_about_non_apple_gccJack Nagel
2015-06-19Remove backports for Ruby 1.8.6Jack Nagel
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327, mistydemeo/tigerbrew#334
2015-06-19Move some constants from env to compiler constantsJack Nagel
2015-06-18Pass formula objects, not strings, into the build environmentJack Nagel
2015-06-12Undocument return value of ENV.deparallelizeJack Nagel
It's not clear whether it returns MAKEFLAGS with or without -j<n>, and neither is particularly useful behavior, given you can easily get the exact value by calling ENV["MAKEFLAGS"]. So let's not commit to this API.
2015-06-11remove Pathname#find_formulaXu Cheng
Closes Homebrew/homebrew#40486. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-07Revert "Pathname#version: support bottle version"Xu Cheng
This reverts commit 02fba8ce25f1e34c981cb30197e2b4711f88b266.
2015-06-04Pathname#version: support bottle versionXu Cheng
Closes Homebrew/homebrew#40365. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-27ARGV#kegs: try to load fomrula from rackXu Cheng
2015-05-27ARGV: add resolved_formulae methodXu Cheng
2015-05-25Use canonical representation of the superenv bin directoryRyan Hendrickson
The xcrun script should be skipping the ENV directory when it scans $PATH looking for tools to run. Unfortunately, the script compares the paths found to the real path of the ENV directory (following symlinks), but superenv was adding the nominal path to $PATH, not following symlinks. As a consequence, platforms with Xcode < 4.3 would get into infinite loops when trying to call non-system versions of gcc, as xcrun calls the ENV version of gcc-X.X which calls xcrun and so on forever. This commit changes superenv to follow symlinks when determining the bin path to use. Fixes Homebrew/homebrew#33731. Closes Homebrew/homebrew#40062. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-16ENV: Add gcc-5 to compilers support C++11なつき
Closes Homebrew/homebrew#39758. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-14Clear GOPATH and GOROOT in build environmentJack Nagel
Fixes Homebrew/homebrew#37936.
2015-05-08compilers: support gcc 5なつき
Closes Homebrew/homebrew#39470. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-01fileutils: use rm_rf to clean temp dirXu Cheng
Honestly, I don't know why git is broken under sandbox. But this seems fix the problem in Homebrew/homebrew#38978. Closes Homebrew/homebrew#39138. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-26Add support for extracting LHA archivesMisty De Meo
2015-04-25ENV.deparallelize: add block form for temporary changeMisty De Meo
Closes Homebrew/homebrew#39026.
2015-04-20Don't use deprecated APIJack Nagel
2015-04-19work around missing __debug header in Xcode CLT 6.3Tim D. Smith
uses the LLVM 3.6 debug header from: http://reviews.llvm.org/diffusion/L/browse/libcxx/tags/RELEASE_360/final/include/__debug Workaround for Homebrew/homebrew#38514. Closes Homebrew/homebrew#38735.
2015-04-09preliminary write control only sandboxXu Cheng
Closes Homebrew/homebrew#38361. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-07pathname: prune unnecessary whitespaceDominyk Tiller
Closes Homebrew/homebrew#38413. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-31pathname: remove hyphen from BOTTLE_EXTNAME_RXShaun Jackman
A hyphen is not a valid character in a Ruby symbol, and the bottle tag should be a valid Ruby symbol for its use in the bottle stanza. Closes Homebrew/homebrew#38235. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-31pathname: Add [-0-9] to BOTTLE_EXTNAME_RXShaun Jackman
Change [a-z_]+(32)? to [-a-z0-9_]+ The Linuxbrew bottle tag is x86_64-linux. Closes Homebrew/homebrew#32687. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-26Pass around only pathname objectsJack Nagel
2015-03-26Always yield a path from install_p extensionJack Nagel
2015-03-25Combine assignmentsJack Nagel
2015-03-24Make install_p and install_symlink_p privateJack Nagel
2015-03-24Always pass basename to install_symlink_pJack Nagel
2015-03-24Always pass basename to install_pJack Nagel
Currently, when called with one argument, dst is set to self, i.e. the directory into which the source file should be moved. When called with a second argument (for renames), dst is the full path, including the basename, to the moved file. Instead, let's always pass the full path, which means we can remove the branching logic around computing dst.
2015-03-23Go through regular logic when installing a fileJack Nagel
2015-03-14Use Dir.mktmpdir instead of shelling out to mktempJack Nagel
Closes Homebrew/homebrew#37616.
2015-03-10Reduce scope of ensure block, remove conditionalsJack Nagel
2015-03-06test-bot pathname: use Utils.popen_read instead of backticksXu Cheng
Closes Homebrew/homebrew#37418. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-25pathname: skip directory in env_script_all_filesXu Cheng
Closes Homebrew/homebrew#37180. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-07Don't prune cellar paths when cellar is in /optJack Nagel
Fixes Homebrew/homebrew#35382.
2015-01-05Buffer 16K at a timeJack Nagel