homebrew-core/Formula/dspdfviewer.rb
2018-03-21 03:04:41 -07:00

37 lines
1.1 KiB
Ruby

class Dspdfviewer < Formula
desc "Dual-Screen PDF Viewer for latex-beamer"
homepage "https://dspdfviewer.danny-edel.de/"
url "https://github.com/dannyedel/dspdfviewer/archive/v1.15.1.tar.gz"
sha256 "c5b6f8c93d732e65a27810286d49a4b1c6f777d725e26a207b14f6b792307b03"
revision 6
head "https://github.com/dannyedel/dspdfviewer.git"
bottle do
cellar :any
sha256 "9a8143b03dc182dbae8177ab51d64dd186cf1bfdbb938c899c1139e75c4469de" => :high_sierra
sha256 "4fa470a68a5bc15e5e39568204cee8867808c5214f22816c982ecca9ce998813" => :sierra
sha256 "e6fd8da112c87696888788c748b80da3ca5d522c075eecc044c16da0d6229c44" => :el_capitan
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