pqiv 2.8.1 (new formula)

This closes https://github.com/phillipberndt/pqiv/issues/66

Closes #10344.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Phillip Berndt 2017-02-26 12:37:37 +01:00 committed by FX Coudert
parent f5f9430619
commit e8c505b41d

25
Formula/pqiv.rb Normal file
View file

@ -0,0 +1,25 @@
class Pqiv < Formula
desc "Powerful image viewer with minimal UI"
homepage "https://github.com/phillipberndt/pqiv"
url "https://github.com/phillipberndt/pqiv/archive/2.8.1.tar.gz"
sha256 "ff8f28007535332f038c7d04a3c2d6696aa62604eef4fd66fc6500a8c235de30"
head "https://github.com/phillipberndt/pqiv.git"
depends_on "pkg-config" => :build
depends_on "gtk+3"
depends_on "libspectre" => :recommended
depends_on "poppler" => :recommended
depends_on "imagemagick" => :recommended
depends_on "libarchive" => :recommended
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
# pqiv does not work at all unless a display is present
# (it just outputs an GTK error message)
system "#{bin}/pqiv 2>&1 | grep -qi gtk"
end
end