diff options
| author | Clinton R. Nixon | 2009-09-22 12:31:53 -0400 |
|---|---|---|
| committer | Clinton R. Nixon | 2009-09-23 14:51:11 -0400 |
| commit | 44a3d59630fddaa45767174c35ed410984eeb60b (patch) | |
| tree | 8703d3a0bf2c14e3ba6455acc71a0dd3d3ad7bca /Library/Homebrew/utils.rb | |
| parent | 6f4c61e326d6dd1152f5395a80a00dea3c458de0 (diff) | |
| download | brew-44a3d59630fddaa45767174c35ed410984eeb60b.tar.bz2 | |
Added small DSL for formulas
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.
Diffstat (limited to 'Library/Homebrew/utils.rb')
0 files changed, 0 insertions, 0 deletions
