homebrew-core/Formula/dspdfviewer.rb

38 lines
1.1 KiB
Ruby

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"
revision 1
head "https://github.com/dannyedel/dspdfviewer.git"
bottle do
cellar :any
sha256 "4d1956fe7d07ad07164f30c16bbf3d9b82b3dfdd439b0f3972638f3206c7dd2b" => :sierra
sha256 "3549976a73ab1365db19b621d0b4e1f0079c8914fff8235b1de1da53cf1e0323" => :el_capitan
sha256 "29e5c046cd00cb1c1982df8e36f59424ab51c9bac34d2006fe2d458936953ed3" => :yosemite
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "boost"
depends_on "poppler" => "with-qt"
depends_on "qt"
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