homebrew-core/Formula/feh.rb
2017-11-07 06:49:59 -08:00

27 lines
851 B
Ruby

class Feh < Formula
desc "X11 image viewer"
homepage "https://feh.finalrewind.org/"
url "https://feh.finalrewind.org/feh-2.22.1.tar.bz2"
sha256 "dd8f1e30d3269056eda7dac07a1d40313635169fcf59ea114b85908af38f3ff3"
bottle do
sha256 "ce5bd97807982041096c12e34aafd3ee62e3735c13fa821adaeb74eacdab8733" => :high_sierra
sha256 "5fd688aed61d555b2c7a8a66796188dab6c14c0b595d073ca54df2c1a2995a51" => :sierra
sha256 "973869d66ecb40d7de2ab9bdef23e6f1e7640dec67acca0d6ae8a270be133338" => :el_capitan
end
depends_on :x11
depends_on "imlib2"
depends_on "libexif" => :recommended
def install
args = []
args << "exif=1" if build.with? "libexif"
system "make", "PREFIX=#{prefix}", *args
system "make", "PREFIX=#{prefix}", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/feh -v")
end
end