Subject: [PATCH] testing/nomacs: fix build

From: Alex Raschi <[email-masked]>
Date: Wed, 14 Aug 2019 21:22:50 +0200

---
 testing/nomacs/APKBUILD           |  8 +++++---
 testing/nomacs/fix-std-cout.patch | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 testing/nomacs/fix-std-cout.patch

diff --git a/testing/nomacs/APKBUILD b/testing/nomacs/APKBUILD
index d51f2b6dae..45ffb8f626 100644
--- a/testing/nomacs/APKBUILD
+++ b/testing/nomacs/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Alex Raschi <[email-masked]>
 pkgname=nomacs
 pkgver=3.12
-pkgrel=2
+pkgrel=3
 pkgdesc="Small and fast Qt image viewer"
 url="https://nomacs.org/"
 arch="all"
@@ -18,7 +18,8 @@ makedepends="cmake
 	libzip-dev"
 subpackages="$pkgname-doc $pkgname-lang"
 options="!check" # no test suite
-source="$pkgname-$pkgver.tar.gz::https://github.com/nomacs/$pkgname/archive/$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/nomacs/$pkgname/archive/$pkgver.tar.gz
+        fix-std-cout.patch"
 builddir="$srcdir/$pkgname-$pkgver/ImageLounge"
 
 build() {
@@ -55,4 +56,5 @@ lang() {
 	mv "$pkgdir"/"$langdir"/* "$subpkgdir"/"$langdir"/
 }
 
-sha512sums="4508354d48a6115cd40f701cc90cbbcb84490e99eaac0295db48f6fea99550d5e2b3e7365128d0c9cc4eeb621906f55e275603d84cb8b6bb164d0b5e2e192119  nomacs-3.12.tar.gz"
+sha512sums="4508354d48a6115cd40f701cc90cbbcb84490e99eaac0295db48f6fea99550d5e2b3e7365128d0c9cc4eeb621906f55e275603d84cb8b6bb164d0b5e2e192119  nomacs-3.12.tar.gz
+1530398feaa341687fd5e0117507b2262d46deb3052988e97156beee81d9611c8035be03ab616868a2dcff93fa5e82279f6a73af7edc70630451cfa28f9a4765  fix-std-cout.patch"
diff --git a/testing/nomacs/fix-std-cout.patch b/testing/nomacs/fix-std-cout.patch
new file mode 100644
index 0000000000..c0d09bad6c
--- /dev/null
+++ b/testing/nomacs/fix-std-cout.patch
@@ -0,0 +1,20 @@
+--- a/src/DkGui/DkNoMacs.cpp
++++ b/src/DkGui/DkNoMacs.cpp
+@@ -25,6 +25,7 @@
+ 
+  *******************************************************************************************************/
+ 
++#include <iostream>
+ #include "DkNoMacs.h"
+ 
+ // my stuff
+--- a/src/DkCore/DkMetaData.cpp
++++ b/src/DkCore/DkMetaData.cpp
+@@ -25,6 +25,7 @@
+ 
+  *******************************************************************************************************/
+ 
++#include <iostream>
+ #include "DkMetaData.h"
+ #include "DkUtils.h"
+ #include "DkMath.h"
-- 
2.22.0