aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-09-24Fix doctor hanging if xcode-select is badMax Howell
Also fix typo in the superenv DEVELOPER_DIR set detection code.
2012-09-23superenv: Remove HOMEBREW_PREFIX/bin from PATHMax Howell
We add the bins from all deps instead. Rationale: formula find and use eg. GNU-coreutils versions of things and then break. Only allow formula to use tools that they depend on and expect. I want to go further and only add include paths etc. for dependencies, I have done some work on this, but I fear it may be impossible. If an include path is eg. /usr/local/lib/foo/include, is it possible to know if this path is bad? Not always AFAICT.
2012-09-23Set DEVELOPER_DIR; Fixes bad xcode-select pathMax Howell
In cases where the xcode-select -print-path is '/' xcrun still hangs indefinitely, setting DEVELOPER_DIR to something (preferably the Xcode path) fixes that. So let's.
2012-09-22brew cleanup -n: less scaryMax Howell
2012-09-21brew --env: Use fetch rather than []Max Howell
Because we mess with the return value from [] in superenv due to many formula assuming CFLAGS etc. would not be nil.
2012-09-21superenv: don't set LDMax Howell
Some compile issue will no doubt elapse, but we can address these on a case-by-case basis. Refs #14943.
2012-09-20cleanup: look for "HEAD", not "sha" in receiptJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-19Update Xcode.latest_version for 4.5Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-19Update Xcode guess for 4.5Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-18Provide more information about bad sf urlsMax Howell
2012-09-18If we delete stuff in the clean step, make fussMax Howell
/cc @jwheare
2012-09-18Fix building bottles from source.Mike McQuaid
2012-09-18Don't try to fix @rpath install namesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-17info: Add JSON outputMisty De Meo
Output JSON with the --json=v1 option. Output is in an array, and supports one or more formulae (or all, with the --all option). Why 'v1'? The format is unstable, presumably we'll deprecate it someday. It should be solid by Homebrew 1.0. Closes #13299.
2012-09-17ARGV: add .jsonMisty De Meo
Used by brew info; may be used by other commands in the future.
2012-09-16Make check for stray developer dir more specificMisty De Meo
It looks like there can be harmless stuff leftover in /Developer/Library, even after Xcode uninstalls older versions. The existence of the uninstall-developer-folder script should be a better indicator. Fixes #14970.
2012-09-14Skip standard compilers check for unknown XcodeMisty De Meo
Rescuing false on the StandardCompilers map meant that the doctor check assumed that the compilers were incorrect, not merely unknown. Instead, skip the check and return nil for unknown Xcode; nil should be interpreted as "dunno", instead of "true" or "false", and the doctor check no longer prints on nil.
2012-09-14Add Xcode 4.5 to StandardCompilers mapMisty De Meo
We now have several reports of compiler versions for the GM, e.g. #14944.
2012-09-14Restore X11 description to --config outputJack Nagel
Oops. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-14Support env :std, :userpathsAdam Vandenberg
Closes #14654.
2012-09-13Install plists in FormulaInstaller, not build.rbMax Howell
Build rb should only build!
2012-09-13ghc requires std-envMax Howell
Because it builds a tool (cabal) that uses the same env that built it to build stuff.
2012-09-13Don't add GL paths to superenv if depends_on XMax Howell
Fixes #14780.
2012-09-13--prefix: don't use opt prefix if it doesn't existMisty De Meo
2012-09-13doctor: Add check for stray pre-4.3 Xcode filesMisty De Meo
/Developer/Library shouldn't exist if all the remnants of old Xcode versions have been uninstalled, and tends to cause problems if it's kept alongside modern Xcode. "uninstall-developer-folder" should only remove /Developer/Library.
2012-09-13edit: create project view with subl, tooMisty De Meo
Sublime Text's subl tool supports lovely project views just the same as TextMate. Since I use Sublime, I want good support from `brew edit` too. :P
2012-09-13Add skip_clean :all to auditAdam Vandenberg
2012-09-13Auctex needs user path; Fixes #14699Max Howell
2012-09-13Apply userpaths after superenv-setupMax Howell
Fixes #14701. Stupid mistake.
2012-09-12Use opt prefix for --prefixMax Howell
Rationale: everyone thinks it points to the currently installed prefix, not the prefix of the formula that is newest and maybe not installed. The previous behavior was unintentional and evidence proves it is not intuitive either. I anticipate no regressions. And hope I am right!
2012-09-11patches.rb: Generalize File recognitionCharlie Sharpsteen
Extend patch case statements for files to objects inheriting from `IO`, which includes `File`, or `StringIO` which is used by the external command `brew-unpack` to store `DATA` sections loaded from Formula files.
2012-09-11Remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11test: be less eager to set up the build environmentJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11cleanup: skip rm_DS_Store during a dry runJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11cleanup: allow --force to remove keg-only brews againJack Nagel
Fixes #14840. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-11Tighten post-install checksJack Nagel
- Avoid ENOTDIR by ensuring that the directories we are checking are actually directories. - DRY up the check_PATH method; paths are already available via the global ORIGINAL_PATHS. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10Clarify that brew does not provide XQuartzCharlie Sharpsteen
Reword the `X11Dependency` error message so that it is clear that an installer must be downloaded. Ref #14851.
2012-09-10Audit check for old MacOS version methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10Add deprecation warning to non-DSL fails_with_llvmJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10Clean up MacOS version method usageJack Nagel
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-09Fix code that chmods metafilesAdam Vandenberg
2012-09-09Install plists by defaultAdam Vandenberg
2012-09-09allow skip_clean :laAdam Vandenberg
2012-09-06audit: allow some forms of gist patchesJack Nagel
The problem is not the raw URLs, but URLs that do not contain the commit hash corresponding to a particular version of the gist. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06Remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06Don't raise when expanding ORIGINAL_PATHSJack Nagel
File.expand_path raises ArgumentError when it is passed a path with a nonexistent username, e.g.: $ PATH=~foo/bin:$PATH brew /usr/local/Library/Homebrew/global.rb:97:in `expand_path': user foo doesn't exist (ArgumentError) However, `brew doctor` does its own expansion of PATH entries and outputs warnings if this happens, so let's just ignore it here and continue on our way. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06doctor: ignore case when checking PATH for config scriptsJack Nagel
Fixes #14752. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05Remove fink/macports from verbose --config if they are not present.Adam Vandenberg
2012-09-05audit: swig is a build time depAdam Vandenberg
2012-09-05ENV: put X11 aclocal dir in ACLOCAL_PATH when appropriateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>