summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2019-11-20 22:33:22 +0000
committerJames Le Cuirot <chewi@gentoo.org>2019-11-20 22:33:22 +0000
commitc5ca07652ca09f4a7bce13c4b476d93b0f0b50ab (patch)
treea176e043c055fe7f222ad10ad829d752ca14033f /games-util
parentsys-cluster/kube-proxy: Version bump to 1.16.3 (diff)
downloadgentoo-c5ca07652ca09f4a7bce13c4b476d93b0f0b50ab.tar.gz
gentoo-c5ca07652ca09f4a7bce13c4b476d93b0f0b50ab.tar.bz2
gentoo-c5ca07652ca09f4a7bce13c4b476d93b0f0b50ab.zip
games-util/lgogdownloader: Patch 3.5 to fix build with newer jsoncpp
Patch has been sent upstream. Closes: https://bugs.gentoo.org/700452 Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r--games-util/lgogdownloader/files/jsoncpp.patch27
-rw-r--r--games-util/lgogdownloader/lgogdownloader-3.5.ebuild4
2 files changed, 31 insertions, 0 deletions
diff --git a/games-util/lgogdownloader/files/jsoncpp.patch b/games-util/lgogdownloader/files/jsoncpp.patch
new file mode 100644
index 000000000000..d865903129d6
--- /dev/null
+++ b/games-util/lgogdownloader/files/jsoncpp.patch
@@ -0,0 +1,27 @@
+From ff353126ecda61824cf866d3807c9ebada96282e Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Wed, 20 Nov 2019 22:24:10 +0000
+Subject: [PATCH] Fix find_path for newer jsoncpp release
+
+features.h was renamed but allocator.h wasn't so the latter works with
+both old and new versions.
+---
+ cmake/FindJsoncpp.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/FindJsoncpp.cmake b/cmake/FindJsoncpp.cmake
+index 5731980..0c8e0fb 100644
+--- a/cmake/FindJsoncpp.cmake
++++ b/cmake/FindJsoncpp.cmake
+@@ -10,7 +10,7 @@ pkg_check_modules(PC_JSONCPP REQUIRED jsoncpp)
+
+ find_path(JSONCPP_INCLUDE_DIR
+ NAMES
+- json/features.h
++ json/allocator.h
+ HINTS
+ ${PC_JSONCPP_INCLUDEDIR}
+ ${PC_JSONCPP_INCLUDEDIRS}
+--
+2.23.0
+
diff --git a/games-util/lgogdownloader/lgogdownloader-3.5.ebuild b/games-util/lgogdownloader/lgogdownloader-3.5.ebuild
index 0f8ac4e4d85d..9a73f51a45c8 100644
--- a/games-util/lgogdownloader/lgogdownloader-3.5.ebuild
+++ b/games-util/lgogdownloader/lgogdownloader-3.5.ebuild
@@ -27,6 +27,10 @@ DEPEND="${RDEPEND}"
BDEPEND="sys-apps/help2man
virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}"/jsoncpp.patch
+)
+
src_configure() {
local mycmakeargs=(
-DUSE_QT_GUI=$(usex gui)