aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-01-28audit: make boost-jam a build-time dependencyAdam Vandenberg
2012-01-27Add beer recipe. This is homebrew after all.Cameron Barrie
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-27versions: fix up error handlingJack Nagel
Now we handle some things more explicitly and in the process get rid of the blanket rescue on the mktemp block, which is something of an antipattern. By unloading the class *after* determining the version, we avoid the case where the class had previously been unloaded but Formula.factory failed, and trying to unload the nonexistent class results in a NameError. Doing it this way, we avoid having to rescue NameError and thereby avoid hiding other cases where it may occur. We also rescue TypeError which gets us past a few more bad formula in the history in some instances. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-26versions: silence 'aka' warning and syntax errorsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-26Strip escaping from queryKonstantin Shabanov
Regexp#source retains escape sequences as is, so searching for formulae like 'pure-ftpd' doesn't work. Closes Homebrew/homebrew#9597. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25Refactor the bash completion scriptJack Nagel
The script was lacking structure and had grown a number of one-off hacks that would be better as reusable functions. So, - give each subcommand that has completions it's own function - move completion of formulae, installed brews, and outdated brews into reusable functions - introduce a general __brewcomp() function that takes a string of tab, space, and/or newline separated items and converts all seperators to newlines, and then generates a reply with compgen(). These changes should allow for easier addition of new features in the future. As a bonus, completion for `brew log` will include git-log options if the git completion script is also loaded. _brew_to_completion() is kept around for compatiblity. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25audit: reorganize some checksJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25audit: make devel check more specificJack Nagel
There are a few false positives where the string 'devel' occurs in other contexts. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25Add `devel` to the DSL, + stable and bottle blocksMisty De Meo
This commit adds a `devel` entry to the DSL, allowing formulae to specify an unstable branch. `devel` takes a block, which should contain standard `url` and `md5` fields (and `version`, if necessary). This must come after the standard DSL fields. This commit also migrates over all formulae currently using `devel` to the new syntax, as well as formulae which used `head` for non-VCS urls. The new syntax is also available for `stable` and `bottle`. `stable` is an option alongside the old syntax. `bottle` replaces the old syntax. Note that the @stable ivar in Formula has been renamed to @standard, and the @bottle ivar has been renamed to @bottle_url. Closes Homebrew/homebrew#9735. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-25Fix failing ENV testsJack Nagel
We need the ARGV extension now that we call ARGV.build_bottle? in set_cpu_cflags. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-24doctor: reset should be done in HOMEBREW_REPOSITORYJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-24Make brew doctor reset instructions clearer.Mike McQuaid
Fixes Homebrew/homebrew#9739.
2012-01-24versions: don't print 'nil' when stdout is not a ttyDylan Smith
Closes Homebrew/homebrew#8960. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-23RubyismsAdam Vandenberg
2012-01-19Don't append an empty value to CFLAGSJack Nagel
Appending an empty string results in an extraneous space character. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-17audit: check for mercurial dependencyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-16Don't bottle unless built with correct flag.Mike McQuaid
Closes Homebrew/homebrew#9350. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Store in tab whether --build-bottle flag was used.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Use more generic cflags when building bottles.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Add option for building bottles.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Don't try and use GCC on Xcode 4.2: it's gone Jim.Mike McQuaid
Closes Homebrew/homebrew#9622. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-16Bump highest seen LLVM version.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-01-15Unlink old keg when upgrading dependenciesJack Nagel
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-13search: return results while parsingMisty De Meo
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 Homebrew/homebrew#9576. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-14Fix libinet version detectionMax Howell
2012-01-13search: use v2 APIMisty De Meo
The v3 API currently lacks a search feature. Use the v2 API instead for much faster pull request filtering. Closes Homebrew/homebrew#9592. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-01-14Use the basename of which_editorMax Howell
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-12pathname: recognize ".cpio.*" double extensionsJack Nagel
Just a cosmetic nicety. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12search: don't try to escape nilJack Nagel
Fixes Homebrew/homebrew#9575. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-12versions: use the actual class name when unloadingJack Nagel
And document a bit more why this hack is present. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-11ENV.gcc: search HOMEBREW_PREFIX/bin for gcc-4.2Misty De Meo
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 Homebrew/homebrew#9384. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
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 Homebrew/homebrew#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-08Complete options for `brew -S`Jack Nagel
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-05Fix man page formatting errorJack Nagel
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 Homebrew/homebrew#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>