aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
AgeCommit message (Collapse)Author
2010-03-01Move license block to separate LICENSE file.Adam Vandenberg
2010-02-24brew --cache [formula]Adam Vandenberg
This developer-oriented command lets you ask Homebrew what the cached filename will be for a brew's tarball.
2010-02-02Bazaar download strategyDavid Höppner
2010-02-01Create Download Strategy sooner in formula install code.Adam Vandenberg
* Instantiate DownloadStrategy instance when creating a formula. * Rename CurlDownloadStrategy member to clarify what it is for. * Generate downloaded tarball name in initialize.
2010-01-14Added CMake parameter to suppress warningsFlorian Sowade
The -Wno-dev CMake parameter suppresses warnings meant for the developer, not the user.
2010-01-13Improve error when no url givenAsh Berlin
2010-01-13Adds: depends_on 'simplejson' => :pythonMax Howell
So far we only added python, but we can add more. Fixes Homebrew/homebrew#401
2010-01-13Fixes Homebrew/homebrew#433Adam Vandenberg
2010-01-13Formulary commentsMax Howell
2009-12-19Just try requiring, instead of looking for the name first.Adam Vandenberg
2009-12-19Fix Formula path.Adam Vandenberg
Linking "Library" under prefix is optional, but Library will always exist relative to the REPOSITORY folder, so use that instead of prefix for formula paths.
2009-12-17Allow https on more download strategies.Adam Vandenberg
2009-12-12Some small style reformatsAdam Vandenberg
2009-12-12Mercurial - recognize Google Code repos and support revisions.Adam Vandenberg
2009-12-12Better error message if exec failsMax Howell
2009-12-05Comments reflect actual patch level of 1.Ben Olive
Updated comments to match new default patch level from revision 4fe374d
2009-12-01include FileUtils into FormulaMax Howell
Thus mv, rm etc, functions are almost as handy as pure shell scripting, without issues related to spaces in filenames.
2009-11-19Refactor formula_test.Adam Vandenberg
2009-11-19New command 'brew deps [formula]'Adam Vandenberg
Where brew info will show the next-level-down dependencies, brew deps will show all of the formulae that a given formula depends on.
2009-11-19Add alias support to formulaeAdam Vandenberg
* brew install will find an aliased formula * aliases are searched against * warn when creating a new formula that has an existing alias. If Subversion has an alias "svn", then warn when the user tries to create a new formula "svn". The formula can still be created, though the user should make sure it's not a duplicate of the existing aliased one. Subversion and Objective-Caml formulas get some alises here, so we have something to test against.
2009-11-19Add brew command 'uses'Adam Vandenberg
'uses' shows the formulas that depend on a formula given on the command-line.
2009-11-19Add a Formulary class for managing the FormulaeAdam Vandenberg
These methods could be static on Formula, but splitting them out makes it clear to formular authors that these functions don't have anything to do with writing new formulas.
2009-11-11Fix system() exception showing regressionMax Howell
Rather than showing a backtrace that says "couldn't find command blah". Admittedly it's possible that the error will be something else, but unlikely. And this is neater. Ideally we'd push the bt through an error pipe like we do with install.rb. And I guess we'll do this eventually.
2009-11-09Don't ignore interupts during Formula.systemMax Howell
As I understand it (I tested too), signal propogation is handled by the parent Ruby process. However this was working mostly anyway. So I don't fully understand what is going on. However this seems to not hang in Process.wait where it was before for one test case.
2009-11-08Reap the process or make zombiesMax Howell
2009-11-08Use our own popen implementation in Formula.systemMax Howell
The rationale here is that the --verbose mode had a bug where it didn't escape its parameters properly. Which caused ocassionally cryptic issues.
2009-11-07Propagate exit status in ExecutioError exceptionMax Howell
2009-11-07Move BuildError and ExceutionError to global.hMax Howell
More sensible, and fixes brew
2009-10-24Better md5 mismatch exceptionMax Howell
2009-10-19Camelcase class names around the . from filenamesMax Howell
Eg. shell.fm -> ShellFm
2009-10-19Allow svn+http:// urlsMax Howell
2009-10-19Fix Homebrew/homebrew#52: Add ability to checkout a branch or tag.Jannis Leidel
GitDownloadStrategy and MercurialDownloadStrategy now can be used like this: head 'git://server/repo.git', :branch => 'stable' head 'hg://server/repo/', :tag => '1.0.4'
2009-10-19Allow formula names with '+' in themMax Howell
HFS+ handles the + fine. However the Ruby class name needs a s/+/x/g. I acknowledge that supporting + will make it harder to port to certain other filesystems. However that's your challenge! :D
2009-10-15s/require 'brewkit'/require 'formula'/gMax Howell
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
2009-10-03Modernise the GRC formula somewhatMax Howell
This was one of the first ones I wrote, so it lacks some of our more recent touches.
2009-10-02HttpDownloadStrategy renamed CurlDownloadStrategyMax Howell
Because people didn't realise it was actually curl and thus supports eg. ftp too.
2009-10-02Formula.etc is now HOMEBREW_PREFIX/etcMax Howell
You generally don't want to have to copy the configuration to a new directory when you upgrade.
2009-10-01Add SourceForge pattern to SubversionDownloadStrategyAdam Vandenberg
2009-10-01Formula.var is now HOMEBREW_PREFIX/varMax Howell
2009-09-30Adding CVS and Mercurial download strategies.Austin Ziegler
2009-09-30Var goes back in the keg. Fixes Homebrew/homebrew#67Max Howell
I'm not sure about this still, as if you uninstall mysql do you want to lose all the var stuff it created? Maybe. Probably not. But there were issues unresolved having it in the unversioned-keg. So I'd rather look at this again later, and fix the bugs without hacks for now.
2009-09-29Don't fail when cleaning if skip_clean_paths is emptyMax Howell
2009-09-29Allow skip_clean as a class methodAndre Arko
Pass in a list of any files that you don't want cleaned with a path relative to the cellar. e.g. `strip_paths ['bin/znc']` It's backwards compatible with def strip_clean?, at least for now. The znc formula is updated as an example.
2009-09-29eval badAndre Arko
2009-09-26Oops. Don't raise for homepages. Silly.Max Howell
2009-09-25Throw if no homepage setMax Howell
That'll teach you!
2009-09-25Add better error message for misnamed formula class.Adam Vandenberg
2009-09-24Use full paths to all system utilitiesMax Howell
Otherwise you run the risk of not running the exact version / make of the utility you planned. Fixes Homebrew/homebrew#48 Really we need to do this formula too, so I guess a make and cmake function are on the way…
2009-09-24DRYed up "@foo=self.class.foo unless @foo" statementsClinton R. Nixon
Using the example from the existing code: CHECKSUM_TYPES.each do |type| if !instance_variable_defined?("@#{type}") class_value = self.class.send(type) instance_variable_set("@#{type}", class_value) if class_value end end I extracted that block into a method 'set_instance_variable' which I then used in all places where this behavior was being used.
2009-09-23Added small DSL for formulasClinton R. Nixon
You can now use "url", "version", "homepage", and any checksums as class methods, like so: class Dos2unix <Formula url 'http://www.sfr-fresh.com/linux/misc/old/dos2unix-3.1.tar.gz' md5 '25ff56bab202de63ea6f6c211c416e96' homepage 'http://www.sfr-fresh.com/linux/misc/' end The previous usage ("@url = 'http://example.com/tarball.tgz'") still works, maintaining compatibility with previous formulas. "dos2unix.rb" is translated into the new format as an example.