aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/feh.rb
blob: e20df1340f548ae8c9583e11c0659fc7f0745052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "formula"

class Feh < Formula
  homepage "http://feh.finalrewind.org/"
  url "http://feh.finalrewind.org/feh-2.12.tar.bz2"
  sha1 "30eb2b778858b1f4ce97e44c8225758185b0c588"

  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
end