aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
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
2014-04-27Use Formulary.factory to find formula in tapsJack Nagel
2014-04-26Explicitly pass key-value options to the build processJack Nagel
Fixes Homebrew/homebrew#28695.
2014-04-25Yield absolute paths from find_formulaJack Nagel
2014-04-25Pass around only absolute paths when dealing with tapsJack Nagel
2014-04-25Build relative paths using resolved_path and relative_path_fromJack Nagel
2014-04-25Less code in begin clauseJack Nagel
2014-04-25Extract some boilerplate into an each_tap methodJack Nagel
2014-04-24Remove slow tab completion for `brew tap`Jack Nagel
This requires hitting the network, which makes the first invocation slow. The results are inaccurate as it only pulls down the first page of results. It is also prone to false-positives. A better implementation is welcome, but in the years since I wrote this code I can't think of a single time where I found it useful.
2014-04-24Fix tap completion when there aren't any tapsJack Nagel
2014-04-24Don't use a regexp to match paths, just compare them for equalityJack Nagel
2014-04-24Pass arguments instead of reopening PathnameJack Nagel
2014-04-24Using existing method to make tap symlinksJack Nagel
2014-04-24Update bash completion for new tap formatJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes Homebrew/homebrew#28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-24Blacklist more flags that clang does not supportJack Nagel
Fixes Homebrew/homebrew#28680.
2014-04-23separate the brew info for multiple formulaeDan Martinez
Closes Homebrew/homebrew#27311. Signed-off-by: Adam Vandenberg <flangy@gmail.com>