libraw 0.15.4

Fixes Homebrew/homebrew#25038.
This commit is contained in:
Misty De Meo 2013-12-07 12:35:01 -08:00
parent 4805296e9d
commit e6a9f0cfd1

View file

@ -1,28 +1,28 @@
require 'formula'
class LibrawTestFile < Formula
url 'http://www.rawsamples.ch/raws/nikon/d1/RAW_NIKON_D1.NEF',
:using => :nounzip
sha1 'd84d47caeb8275576b1c7c4550263de21855cf42'
end
class Libraw < Formula
homepage 'http://www.libraw.org/'
url 'http://www.libraw.org/data/LibRaw-0.14.7.tar.gz'
sha1 'e924527bed3d72ee4756da0c9383dc74c584799f'
url 'http://www.libraw.org/data/LibRaw-0.15.4.tar.gz'
sha1 '1561e1ac12df6eed999d5be3146d66176c050b76'
depends_on 'pkg-config' => :build
depends_on 'jasper'
depends_on 'little-cms2'
resource 'librawtestfile' do
url 'http://www.rawsamples.ch/raws/nikon/d1/RAW_NIKON_D1.NEF',
:using => :nounzip
sha1 'd84d47caeb8275576b1c7c4550263de21855cf42'
end
resource 'gpl2' do
url 'http://www.libraw.org/data/LibRaw-demosaic-pack-GPL2-0.14.7.tar.gz'
sha1 '9a95d5be316c6efe91228ab696eb39c565922cad'
url 'http://www.libraw.org/data/LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz'
sha1 '9eaa33b53e15053937a1ac081227713cae7f25fb'
end
resource 'gpl3' do
url 'http://www.libraw.org/data/LibRaw-demosaic-pack-GPL3-0.14.7.tar.gz'
sha1 '63b1e4899c7aa1a9023e6f4516b91c9c9aa3893e'
url 'http://www.libraw.org/data/LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz'
sha1 'd9ce308bccae75f26fa56ab6c2ad705ef0eaa761'
end
def install
@ -38,7 +38,7 @@ class Libraw < Formula
end
def test
LibrawTestFile.new.brew do
resource('librawtestfile').stage do
filename = 'RAW_NIKON_D1.NEF'
system "#{bin}/raw-identify", "-u", filename
system "#{bin}/simple_dcraw", "-v", "-T", filename