2015-09-26 13:49:17 +00:00
|
|
|
class Dspdfviewer < Formula
|
|
|
|
desc "Dual-Screen PDF Viewer for latex-beamer"
|
|
|
|
homepage "http://dspdfviewer.danny-edel.de"
|
2016-05-20 16:15:21 +00:00
|
|
|
url "https://github.com/dannyedel/dspdfviewer/archive/v1.15.tar.gz"
|
|
|
|
sha256 "19986053ac4a60e086a9edd78281f1e422a64efef29e3c6604386419e9420686"
|
2015-12-19 06:59:55 +00:00
|
|
|
head "https://github.com/dannyedel/dspdfviewer.git"
|
2015-09-26 13:49:17 +00:00
|
|
|
|
2015-09-27 21:58:25 +00:00
|
|
|
bottle do
|
2016-05-20 19:52:58 +00:00
|
|
|
cellar :any
|
|
|
|
sha256 "5f23135aa30bf6fae45d453d892361daef51e19ffe510f5a9e79b5ed7393d0e3" => :el_capitan
|
|
|
|
sha256 "69bf9e53d7b8fd5414f770baea119c7f22d1a05f752c7915cbe1f0cdc201a004" => :yosemite
|
|
|
|
sha256 "d2f2ad9306d3417ab848ed98ca47481242a4a4064f8a8a1e1e6cc41aa286d4aa" => :mavericks
|
2015-09-27 21:58:25 +00:00
|
|
|
end
|
|
|
|
|
2015-09-26 13:49:17 +00:00
|
|
|
depends_on "cmake" => :build
|
2016-05-20 16:15:21 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2015-09-26 13:49:17 +00:00
|
|
|
depends_on "boost"
|
2016-05-20 16:15:21 +00:00
|
|
|
depends_on "poppler" => "with-qt5"
|
2015-09-26 13:49:17 +00:00
|
|
|
|
|
|
|
def install
|
2016-05-20 16:15:21 +00:00
|
|
|
args = std_cmake_args
|
|
|
|
args << "-DUsePrerenderedPDF=ON"
|
|
|
|
args << "-DRunDualScreenTests=OFF"
|
|
|
|
args << "-DUseQtFive=ON"
|
2015-09-26 13:49:17 +00:00
|
|
|
mkdir "build" do
|
2016-05-20 16:15:21 +00:00
|
|
|
system "cmake", "..", *args
|
2015-09-26 13:49:17 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-05-20 16:15:21 +00:00
|
|
|
assert_match /#{version}/, shell_output("#{bin}/dspdfviewer --version", 0)
|
2015-09-26 13:49:17 +00:00
|
|
|
end
|
|
|
|
end
|