documentviewer: patch is upstreamed. (#940)

This commit is contained in:
Jérôme Duval
2016-12-21 12:26:05 +00:00
committed by GitHub
parent 906d614da8
commit c7f9af248b
2 changed files with 5 additions and 26 deletions

View File

@@ -3,11 +3,11 @@ DESCRIPTION="DocumentViewer is a viewer that supports PDF and DJVU files."
HOMEPAGE="http://github.com/HaikuArchives/DocumentViewer"
COPYRIGHT="2010-2014 Haiku, Inc"
LICENSE="MIT"
REVISION="9"
SOURCE_URI="https://github.com/HaikuArchives/DocumentViewer/archive/185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44.tar.gz"
CHECKSUM_SHA256="29123fbad4ebf83a829480f0e8136e1e55286ae351c6a030ab3e8617481719fc"
SOURCE_DIR="DocumentViewer-185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44"
PATCHES="documentviewer-0.3_git.patchset"
REVISION="10"
srcGitRev="1a5dbd73801b76d348a688b21566d3f02e9d45ea"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="be62f6644894a9143795ef0b2b5b5963a2e8220362955bf8f860f3c3043a82d0"
SOURCE_DIR="DocumentViewer-$srcGitRev"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"

View File

@@ -1,21 +0,0 @@
From 41ca688e6df4c23f387a22d3c3e0418028e74f09 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 7 Dec 2016 14:51:42 +0000
Subject: missing cmath for std::sqrt().
diff --git a/application/PrintingWindow.cpp b/application/PrintingWindow.cpp
index 2c3fc44..5513008 100644
--- a/application/PrintingWindow.cpp
+++ b/application/PrintingWindow.cpp
@@ -9,6 +9,7 @@
#include "PrintingWindow.h"
#include <algorithm>
+#include <cmath>
#include <memory>
#include <Application.h>
--
2.10.2