Commit Graph
1220 Commits
Author SHA1 Message Date
Jack Nagel d2c6ed039c audit: check for mercurial dependency
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-17 21:57:13 -06:00
Mike McQuaid 47bd7be80a Store in tab whether --build-bottle flag was used.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16 21:05:00 +00:00
Mike McQuaid 3b6c4d99ec Use more generic cflags when building bottles.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16 21:05:00 +00:00
Mike McQuaid 89dc85b09d Add option for building bottles.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16 21:05:00 +00:00
Mike McQuaid 28c20b387b Don't try and use GCC on Xcode 4.2: it's gone Jim.
Closes #9622.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16 21:00:24 +00:00
Mike McQuaid 1e98594277 Bump highest seen LLVM version.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16 21:00:24 +00:00
Jack Nagel 3e4335894d Unlink old keg when upgrading dependencies
Installing a formula via `brew install` may trigger upgrades of its
dependencies if the dependencies are installed but outdated. However, we
never unlinked the existing keg in FormulaInstaller#install_dependency
which caused the link step to fail.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-15 17:18:17 -06:00
Misty De Meo f2f26a11bb search: return results while parsing
Instead of returning a full list of results after parsing, yield and
print each result as it's found for a snappier user experience.

Closes #9576.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-13 22:31:55 -06:00
Max Howell 14d7d03425 Fix libinet version detection 2012-01-14 03:48:03 +00:00
Misty De Meo 9056c49f9d search: use v2 API
The v3 API currently lacks a search feature. Use the v2 API instead for
much faster pull request filtering.

Closes #9592.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-13 20:55:18 -06:00
Max Howell ea40b1b87a Use the basename of which_editor
I had EDITOR set to /usr/local/bin/mate set and got the whole of /usr/local opened in TextMate which takes fricking forever!
2012-01-14 02:40:43 +00:00
Jack Nagel 749a3538fe pathname: recognize ".cpio.*" double extensions
Just a cosmetic nicety.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12 20:31:47 -06:00
Jack Nagel 7c9a7b4272 search: don't try to escape nil
Fixes #9575.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12 18:55:16 -06:00
Jack Nagel ed2202d349 versions: use the actual class name when unloading
And document a bit more why this hack is present.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12 01:16:02 -06:00
Misty De Meo e404417d5a ENV.gcc: search HOMEBREW_PREFIX/bin for gcc-4.2
Allow the use of a Homebrewed gcc-4.2 in order to support homebrew-alt's
apple-gcc42 formula.

This also removes the :force filtering for the gcc-4.2 check error.

Closes #9384.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-11 21:16:13 -06:00
Jack Nagel c00dbf3e41 search: return matches from open pull requests
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-11 21:11:53 -06:00
Jack Nagel f05db25a8e Make MacOS.clang_build_version more useful
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-11 02:19:09 -06:00
Jack Nagel 483d41c7ef versions: unload old class before obtaining version
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-06 22:07:45 -06:00
Jack Nagel b26e66fa46 versions: enable '--compact' output
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-06 14:51:15 -06:00
Jack Nagel 49bb7b65a5 versions: determine version from a Formula instance
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-06 14:51:15 -06:00
Jack Nagel 8fa64c00b4 Tab: handle non-core kegs without receipts
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-05 12:03:04 -06:00
Jack Nagel 6fa995c71c Force creation of locale-specific man directories
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-04 20:50:19 -06:00
Jack Nagel aee6acecdc info: always mark currently linked keg with *
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-03 19:50:20 -06:00
Jack Nagel 5079980d0c info: display used options for all installed kegs
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03 19:50:19 -06:00
Jack Nagel 913b8c4d60 tab: allow retrieving tabs from arbitrary kegs
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-03 19:50:19 -06:00
Jack Nagel b3fafa3ff1 Add a helper to determine if a keg is linked
'keg.linked?' will return true if there is an entry for 'keg' in
LinkedKegs.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-03 19:50:19 -06:00
Adam Vandenberg 84d98ea9b9 audit: do not complain about --32-bit 2012-01-02 14:58:15 -08:00
Adam Vandenberg 4fb16996f9 Standardize 32 bit build switch 2012-01-02 14:53:36 -08:00
Jack Nagel ae75008a35 tests: add missing require to test_ENV
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-01 23:58:15 -06:00
Felix Buenemann e1ab74e879 Omit check_m4 warning when appropriate
If the suggested modifications are already in place, just skip the
warning.

Closes #8624.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-01 23:15:31 -06:00
Jack Nagel 684e3f8a15 brew --env: respect --universal
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-31 21:22:22 -06:00
Jack Nagel b02b8d1694 audit: check for trailing newline
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-31 00:05:25 -06:00
Jack Nagel f345927d0d Only show gcc build if it's really gcc
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-30 15:24:07 -06:00
Jack Nagel 5bc2d70cad doctor: clean up check_git_status
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-28 19:55:02 -06:00
Jack Nagel 14262d5891 config: prettify sha method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-28 19:54:59 -06:00
Charlie Sharpsteen 487cb7000f Generalize formula_installer dependency resolution
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-26 11:58:25 -08:00
Charlie Sharpsteen 839bc52520 Allow Formula.canonical_name to use Pathname objects 2011-12-26 11:58:25 -08:00
Jack Nagel ec38242f78 Resolve multi-level gcc symlinks
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-26 12:03:55 -06:00
Charlie Sharpsteen 0db2bab96b formula.rb: Don't apply fails_with_llvm to Clang
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-24 12:48:10 -08:00
Adam Vandenberg bcaffd76a8 audit: remove --strict 2011-12-21 14:52:15 -08:00
Adam Vandenberg 8ba5062a9e Homebrew 0.8.1
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-21 12:03:45 -08:00
Adam Vandenberg c40c779b53 Clean up --config 2011-12-21 10:47:44 -08:00
Adam Vandenberg f9156eeabd Omit empty caveats 2011-12-20 20:11:54 -08:00
Adam Vandenberg 72fc9fc3ef --HEAD checks
* Force --HEAD for head-only installs
* Don't allow --HEAD for stable-only formulae
2011-12-18 16:24:56 -08:00
Adam Vandenberg 236ce9ea41 Audit: warn about head-only formulae 2011-12-18 16:24:56 -08:00
Adam Vandenberg aa78a7f434 Expose stable/unstable specs 2011-12-18 16:24:56 -08:00
Adam Vandenberg 4d3b9efe81 Extract checksum type function 2011-12-18 16:24:56 -08:00
Adam Vandenberg 29675443a9 Simplify a couple of comments 2011-12-18 16:24:55 -08:00
Adam Vandenberg 8c0796e805 doctor: check for Enthought Python 2011-12-18 08:36:44 -08:00
Jack Nagel c4d1743c58 doctor: normalize representation of env variables
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-16 20:34:30 -06:00