From d695091f62f0fdb675e5c28401ad022093dcd7cf Mon Sep 17 00:00:00 2001 From: Marcel Saegebarth Date: Tue, 29 Mar 2016 19:32:03 +0200 Subject: games/lgogdownloader: Fixed compiling against newer jsoncpp. Signed-off-by: Marcel Saegebarth --- .../fix-compiling-with-jsoncpp-1.7.1.patch | 27 ++++++++++++++++++++++ games/lgogdownloader/lgogdownloader.SlackBuild | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 games/lgogdownloader/fix-compiling-with-jsoncpp-1.7.1.patch (limited to 'games') diff --git a/games/lgogdownloader/fix-compiling-with-jsoncpp-1.7.1.patch b/games/lgogdownloader/fix-compiling-with-jsoncpp-1.7.1.patch new file mode 100644 index 0000000000..4c6f493f7c --- /dev/null +++ b/games/lgogdownloader/fix-compiling-with-jsoncpp-1.7.1.patch @@ -0,0 +1,27 @@ +From 519cb78d38be04a3af79784b5326e21651ced6e1 Mon Sep 17 00:00:00 2001 +From: Sude +Date: Fri, 25 Mar 2016 23:09:17 +0200 +Subject: [PATCH] Fix compiling with JsonCpp 1.7.1 + +--- + src/util.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/util.cpp b/src/util.cpp +index 4b98c45..3d9dfed 100644 +--- a/src/util.cpp ++++ b/src/util.cpp +@@ -388,11 +388,11 @@ int Util::getTerminalWidth() + void Util::getDownloaderUrlsFromJSON(const Json::Value &root, std::vector &urls) + { + if(root.size() > 0) { +- for(Json::ValueIterator it = root.begin() ; it != root.end() ; ++it) ++ for(Json::ValueConstIterator it = root.begin() ; it != root.end() ; ++it) + { + if (it.key() == "downloaderUrl") + { +- Json::Value& url = *it; ++ Json::Value url = *it; + urls.push_back(url.asString()); + } + else diff --git a/games/lgogdownloader/lgogdownloader.SlackBuild b/games/lgogdownloader/lgogdownloader.SlackBuild index 500cb0b30a..311aa11e67 100644 --- a/games/lgogdownloader/lgogdownloader.SlackBuild +++ b/games/lgogdownloader/lgogdownloader.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=lgogdownloader VERSION=${VERSION:-2.27} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -84,6 +84,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 <$CWD/fix-compiling-with-jsoncpp-1.7.1.patch + mkdir -p build cd build cmake \ -- cgit v1.2.3