net-misc/nextcloud-client: fix test compilation
authorBernard Cafarelli <voyageur@gentoo.org>
Fri, 13 Dec 2019 12:43:01 +0000 (13:43 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Fri, 13 Dec 2019 12:43:13 +0000 (13:43 +0100)
Closes: https://bugs.gentoo.org/700262
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
net-misc/nextcloud-client/files/nextcloud-client-2.6.1-include_tests.patch [new file with mode: 0644]
net-misc/nextcloud-client/nextcloud-client-2.6.1.ebuild

diff --git a/net-misc/nextcloud-client/files/nextcloud-client-2.6.1-include_tests.patch b/net-misc/nextcloud-client/files/nextcloud-client-2.6.1-include_tests.patch
new file mode 100644 (file)
index 0000000..da84230
--- /dev/null
@@ -0,0 +1,22 @@
+From f9c6449c050cad673cf37971d9815a35e6ffb5dd Mon Sep 17 00:00:00 2001
+From: tuxmaster5000 <837503+tuxmaster5000@users.noreply.github.com>
+Date: Fri, 12 Oct 2018 15:56:26 +0200
+Subject: [PATCH] Fix include file
+
+---
+ test/testnextcloudpropagator.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/testnextcloudpropagator.cpp b/test/testnextcloudpropagator.cpp
+index 6ad1a6b37..dc2e476ad 100644
+--- a/test/testnextcloudpropagator.cpp
++++ b/test/testnextcloudpropagator.cpp
+@@ -8,7 +8,7 @@
+ #include <QDebug>
+ #include "propagatedownload.h"
+-#include "nextcloudpropagator_p.h"
++#include "owncloudpropagator_p.h"
+ using namespace OCC;
+ namespace OCC {
index 9b0d12160a76f6f115641816ed6a6a56bcf0fd96..ba40a56dc34c2e442a83cf72422f799a0f7140df 100644 (file)
@@ -51,6 +51,8 @@ DEPEND="${COMMON_DEPEND}
 
 RESTRICT="!test? ( test )"
 
+PATCHES=( "${FILESDIR}"/${P}-include_tests.patch )
+
 S=${WORKDIR}/desktop-${PV/_/-}
 
 src_prepare() {