aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2014-07-01Replace find_all + each with grepJack Nagel
2014-06-26Use canonical_name in the exception messageJack Nagel
2014-06-26Use canonical_name when checking LinkedKegs and optJack Nagel
name is the user-provided string and may be an alias, path, or URL.
2014-06-26The rack variable is only used inside the block nowJack Nagel
2014-06-26Remove a dead branch from ARGV.kegsJack Nagel
rack cannot be nil at the point where FormulaUnavailableError is raised, so we don't need a branch to deal with that.
2014-06-26Simplify NoSuchKegError conditionJack Nagel
dirs will be empty if the rack directory does not exist.
2014-06-22Use a more descriptive variable nameJack Nagel
2014-06-22Use Pathname#splitJack Nagel
2014-06-22Move the compiler-selecting methods to ENV/sharedShaun Jackman
Closes Homebrew/homebrew#30210. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-20Remove ARGV.filter_for_dependenciesJack Nagel
2014-06-20Decouple spec selection from ARGVJack Nagel
2014-06-17Add explicit mkpath to Pathname#write_env_scriptJack Nagel
2014-06-17Add explicit mkpath to Pathname#write_jar_scriptJack Nagel
2014-06-17Add explicit mkpath to Pathname#write_exec_scriptJack Nagel
2014-06-17Make signature of Pathname#write compatible with Ruby 2.1+Jack Nagel
2014-06-12Deprecate Pathname#cp and Pathname#chmod_RJack Nagel
As far as I can tell these methods have only ever been used in the test suite. Since Formula includes FileUtils, it is generally simpler (and in the case of cp, more readable) to use the FileUtils methods directly. Closes Homebrew/homebrew#30081.
2014-06-12Deprecate Pathname#/ with non-string/non-pathname argumentsJack Nagel
Ruby 2.2 will define Pathname#/ as a simple alias of Pathname#+. In practice, this means that it will raise a TypeError unless the argument responds to to_path or to_str. Currently we blindly convert the argument to a string using to_s, so deprecate this in the interest of matching the upstream behavior. In the future we can replace this with alias_method :/, :+ unless method_defined?(:/) Closes Homebrew/homebrew#30079.
2014-06-11Use Digest#file if it's availableJack Nagel
2014-06-10Stop caching Superenv.binJack Nagel
It is not a hotspot and causes an ordering dependency in the tests.
2014-06-09Fix visibility of FileUtils extension methodsJack Nagel
2014-06-09Stop exposing mktemp as a public method on formula objectsJack Nagel
2014-06-09Stop joining symbols to pathnamesJack Nagel
Ruby 2.2's native Pathname#/ accepts only string-like objects.
2014-06-08Just access the ivar directlyJack Nagel
2014-06-08Work around encoding issue in Pathname#inspect on Ruby 2.0Jack Nagel
Pathname#inspect on Ruby 2.0 throws away the encoding of the object's underlying string and returns a string tagged as ASCII-8BIT. If you simply write puts Pathname.new("some string with non-ascii bytes").inspect no error will be raised, because the implementation of Pathname#inspect does not call into Object#inspect. However, if you wrap that pathname object in an array first, then puts [Pathname.new("some string with non-ascii bytes")].inspect will raise Encoding::CompatibilityError: "inspected result must be ASCII only or use the same encoding with default external". Raising an error in this codepath is new in Ruby 2.0, and this specific bug is fixed in Ruby 2.1. I've opened a bug upstream: https://bugs.ruby-lang.org/issues/9915 Fixes Homebrew/homebrew#29947.
2014-06-07metafiles: simplify #copy? furtherJack Nagel
2014-06-07Simplify Pathname#install_metafilesJack Nagel
2014-06-07Eliminate FORMULA_META_FILES constantJack Nagel
2014-06-03Use a || bJack Nagel
2014-06-03Treat HOMEBREW_CC the same as --ccShaun Jackman
Closes Homebrew/homebrew#29762. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03HOMEBREW_CC: Remove COMPILER_ALIASESShaun Jackman
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-31Use Pathname.glob when we want pathname objectsJack Nagel
2014-05-28Place X11 ahead of OpenGL when X11 is activeJack Nagel
Fixes Homebrew/homebrew#29651.
2014-05-27--help and --version only apply as first argumentAdam Vandenberg
This fixes external commands that provide their own help and version subcommands. Closes Homebrew/homebrew#26755.
2014-05-26Share code for sanitizing ENV between both build environmentsJack Nagel
2014-05-22Add ENV.m64 to superenvJack Nagel
2014-05-22Fix ENV.m32 under superenvJack Nagel
2014-05-19Set sysroot for non-clang compilers on 10.9Jack Nagel
Although the correct sysroot is built into Apple's tools on 10.9, we need to continue setting it for custom compilers.
2014-05-19Reorganize superenv include and library path setupJack Nagel
I found the dual use of CMAKE_*_PATH variables to make it difficult to reason about this code. Now a separate set of variables are used to communicate with the cc wrapper, and less work is performed in the wrapper itself. We no longer pass the SDK include path as a -isystem directory on Xcode-only setups. Doing so is redundant with `--sysroot` and has other side effects, namely changing the include path search order, which can break compilation of some software (e.g. qemu). On Xcode-only 10.9, we can additionally omit `--sysroot`, as the correct paths are built into the tools. A new variable, HOMEBREW_SYSROOT, is used to this information to the wrapper. It will be unset on Xcode-only 10.9. HOMEBREW_SDKROOT will continue to be set, as it is used for other things besides setting the include search path.
2014-05-19Remove deprecated --use-{gcc,llvm,clang}Jack Nagel
Closes Homebrew/homebrew#29380.
2014-05-18Remove hardcoded reference to ENVJack Nagel
2014-05-18Add accessor for HOMEBREW_CCJack Nagel
2014-05-18ENV.cc= and ENV.cxx= are privateJack Nagel
2014-05-18Use a case statementJack Nagel
2014-05-14Allow disabling arch flag filteringJack Nagel
Closes Homebrew/homebrew#17352.
2014-05-13Use a case statementJack Nagel
2014-05-13Check value of compiler rather than HOMEBREW_CCJack Nagel
2014-05-13Make cc=/cxx= set HOMEBREW_CC in superenvJack Nagel
2014-05-13Remove legacy ENV accessor hackJack Nagel
2014-05-13self, not ENVJack Nagel