aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
AgeCommit message (Collapse)Author
2011-03-12Complain if a formula in core won't import.Adam Vandenberg
2011-03-12Use + instead of /.Adam Vandenberg
2011-03-12Formula.resolve_alias to compatability.rbMax Howell
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.
2010-12-22Fix GithubGistFormula.Adam Vandenberg
2010-11-04Fix installing from local abs. paths.Adam Vandenberg
2010-11-03Quash warning.Adam Vandenberg
Fixes Homebrew/homebrew#3056
2010-10-30fix warnings: ambiguous splatJamie Macey
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30Allow installation from URLsAdam Vandenberg
This allows installation like: brew install http://example.com/something.rb Based on an original patch by [dwalters]. Fixes Homebrew/homebrew#160
2010-10-26Prefer HEAD version if its installedJoshua Peek
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-12Allow :build dependencies.Adam Vandenberg
2010-09-29improve std_cmake_parameters commentsAdam Vandenberg
2010-09-29Move resolve_alias from ARGV to FormulaAdam Vandenberg
Also, call this function from a few places where the code was duplicated.
2010-09-29Add formula name to LLVM warningAdam Vandenberg
2010-09-29Don't allow unsupported dep typesAdam Vandenberg
2010-08-20Let 'interactive_shell' take a formula and set ENV vars.Adam Vandenberg
Pull duplicate code out of install --debug and install -i up into 'interactive_shell'.
2010-08-16Use 1.9 compat syntax. Fixes Homebrew/homebrew#2192Adam Vandenberg
2010-08-09fails_with_llvm will switch to GCC 4.2 by defaultAdam Vandenberg
2010-08-09Fix skip_clean :all to actually skip clean stepChris Hoffman
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-08Getting rid of pesky 'warning: parenthesize argument(s) for future version'Brent Fitzgerald
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-07Add 'skip_clean :all' to the DSL.Adam Vandenberg
2010-08-07Add keg-only to DSLAdam Vandenberg
2010-08-07added man subdirectories man2-man8Sam X Nguyen
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-07Sort and line up path helpersAdam Vandenberg
2010-08-07Deprecate using symbols to define depsAdam Vandenberg
2010-08-07"url" now has same features as "head"Adam Vandenberg
Specifically, it can accept all the VCS tag specs that head could, making it more useful for defining stable versions that come from VCS instead of tarballs. A new "SoftwareSpecification" class was added to implement this. This new class holds a "spec" for downloading a software package. It combines the url (or head url) with the "specs" [1] that head has been able to take. This allows both the stable (url) and unstable (head) specification for a software package to co-exist without stomping on each others "specs". [1] "specs" contain instructions on which branch/tag/revision/etc. to use from the source repository URL.
2010-08-07Add 'aka' removal notice.Adam Vandenberg
'aka' is no longer used to define aliases, but we'll keep the method around with a warning so non-master brews have a chance to remove any aka's; otherwise pushing the change will break private brews and we don't want to do that.
2010-08-07Skip broken formulaeAdam Vandenberg
2010-08-07New Aliasing system is plenty less code :)Max Howell
2010-07-18Use build_head here too.Adam Vandenberg
2010-07-03Allow user to override temp folder with HOMEBREW_TEMPAdam Vandenberg
2010-06-18Note how to redownload tarballs on failed checksum.Adam Vandenberg
Fixes Homebrew/homebrew#659
2010-06-16Add "fails_with_llvm" to formula to document LLVM build breaks.Adam Vandenberg
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm", to specifically message to the user when a formula is known or suspected to not build with LLVM. If the user specifies "--use-llvm", the message will be displayed, but compilation will be tried anyway. Since using LLVM is now an advanced/hidden feature instead of the default on 10.6, we'll let the user try anyway (and submit patches if things are now working.)
2010-06-15External: 'brew fetch' downloads tarballs to cache.Adam Vandenberg
2010-06-15Set HOMEBREW_DEBUG_INSTALL when in a shell during install -d|-iAdam Vandenberg
When an "install -d formula" fails, and the user gets dropped into an interactive shell, set the HOMEBREW_DEBUG_INSTALL env var to the name for the formula that failed. Also set variable if the user requests an interactive install in the first place. Note that this may be different than the formula being installed, since it may have been a dep that failed. Also remove todo in utils; users can now look for HOMEBREW_DEBUG_INSTALL in their prompt command, and adjust their prompts accordingly.
2010-06-10Failures during ./configure should mention config.log.Adam Vandenberg
2010-06-01Split patching message into downloading and patchingAdam Vandenberg
2010-05-05Let GitDownloadStrategy report its cache location.Adam Vandenberg
2010-05-02Tweak formatting in previous commit.Adam Vandenberg
2010-05-02Show digest mismatch in verify_download_integrityYarrow
Report "Expected <supplied digest>, got <file's digest>" when verify_download_integrity sees a mismatch. (It had been, confusingly, reporting "Expected <file's digest>".) Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-17Read all formula in a 'rescue' block.Adam Vandenberg
For operations that read all formulae, catch exceptions and skip broken ones, rather than bomb out entirely.
2010-04-10Only respect :using specs when downloading HEAD.Martin Kühl
When a formula specifies both an `url` and a `head`, and the latter specified a `:using` spec, brew would try to fetch the `url` using the specified download strategy. With this change, brew respects `:using` specs only when determining the download strategy for `head`. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-09Support jruby external dependencies.Adam Vandenberg
* Add tests that run only if 'jruby' is installed. * Note that if your formula has :jruby deps, it should likely "depend_on 'jruby'" as well.
2010-04-06Only check @specs for :using if @specs exists. Fixes Homebrew/homebrew#1127.Adam Vandenberg
2010-04-06Allow :using on head to specify a download strategy.Adam Vandenberg
A 'head' in a formula can now specify which download strategy to use via a ':using' specification: head 'http://svn.macosforge.org/repository/darwinbuild/trunk/', :using => :svn This reduces the number of cases where "download_strategy" needs to be overriden.
2010-04-06Remove silly concatenation.Adam Vandenberg
2010-03-30More hashing refactoring to work with byte chunksJake Good
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-23More effective use of incremental MD5 to eliminate loading entire tarball ↵Jake Good
into memory Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-22Add md5 on 'brew create' if we can figure it out.Adam Vandenberg
2010-03-01Move license block to separate LICENSE file.Adam Vandenberg