aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2011-08-31Default to LLVM for Xcodes that default to LLVMMax Howell
2011-08-31Fix Xcode 4.2 cc compilesEugene Ray
It seems like latest build of Xcode 4.2 doesn't create "-4.2" links in /usr/bin. Because of this recipes fail with "configure: error: C compiler cannot create executables" error. Closes Homebrew/homebrew#7254. Closes Homebrew/homebrew#7276. Signed-off-by: Max Howell <max@methylblue.com> Amended to work as intended, since /usr/bin/cc is actually since Xcode 4. Amended commit message. First line must be less than 72 characters! :P
2011-08-31fix version parser for upcoming erlang bottleJan Lehnardt
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-08-26Some more sanity with ENV.compilerMax Howell
Deprecated use_clang? etc. since the logic was such that multiple states could be set, when in reality only one compiler can be set. Changed fails_with_llvm handling so if HOMEBREW_USE_LLVM is set then it tries to build even if the formula has fails_with_llvm set. Rationale: mostly they will no longer fail and we need to catch these cases.
2011-08-26Add ENV.clang; Fixes Homebrew/homebrew#6580Max Howell
Also tidied it up a little, reducing duplication as per original patch.
2011-08-25-march=native doesn't work at all. Gee.Max Howell
Fixes Homebrew/homebrew#7185.
2011-08-25add arrandale to list of core2 CPUsChip Turner
2011-08-24ENV: allow a user-configurable number of make jobsJack Nagel
Let an environment variable, HOMEBREW_MAKE_JOBS, override the default '-j<cores>' make flag. Now we can more easily debug formula that normally build in parallel, or (potentially) speed up lengthy builds.
2011-08-24Use -march=native when we don't otherwise knowMax Howell
I believe this works nowadays. When I created Homebrew originally, it did nothing. Hence all the other logic.
2011-08-24Tidy ENV.rbMax Howell
2011-08-04Fix Xcode 4 compiler paths for --use-gccCharlieRoot
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-31Don't install bottles in non-default HOMEBREW_PREFIX.Mike McQuaid
2011-07-29Build from source (for now) unless on Lion.Mike McQuaid
Longer-term we'll try and use install_name_tool to fix Lion bottles so they run fine on 10.5 and/or 10.6. Closes Homebrew/homebrew#6699.
2011-07-27Coerce flags to an array in `remove_make_var!`Trevor Wennblom
This is needed for Ruby 1.9.x compatibility, but we still don't support running Homebrew with anything other than a system provided 1.8.[67]. Fixes Homebrew/homebrew#6546 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-22Build from source when we've options or 10.5.Mike McQuaid
2011-06-21Remove redeclared method.Mike McQuaid
2011-06-21Fix bad pathname indentation.Mike McQuaid
2011-06-21Fix brew bottle versioning.Mike McQuaid
2011-06-19Pathname: remove unused method starts_with?Adam Vandenberg
2011-06-19back-port start_with? from 1.8.7Adam Vandenberg
This allows its use in Leopard, which has Ruby 1.8.6.
2011-06-17Actually reset the permissionsMax Howell
2011-06-17Fix make_relative_symlink when names differMax Howell
Before we would always make the symlink itself have a basename the same as what it pointed to. I don’t think this breaks any of the other usages as they were working by coincidence.
2011-06-16Make these methods on ENV.Adam Vandenberg
2011-06-16Allow HOMEBREW_USE_CLANG env varAdam Vandenberg
2011-06-16Add clang compiler optionJosé Martínez
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16Allow underscore with these suffixes for version detectionAdam Vandenberg
2011-06-08Add changes to Homebrew internals for bottling.Mike McQuaid
2011-06-05Edit universal_binary commentAdam Vandenberg
2011-06-04Also find versions in zipballsAdam Vandenberg
2011-05-26Add method to ENV for setting up a debug buildCharlie Sharpsteen
`ENV.Og` clears all optimization flags and adds `-g -O0`. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-07Fix misspelled method name: Formula.canonical_nameJack Nagel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-23Add ARGV.build_universal?Adam Vandenberg
2011-04-18ENV: Use /usr/X11 instead of symlinkAdam Vandenberg
2011-03-28Use MacOS.xcode_prefixAdam Vandenberg
2011-03-25Adding version detection to sf.net /download urlsAustin Ziegler
SourceForge links can end with /download which appears to be part of what is used to drive mirror selection. Modifying the version detection extension of pathname.rb to detect this case for both sourceforge.net and sf.net download selections. This is sufficient for version detection but may not be sufficient for other uses of /download links. I have not found any problems with links that use /download, though. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-17Use xcode_path for GCC as well as LLVM.Mike McQuaid
2011-03-14Add comment to ENV.libxml2Adam Vandenberg
2011-03-13Optimise/simplify `brew help`Max Howell
Be more useful by being more concise. I referenced dozens of other mature commands’ usage to figure out what to do here. Also separated out the help into its own command for consistency.
2011-03-12Add Fortran configuration to ENV.rbCharlie Sharpsteen
This provides a uniform way for formulae to indicate a Fortran compiler is required. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Use + instead of /.Adam Vandenberg
2011-03-12Added --use-gcc flag.Stephen Allred
This allows you to use llvm as your default compiler and keep the cc symlink pointed at llvm, while allowing you to build forumla that requires the gcc. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12MacOS.xcode_prefixMax Howell
More robust code than before, and replaces all usage of `xcode-select -print-path`.
2011-03-12`brew deps foo bar` now gives the dependency intersectionMax Howell
Rationale: this is more useful than the union, and you can still easily get the union by running the command twice and concatenating the result.
2011-03-12Pathname.ensure_writableMax Howell
Yields after chmoding (if necessary), once block is complete restores permissions.
2011-03-12Formula.resolve_alias to compatability.rbMax Howell
2011-03-12Some CleanupMax Howell
2011-03-12Move string extensionsAdam Vandenberg
2011-03-12Move some exceptionsAdam Vandenberg
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.
2011-01-22Add ENV.cppflags shortcutAdam Vandenberg