diff options
| author | Alexis Hildebrandt | 2010-09-28 20:14:06 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-28 11:23:41 -0700 |
| commit | 7a7a1ef067a8e25f0f10f7d4b8c4eea2011a1c04 (patch) | |
| tree | 3505ce54da2bebed0e409691d7c0a51a97589e0e /Library/Formula | |
| parent | 759295a43bc5a0176b045911fbdd892411d3e376 (diff) | |
| download | homebrew-7a7a1ef067a8e25f0f10f7d4b8c4eea2011a1c04.tar.bz2 | |
Update Formula: dcraw
Update to version 1.438
Fix compile for non-standard homebrew location like /opt/local
Add manpage
Make update comment visible in caveats
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dcraw.rb | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/Library/Formula/dcraw.rb b/Library/Formula/dcraw.rb index d762a5e15..640b48ac7 100644 --- a/Library/Formula/dcraw.rb +++ b/Library/Formula/dcraw.rb @@ -1,21 +1,34 @@ require 'formula' +class DcrawManual <Formula + url 'http://www.cybercom.net/~dcoffin/dcraw/dcraw.1' + md5 '6ba2a797c4ad698589f83171d6b36396' + version '1.50' +end + class Dcraw <Formula - # Note that the file is versioned, but not in source control, - # so updates are random and break the MD5. If you try to install - # and get an MD5 mismatch, check for a newer version number on - # http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v - # and update the version and MD5 in a patch. Thanks. homepage 'http://www.cybercom.net/~dcoffin/dcraw/' url 'http://www.cybercom.net/~dcoffin/dcraw/dcraw.c' - version '1.436' - md5 'd680b17ce75ab1c791fe92b467f1005d' + version '1.438' + md5 '108f0c14a5be4d092c7ffa8460044fb3' depends_on 'jpeg' depends_on 'little-cms' def install + ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include -L#{HOMEBREW_PREFIX}/lib" system "#{ENV.cc} -o dcraw #{ENV.cflags} dcraw.c -lm -ljpeg -llcms" bin.install 'dcraw' + DcrawManual.new.brew { man1.install Dir['*'] } + end + + def caveats; <<-EOS.undent + Note that the files are versioned, but not in source control, + so updates are random and break the MD5. If you try to install + and get an MD5 mismatch, check for a newer version number on + the following files and update the version and MD5 in a patch. Thanks! + http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v + http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.1,v + EOS end end |
