homebrew-core/Formula/feh.rb

28 lines
848 B
Ruby
Raw Normal View History

2017-01-25 10:24:16 +00:00
class Feh < Formula
desc "X11 image viewer"
homepage "https://feh.finalrewind.org/"
url "https://feh.finalrewind.org/feh-2.18.2.tar.bz2"
sha256 "34be64648f8ada0bb666e226beac601f972b695c9cfa73339305124dbfcbc525"
2017-01-25 10:24:16 +00:00
2017-01-27 02:33:29 +00:00
bottle do
2017-02-27 07:36:53 +00:00
sha256 "34b36782e60141ac1aae7d0964f50f742bdf0f8480437ea54f0278f3ff8af952" => :sierra
sha256 "60d6c4cae83fdf4d331224252d9d31714a0d785758c209796b83810ab0c3ec0b" => :el_capitan
sha256 "7a27da4b85b43078b81dade2a3b67347dada513e44a5f1c19e5311d53c9a9771" => :yosemite
2017-01-27 02:33:29 +00:00
end
2017-01-25 10:24:16 +00:00
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