homebrew-core/Formula/ufraw.rb
2017-08-07 00:31:24 -07:00

43 lines
1.4 KiB
Ruby

class Ufraw < Formula
desc "Unidentified Flying RAW: RAW image processing utility"
homepage "https://ufraw.sourceforge.io"
url "https://downloads.sourceforge.net/project/ufraw/ufraw/ufraw-0.22/ufraw-0.22.tar.gz"
sha256 "f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e"
revision 2
bottle do
sha256 "74d32fc9213f4f8f9aa16249e17f5c23d6cb92c706bfe85a51f36ee5d05bd3a1" => :sierra
sha256 "7f60c27241d80fbd9b2a2aa1ed5a8635de6a7326850321a7dcafd819fb7aa564" => :el_capitan
sha256 "e894048c08cb563ebda3be58de6d89667f1c7ae6337738b03792ebe7306ce74d" => :yosemite
end
depends_on "pkg-config" => :build
depends_on "libpng"
depends_on "dcraw"
depends_on "gettext"
depends_on "glib"
depends_on "jasper"
depends_on "jpeg"
depends_on "libtiff"
depends_on "little-cms2"
depends_on "exiv2" => :optional
# jpeg 9 compatibility
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/b8ed064/ufraw/jpeg9.patch"
sha256 "45de293a9b132eb675302ba8870f5b6216c51da8247cd096b24a5ab60ffbd7f9"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-gtk",
"--without-gimp"
system "make", "install"
(share/"pixmaps").rmtree
end
test do
assert_match version.to_s, shell_output("#{bin}/ufraw-batch --version 2>&1")
end
end