aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-01-11search: return matches from open pull requestsJack Nagel
When search can't find any local results, hit the GitHub API and search the titles of pending pull requests. This will help people find the many proposed formulae and prevent them from wasting time duplicating them. Closes #9018. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-11Make MacOS.clang_build_version more usefulJack Nagel
Let's choose the first \d{2,} as the build number, as it is the most likely to indicate significant changes, and we need something to use for comparison when selecting compilers. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: unload old class before obtaining versionJack Nagel
This is silly, but I am no Rubyist and I don't have time to figure out why Formula.factory(foo).url works as expected but Formula.factory(foo).version does not. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: enable '--compact' outputJack Nagel
This will be useful for shell tab completion when something like `brew install <formula> --version <version>` is implemented. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06versions: determine version from a Formula instanceJack Nagel
Rather than regex the output of `git show <rev>:<path>`, we write the output of `git cat-file blog <rev>:<path>` to a temporary file, and then operate on it just as we would a normal formula. I haven't observed any speed difference. `git cat-file blob` is faster than `git show`, but the "slow part" is still the git-rev-list invocation. But really it's pretty fast overall. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-05Tab: handle non-core kegs without receiptsJack Nagel
Passing Formula.factory the name of a keg that belongs to a non-core formula will cause an error to be raised; we don't really care, so just fake a totally empty install receipt in this case. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-04Force creation of locale-specific man directoriesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03info: always mark currently linked keg with *Jack Nagel
When multiple kegs are installed, `brew info` marks a keg with an asterisk if f.installed_prefix == keg, but this is only true if either HEAD or the newest version of the formula is installed. This isn't always useful, so let's mark the currently linked keg with an asterisk regardless of the version. Obviously, keg-only formula will never be marked, but this is probably a feature. When multiple keg-only kegs exist, chances are that they are each being utilized by something, so there isn't really a "used" and "unused" version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03info: display used options for all installed kegsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03tab: allow retrieving tabs from arbitrary kegsJack Nagel
This will be useful in places where we need information about things other than the currently linked keg, such as `brew info`. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03Add a helper to determine if a keg is linkedJack Nagel
'keg.linked?' will return true if there is an entry for 'keg' in LinkedKegs. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-02audit: do not complain about --32-bitAdam Vandenberg
2012-01-02Standardize 32 bit build switchAdam Vandenberg
2012-01-01tests: add missing require to test_ENVJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-01Omit check_m4 warning when appropriateFelix Buenemann
If the suggested modifications are already in place, just skip the warning. Closes #8624. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-31brew --env: respect --universalJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-31audit: check for trailing newlineJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-30Only show gcc build if it's really gccJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-28doctor: clean up check_git_statusJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-28config: prettify sha methodJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-26Generalize formula_installer dependency resolutionCharlie Sharpsteen
Use `Formula.factory dep.path` instead of `Formula.factory dep.name` so that non-standard dependencies specified as URLs or paths can be handled properly.
2011-12-26Allow Formula.canonical_name to use Pathname objectsCharlie Sharpsteen
2011-12-26Resolve multi-level gcc symlinksJack Nagel
In later XCodes, gcc is a symlink to gcc-4.2 which is itself a symlink to llvm-gcc, so it is necessary to resolve multiple symlinks. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-24formula.rb: Don't apply fails_with_llvm to ClangCharlie Sharpsteen
Clang is vastly different than LLVM-GCC and is under active development. Using Clang is a viable solution to formula that fail with LLVM and a suggested recourse for users of XCode 4.2 or newer. Fixes #9242.
2011-12-21audit: remove --strictAdam Vandenberg
2011-12-21Homebrew 0.8.1Adam Vandenberg
This version number is arbitrary, and only used to differentiate versions in bug reports. There have been enough changes to compiler detection since 0.8 that it makes sense to bump the version here.
2011-12-21Clean up --configAdam Vandenberg
2011-12-20Omit empty caveatsAdam Vandenberg
2011-12-18--HEAD checksAdam Vandenberg
* Force --HEAD for head-only installs * Don't allow --HEAD for stable-only formulae
2011-12-18Audit: warn about head-only formulaeAdam Vandenberg
2011-12-18Expose stable/unstable specsAdam Vandenberg
2011-12-18Extract checksum type functionAdam Vandenberg
2011-12-18Simplify a couple of commentsAdam Vandenberg
2011-12-18doctor: check for Enthought PythonAdam Vandenberg
2011-12-16doctor: normalize representation of env variablesJack Nagel
Current warnings contain a mix of variable names with a '$' prefix and without; most documentation omits the '$', so drop it. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16doctor: fix a couple of git-related checksJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16--env: dump a few more environment variablesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-16Enable 'brew edit' for non-Textmate editors.Adam Vandenberg
2011-12-16utils: fix clang build regexJack Nagel
This has to be able to match things like "211.10.1" so let's stop using fixed lengths. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-15audit: hard wrap dep warningJack Nagel
The warning is lengthy, and usually wraps on 80-column terminals. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-14Remove Clang-specific cflags when switching compilersOleg Oshmyan
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-12-13ENV: update and clean up optimization flagsOleg Oshmyan
- Fix ENV.libxml2 to update CPPFLAGS rather than CFLAGS - Methods ENV.{gcc*,llvm,clang} now reset CPU-specific optimization flags on every call. Closes #8105. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-11'CHANGES' is also a meta fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-09Add support for xz-compressed tarballsJack Nagel
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started distributing _only_ xz-compressed tarballs. There is no system XZ utility provided by OS X, but it is necessary so that we can continue to provide formulae for this software. If XZUtils isn't installed, we abort and prompt the user to `brew install xz`. The `xz` command itself doesn't do any untarring, so we write the decompressed archive to stdout and pipe it to tar.
2011-12-08IdiomsAdam Vandenberg
2011-12-08audit: check for hard-coded compilersJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-08Ignore $HOME/.curlrc when invoking curlJack Nagel
Several issues have been caused by conflicts between the options Homebrew passes to curl and those read from $HOME/.curlrc. Passing '-q' will force curl to ignore settings in that file. Suggested in #9027. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-08Introduce HOMEBREW_CURL_VERBOSEJack Nagel
When investigating issues, one might want to see exactly what curl is doing behind the scenes. Setting HOMEBREW_CURL_VERBOSE will cause the '--verbose' flag to be passed to all invocations of curl. Prompted by #8992. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-04formula.rb: Fix use of xcode_version in LLVM checkCharlie Sharpsteen
Should be `MacOS.xcode_version`. Fixes #8966.
2011-12-03formula.rb: Change fails_with_llvm for XCode 4.2Charlie Sharpsteen
Suggest trying `--use-clang` instead of `--use-gcc` (which does nothing). Signed-off-by: Adam Vandenberg <flangy@gmail.com>