aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2013-01-03audit: check conflict namesAdam Vandenberg
2013-01-03superenv: make HOMEBREW_FILE availableAdam Vandenberg
Superenv scripts have a stripped PATH, which may not include the brew binary itself. Make this explicitly available to superenv scripts. Fixes bsdmake wrapper. Closes #16805. Closes #16846. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-02Guess system XQuartz version when mdfind failsJack Nagel
Fixes #16857.
2013-01-02Add caveats class and use in brew info.Mike McQuaid
Probably a better approach than reverted e721c7. Fixes #16604.
2013-01-02Cleanup FormulaInstaller caveats.Mike McQuaid
2013-01-01Add Apache version style test.Mike McQuaid
2013-01-01Add Apache version style.Cyril Scetbon
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-01Add --homebrew-developer flagMike McQuaid
2012-12-30Fix some doublethink in the Xcode moduleJack Nagel
Xcode.prefix and Xcode.installed? use slightly different heuristics to find Xcode. In fact, .installed? basically duplicates a portion of the .prefix logic. In practice, the methods results are usually consistent, but .installed? does not handle non-standard prefixes if mdfind cannot locate Xcode (for example, if the user has disabled Spotlight indexing). Since .installed? is essentially a subset of the .prefix logic, we can rely on the result from .prefix instead. Fixes #16790.
2012-12-27Respect BROWSER environment variableJack Nagel
2012-12-27Replace sceaga/homebrew with mistydemeo/tigerbrewMisty De Meo
@sceaga has discontinued his homebrew fork, so tigerbrew is now PPC/ Tiger users' best bet.
2012-12-27utils: replace shell `which` with native codeMisty De Meo
Originally written for tigerbrew, but useful enough for core. Replaces the shelled-out which in utils.rb with a native-ruby equivalent, which is moderately faster. Closes #16659. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-12-26Allow requirements to specify env optionsJack Nagel
2012-12-26Add a small DSL for setting requirement optionsJack Nagel
2012-12-26Clean up BuildEnvironment interface a bitJack Nagel
2012-12-22Try to find XQuartz via pkgutil if mdls failsJack Nagel
c.f. #16296.
2012-12-22doctor: add helper for printing file listingsJack Nagel
2012-12-21doctor: f.prefix is already a pathnameJack Nagel
2012-12-21doctor: print offending paths in check_for_gettextJack Nagel
c.f. #16688.
2012-12-21doctor: rename path_folders to pathsJack Nagel
2012-12-21doctor: use a more rubyish conditionalJack Nagel
2012-12-21doctor: avoid pointless creation of pathname objectJack Nagel
2012-12-21doctor: run slowest checks lastJack Nagel
2012-12-21Make "XQuartz is installed" heurstic stricterJack Nagel
2012-12-19cleanup: fix 1.8.6 compatibilty issueJack Nagel
Fixes #16655.
2012-12-18upgrade.rb: Generate Tab from Keg not FormulaCharlie Sharpsteen
Two issues were preventing `brew upgrade` from functioning properly: - `Tab.for_formula` was used to recover options from prior installs. The problem is that during an upgrade `for_formula` will be directed to a non-existant install of the newer version and thus returns a forged tab claiming no options were invoked. - The assignment to `installer.install_bottle` requires parenthesis in order to function properly.
2012-12-17Better reporting for MacPorts/Fink installationsJack Nagel
closes #15853.
2012-12-16Revert "Add launchctl_instructions method"Jack Nagel
This code makes assumptions about the existence of prefix which are valid in the context of the installer, but not necessarily in the context of `brew info`, thus `brew info` on an outdated formula errors out. This reverts commit e5b53dd64b769b67805d1054d906f7083939d905.
2012-12-16Add launchctl_instructions methodLorenzo Manacorda
Closes #16604. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-16Check if Cellar and Cache exist before cleaning.Mike McQuaid
2012-12-16Add another Erlang version format.Mike McQuaid
2012-12-12Improve Xcode and CLT config reportingJack Nagel
We support three configurations: Xcode-only, CLT-only, and Xcode with CLT. Our configuration output should correctly reflect this. While MacOS::Xcode.version has to continue to return a guess if Xcode is not installed in order to maintain backwards compatibility, this is an implementation detail that we don't need to expose to the user. And it makes `brew --config` output confusing. So let's only print the "Xcode" line when an actual Xcode installation is present. This makes it easy to quickly figure out which of the three possible configurations the user is running. Addresses #14941, more or less.
2012-12-12Fix stupid typo in bottle fix.Mike McQuaid
2012-12-11Disable bottle installation correctly on 10.6.Mike McQuaid
2012-12-11Properly escape log filenameJack Nagel
Closes #16485.
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-08Don't print error message when dev_tools_path fails to find toolsJack Nagel
This message is either (a) never printed because the tools are installed, or (b) printed every time this method is called. See #16119. This code shouldn't be responsible for UX anyway, so just remove it and let other parts of Homebrew be responsible for failing or declaring that they need the developer tools.
2012-12-08doctor: don't check keg-onlies if cellar doesn't existJack Nagel
2012-12-04proper version sort in `outdated` commandMislav Marohnić
c.f. #16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-04propert version sort in `info` commandMislav Marohnić
Closes #16382. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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-12-04brew-cleanup: check whether keg is a directory.Xiyue Deng
* Avoid problem when encountering `.DS_Store' in Cellar. Closes #16356. Closes #16388. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-03Fix startup plist instructions.Mike McQuaid
Closes #16369.
2012-12-01Fix broken `brew cleanup` testsJack Nagel
2012-12-01Fix bad reference to local_bottle_path.Mike McQuaid
Fixes #16337.
2012-12-01Support installing bottles from local files.Mike McQuaid
2012-11-30brew cleanup: don't remove higher version kegs.Xiyue Deng
* Use version compare to only remove kegs with lower version than the current one, not higher version which might be from someone's branch. * Do the same for cache cleanup. - Be conservative so that if a name detected from cache file is not the same as its formula then don't clean it. Closes #15914. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-11-28Fix Formula.factory for Formula subclassesMisty De Meo
Fixes #16288.
2012-11-28Formula.factory: raise on encountering non-FormulaMisty De Meo
Formula.factory naively assumed that any already-loaded constant fed into it was a formula, with confusing results when trying to `brew install` a name from the ruby stdlib. Fixes #16284.
2012-11-26Whitelist 10.8.2 Supplemental Update static libs.Mike McQuaid
Fixes #16215.