homebrew-core/Formula/feh.rb
2017-09-10 22:53:52 +02:00

26 lines
755 B
Ruby

class Feh < Formula
desc "X11 image viewer"
homepage "https://feh.finalrewind.org/"
url "https://feh.finalrewind.org/feh-2.20.tar.bz2"
sha256 "4b504302099ec6dd099c84dd7e285c80dc318977ebda48949593386bc26e700b"
bottle do
sha256 "c6d50e75ec4d339d97c38a533704ef8a34a767a412e98dac9e081cfe2b017937" => :sierra
sha256 "9c764b3024517ac05de3c21ee13cc12b44fc2940262611c58948cd7f398dca54" => :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