aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-05-02Quote argument to readlinkJack Nagel
2014-05-02Use parameter expansion to avoid forkingJack Nagel
2014-05-02Fix for String#undentBaptiste Fontaine
Without it, String#undent would fail on unindented strings, e.g.: "foo".undent NoMethodError: undefined method `length' for nil:NilClass` Closes Homebrew/homebrew#28873. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-02doctor: use Xcode.bundle_pathJack Nagel
2014-05-02Simpler Xcode prefix detection codeJack Nagel
2014-05-02Remove obsolete fallback for broken Xcode 4.3+Jack Nagel
After recent cleanups the code in this branch should be unreachable, so there is little point in keeping it around.
2014-05-02Simplify HOMEBREW_LIBRARY_PATH usageJack Nagel
2014-05-02No need to put vendor on the load pathJack Nagel
2014-05-02`require` accepts PathnamesJack Nagel
2014-05-02Set ENV variables to strings, not pathnamesJack Nagel
2014-05-02Use File::PATH_SEPARATORJack Nagel
2014-05-02Apparently quiet_system isn't always quietJack Nagel
cf. Homebrew/homebrew#28918.
2014-05-02doctor: suppress warnings from git wrapper scriptJack Nagel
Fixes Homebrew/homebrew#28901.
2014-05-02add commentAdam Vandenberg
2014-05-01Remove bad doctor checkJack Nagel
2014-05-01Remove MacOS.dev_tools_path and MacOS.dev_tools_prefixJack Nagel
These methods are no longer required.
2014-05-01Rename Xcode.folder to MacOS.active_developer_dirJack Nagel
This reflects what Apple calls it in more recent versions of Xcode/OS X.
2014-05-01Xcode-only path adjustments should be the same in both environmentsJack Nagel
2014-05-01Move xctoolchain_path to Xcode module, where it belongsJack Nagel
2014-05-01Trust xcrun now that we error out early for bad xcode-select pathsJack Nagel
Since ae177adb2bd55ee5ad6367e7639c4cf0c774b63a, we can safely assume that xcrun works, and a functioning xcrun will search dev_tools_path and xctoolchain_path, so we can stop doing extra work here. On CLT-only 10.7 and 10.8, xcrun will not work, but all the tools will be in /usr/bin, which we check before invoking xcrun. Further, in this case, dev_tools_path will be /usr/bin, and xctoolchain_path will not exist, so the fallbacks here are unnecessary.
2014-05-01Remove unnecessary nil checkJack Nagel
2014-05-01Fix caching of gcc_42_build_versionJack Nagel
2014-05-01Remove outdated commentJack Nagel
2014-05-01Restore bash completion for --configJack Nagel
2014-05-01zsh_completion: fix brew config.Xu Cheng
Signed-off-by: Xu Cheng <xucheng@me.com> Closes Homebrew/homebrew#28878. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-04-30outdated: allow forcing verbose outputAdam Vandenberg
Closes Homebrew/homebrew#27813.
2014-04-30--config -> configAdam Vandenberg
2014-04-30Superenv: determine_optflags should return a stringMisty De Meo
This is saved in HOMEBREW_OPTFLAGS and later mutated by ENV.universal_binary, so if this returns nil the sub will fail.
2014-04-30brew-test-bot: handle failing devel requirements.Mike McQuaid
2014-04-30ENV/shared: handle untapped e.g. gcc48 formula.Mike McQuaid
In this case we need to handle the throwing on an exception when attempting to initialize the gcc48 Formula object. This initialization should be unnecessary if the core GCC is already installed and rescued if not.
2014-04-29xcrun wrapper: rephrase commentsJack Nagel
2014-04-29xcrun wrapper: reorganize so we only access ARGV onceJack Nagel
2014-04-29xcrun wrapper: inline try methodJack Nagel
2014-04-29xcrun wrapper: skip superenv bin when walking PATHJack Nagel
2014-04-29Drop obsolete compiler fallback in stdenvJack Nagel
This code originated in a slightly different form in 8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad: https://github.com/Homebrew/homebrew/blob/8e88b22fd1ec65a344ce6e4facd6dad4b415b2ad/Library/Homebrew/extend/ENV.rb#L30-L32 Back then, MacOS.default_compiler could return nil, which meant ENV.compiler could do the same. This code was carried forward as the surrounding code changed. At this point it should be unreachable.
2014-04-29unpack: use correct constant scope for DATAJack Nagel
Formula::DATA only worked by accident of implementation; DATA during the build is actually Object::DATA, so we should mirror that here. This reverts commit b12444ba6e1ac1d596a70ff4c777d9386d0791ac.
2014-04-29brew-unpack: Handle new style :DATA patchesCharlie Sharpsteen
Instances of `IOPatch` created by `patch :DATA` are not affected by re-setting the `DATA` constant of the `Formula` instance. For these patches, we iterate through the `patchlist` and use `instance_variable_set` to attach data. A bit hacky, but `patchlist` has no write accessors so there isn't a clean way to modify patch contents.
2014-04-29Remove test that doesn't add valueJack Nagel
2014-04-29ENV/shared: use homebrew/versions GCC if installedMike McQuaid
Closes Homebrew/homebrew#28820.
2014-04-29Use MacOS.locate and delete wrong commentJack Nagel
2014-04-29Remove comment that no longer reflects adjacent codeJack Nagel
2014-04-29We don't use -Qunused-arguments anymoreJack Nagel
2014-04-29ENV.{cc,cxx} setters already set OBJC and OBJCXXJack Nagel
2014-04-29Make ENV.O4 a no-opJack Nagel
On older Apple compilers "-O4" is known to cause build errors. On recent clang, it's the same as "-O3" and you have to pass "-O3 -flto" to get the old behavior.
2014-04-27Fix brew-readall for updated tap structureJack Nagel
2014-04-27brew list --versions --multipleAdam Vandenberg
With --multiple, only list formulae with multiple versions installed.
2014-04-27run macports check after failed build instead of before every buildAndrew Potter
Closes Homebrew/homebrew#28717. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-27Respect tap directory layout when searchingJack Nagel
This matches the logic in find_formula.
2014-04-27Use canonical_name to canonicalize aliasesJack Nagel
2014-04-27Search results should always be sortedJack Nagel