class Dspdfviewer < Formula desc "Dual-Screen PDF Viewer for latex-beamer" homepage "http://dspdfviewer.danny-edel.de" url "https://github.com/dannyedel/dspdfviewer/archive/v1.15.1.tar.gz" sha256 "c5b6f8c93d732e65a27810286d49a4b1c6f777d725e26a207b14f6b792307b03" head "https://github.com/dannyedel/dspdfviewer.git" bottle do cellar :any sha256 "f689fd84944b153babb3cf1b22b6c735abb897f8d9edb6abf4a0fd7ec9f0340f" => :sierra sha256 "5f23135aa30bf6fae45d453d892361daef51e19ffe510f5a9e79b5ed7393d0e3" => :el_capitan sha256 "69bf9e53d7b8fd5414f770baea119c7f22d1a05f752c7915cbe1f0cdc201a004" => :yosemite sha256 "d2f2ad9306d3417ab848ed98ca47481242a4a4064f8a8a1e1e6cc41aa286d4aa" => :mavericks end depends_on "cmake" => :build depends_on "pkg-config" => :build depends_on "boost" depends_on "poppler" => "with-qt5" depends_on "qt5" def install args = std_cmake_args args << "-DUsePrerenderedPDF=ON" args << "-DRunDualScreenTests=OFF" args << "-DUseQtFive=ON" mkdir "build" do system "cmake", "..", *args system "make", "install" end end test do system bin/"dspdfviewer", "--help" end end