aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2016-07-15ARGV#resolved_formulae: also load build optionsXu Cheng
2016-07-15super: remove effective_sysroot.Mike McQuaid
No longer needed in `super.rb` after it was moved to `os/mac`.
2016-07-15super: migrate xml2 cmake to mac/superDominyk Tiller
Looks like it was accidentally left behind (?)
2016-07-15mac/super: restore definition of effective_sysrootDominyk Tiller
In https://github.com/Homebrew/brew/commit/0d189fae57bad6c209b471eba9e0b254a2b40886 we completely removed `effective_sysroot`, which consequently left all the `effective_sysroot`/usr/include calls pointing at `/usr/include`. This is wildly problematic on systems where the Command Line Tools aren't installed because `/usr/include` is not a default-created folder prior to CLT installation. I'm unsure if `effective_sysroot` should still be mentioned in Library/Homebrew/extend/ENV/super.rb at all. If it can be deleted, feel free to do that without waiting for me to review. This seems to fix: * https://github.com/Homebrew/homebrew-core/issues/2991 * https://github.com/Homebrew/homebrew-core/issues/2986 * https://github.com/Homebrew/homebrew-core/issues/2962
2016-07-14formula_cellar_checks: add check_linkageXu Cheng
This means linkage checks will be invoked during `brew install` and `brew audit` Closes #470. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-13various: proper escape dot in regexXu Cheng
2016-07-13describe_homebrew_ruby: fix regexXu Cheng
`.` need to be escaped, otherwise it will match any character. Also improve code style for handling string s.
2016-07-13describe_homebrew_ruby: s may be a frozen stringXu Cheng
2016-07-13superenv: restore HOMEBREW_PREFIX/libDominyk Tiller
2016-07-12superenv: port to generic OS. (#457)Mike McQuaid
2016-07-12stdenv: port to generic OS. (#456)Mike McQuaid
2016-07-11config: show homebrew ruby for all system (#492)Xu Cheng
2016-07-09extend/os/mac/keg_relocate: fix weird omissionMartin Afanasjew
2016-07-09keg_relocate: port to generic OS. (#453)Mike McQuaid
2016-07-09formula_cellar_checks: port to generic OS. (#452)Mike McQuaid
2016-07-09emoji: extract logic into generic OS classes. (#450)Mike McQuaid
2016-07-07Add GitRepositoryExtensionMartin Afanasjew
Add an extension for accessing Git-related meta data that can be mixed in into a Pathname object (e.g. `HOMBREW_REPOSITORY` or the path of a `Tap` instance). The goal here is to eliminate code duplication.
2016-07-06extend/os/mac/diagnostic: remove redundant methodMartin Afanasjew
Remove an exact duplicate from further up in the same file. (It was accidentally added in 8a582f2bd976ce7044c3b2dc6eef701f94b9ace5.)
2016-07-06extend/os/mac/diagnostic: fix indentationMartin Afanasjew
2016-07-06development_tools: add installed? method. (#455)Mike McQuaid
2016-07-06hardware: move generic logic from linux. (#454)Mike McQuaid
2016-07-06ENV: only check Superenv if necessary. (#451)Mike McQuaid
2016-07-06doctor: fix undefined method `include?' for nil:NilClassXu Cheng
Closes https://github.com/Homebrew/homebrew-core/issues/2758
2016-07-06doctor: check for beta XQuartz releasesMisty De Meo
Beta versions of XQuartz have address sanitization enabled, which breaks some software at runtime, including wine. Closes Homebrew/homebrew-core#2481. Closes #459. Signed-off-by: Misty De Meo <mistydemeo@github.com>
2016-07-04diagnostic: more porting to generic OS. (#449)Mike McQuaid
2016-07-04cleaner: port to generic OS. (#447)Mike McQuaid
2016-06-16ENV: mark gcc-6 as supporting C++11 (#349)msbit
Add SharedEnvExtension#gcc_with_cxx11_support? to centralise the logic for checking whether a compiler is known to support C++11. Update logic to accept GCC 4.8 and above (including 6). Thereby also address oversight in #163 where support for GCC 6 was added without updating the C++11 compiler whitelist. Add tests for Superenv#cxx11. Closes #346.
2016-06-14diagnostic: prod unsupported OS users to file PRs. (#365)Mike McQuaid
They may not but it's nice to be a bit more explicit.
2016-05-26development_tools: fix broken 'Xcode' referenceMartin Afanasjew
Affects only legacy systems that don't have a `/usr/bin/cc` binary.
2016-05-22Remove LLVM-GCC support. (#252)Mike McQuaid
At this point it's never a good compiler to use so let's just remove it.
2016-05-15Synchronize counts for link and unlink (#242)Paolo G. Giarrusso
Closes #239.
2016-05-12ARGV: fix 'value' method, make it more predictableMartin Afanasjew
The fix changes behavior in same cases, but those cases were all either broken or showed unexpected behavior. The new behavior is very simple: - If an argument starts with `--<option-name>=`, return whatever comes after the equals sign. Prior to this change, `ARGV.value` showed some unexpected behavior: - `ARGV.value("foo")` returned `nil` for `--foo=` because at least one character needed to be present after the equals sign. (All other option parser implementations I'm aware of allow for empty values.) - `ARGV.value("bar")` returned `"baz"` for `--foo=--bar=baz` because the regular expression was not anchored to the start of the argument. - `ARGV.value("++")` raised an exception because the string wasn't escaped for use in the regular expression. (An unlikely corner case.) Closes #231. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-09extend/os/linux/hardware/cpu: fix typo.Sebastian Staudt
CPU was transformed into a class in 8d995e961f549e555f405d2567235dab53f6baad.
2016-05-08Make config command cross-platform.Mike McQuaid
Closes #168. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-05-08Make development tools code cross-platform.Mike McQuaid
2016-05-08Make hardware code cross-platform.Mike McQuaid
2016-05-08Make diagnostic code cross-platform.Mike McQuaid
2016-05-08Make bottle code cross-platform.Mike McQuaid
2016-05-06brew install: make -s apply only to given formula, not deps (#205)Andrew Janke
2016-05-03Fix a variable name in error message (#190)Toru Tanaka
2016-04-22Explicitly list -arch in LDFLAGS on LeopardMisty De Meo
2016-04-22Set -faltivec in CFLAGS on TigerMisty De Meo
Setting -mcpu and -mtune on Tiger with gcc-4.2 exposes a bug in one of the system headers, causing certain builds to fail. This can be fixed by adding -faltivec to CFLAGS. See: http://trac.macports.org/ticket/34213
2016-04-22Add a helper to determine make path on TigerMisty De Meo
2016-04-22stage: fix block signature back-compatibility under Ruby 1.8.7Andrew Janke
The new stage() signature introduced by #66 breaks back-compatibility under Ruby 1.8.7. This fixes it by switching back to a one-argument block signature and using a new class to wrap both the Resource and Mktemp info for the staging context, in a signature-back-compatible way. Addresses homebrew/homebrew-core#529. Closes #135. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-21stdenv: stop setting ACLOCAL_PATHMisty De Meo
2016-04-18brew test, install, update-test: add --keep-tmp optionAndrew Janke
Also enables sandbox for --interactive and --debug use of install and test, using automatic retention. Closes #66. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18ARGV: remove unused 'usage' methodMartin Afanasjew
Also remove related helper method `Homebrew.help_s`.
2016-04-13superenv: fix formula prefix path to consider revisionsAndrew Janke
Old logic doesn't include revision. This fixes that, and passes the whole formula prefix path to avoid duplicating the path-construction logic. Closes #80. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-13superenv: allow paths under self's kegAndrew Janke
Fixes build error in Homebrew/homebrew-core#100. Closes #63. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-05Merge pull request #27 from apjanke/test-bot-xml-filterAndrew Janke
test-bot: revise Step output transcoding and XML character filtering