[packages/vtk] - fix jsoncpp 1.6 detection

baggins baggins at pld-linux.org
Wed Mar 11 21:19:15 CET 2015


commit 9a15f8c14deaa652e972b711d647fcafe0b4df2b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Mar 11 21:19:01 2015 +0100

    - fix jsoncpp 1.6 detection

 jsoncpp16.patch | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 vtk.spec        |  4 +++-
 2 files changed, 68 insertions(+), 1 deletion(-)
---
diff --git a/vtk.spec b/vtk.spec
index 3b6a17c..215f116 100644
--- a/vtk.spec
+++ b/vtk.spec
@@ -16,7 +16,7 @@ Summary:	Toolkit for 3D computer graphics, image processing, and visualization
 Summary(pl.UTF-8):	Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji
 Name:		vtk
 Version:	6.1.0
-Release:	10
+Release:	10.1
 License:	BSD
 Group:		Libraries
 Source0:	http://www.vtk.org/files/release/6.1/VTK-%{version}.tar.gz
@@ -27,6 +27,7 @@ Patch0:		%{name}-system-libs.patch
 Patch1:		%{name}-install.patch
 Patch2:		%{name}-chemistry.patch
 Patch3:		conflicting-types.patch
+Patch4:		jsoncpp16.patch
 URL:		http://www.vtk.org/
 %{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel}
 BuildRequires:	OpenGL-GLX-devel
@@ -317,6 +318,7 @@ potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 # Replace relative path ../../../VTKData with destination filesystem path
 grep -Erl '(\.\./)+VTKData' Examples | xargs \
diff --git a/jsoncpp16.patch b/jsoncpp16.patch
new file mode 100644
index 0000000..2fe7dff
--- /dev/null
+++ b/jsoncpp16.patch
@@ -0,0 +1,65 @@
+--- VTK-6.1.0/ThirdParty/jsoncpp/vtk_jsoncpp.h.in~	2014-01-22 16:55:41.000000000 +0100
++++ VTK-6.1.0/ThirdParty/jsoncpp/vtk_jsoncpp.h.in	2015-03-11 21:12:09.859743052 +0100
+@@ -18,7 +18,7 @@
+ /* Use the JsonCpp library configured for VTK.  */
+ #cmakedefine VTK_USE_SYSTEM_JSONCPP
+ #ifdef VTK_USE_SYSTEM_JSONCPP
+-# include <json/json.h>
++# include <jsoncpp/json.h>
+ # ifndef JSON_FORWARDS_H_INCLUDED
+ #  error Incorrect header included, check your include paths for conflicts
+ # endif
+--- VTK-6.1.0/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp~	2014-01-22 16:55:41.000000000 +0100
++++ VTK-6.1.0/ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp	2015-03-11 21:13:12.856409262 +0100
+@@ -75,7 +75,7 @@
+ 
+ 
+ 
+-#include "json/json.h"
++#include "jsoncpp/json.h"
+ 
+ 
+ // //////////////////////////////////////////////////////////////////////
+@@ -195,8 +195,8 @@
+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+ 
+ #if !defined(JSON_IS_AMALGAMATION)
+-# include <json/reader.h>
+-# include <json/value.h>
++# include <jsoncpp/reader.h>
++# include <jsoncpp/value.h>
+ # include "json_tool.h"
+ #endif // if !defined(JSON_IS_AMALGAMATION)
+ #include <utility>
+@@ -1546,8 +1546,8 @@
+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+ 
+ #if !defined(JSON_IS_AMALGAMATION)
+-# include <json/value.h>
+-# include <json/writer.h>
++# include <jsoncpp/value.h>
++# include <jsoncpp/writer.h>
+ # ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
+ #  include "json_batchallocator.h"
+ # endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
+@@ -3398,7 +3398,7 @@
+ // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+ 
+ #if !defined(JSON_IS_AMALGAMATION)
+-# include <json/writer.h>
++# include <jsoncpp/writer.h>
+ # include "json_tool.h"
+ #endif // if !defined(JSON_IS_AMALGAMATION)
+ #include <utility>
+--- VTK-6.1.0/CMake/FindJsonCpp.cmake.orig	2014-01-22 16:55:41.000000000 +0100
++++ VTK-6.1.0/CMake/FindJsonCpp.cmake	2015-03-11 21:15:27.929741618 +0100
+@@ -8,8 +8,7 @@
+ # JsonCpp_LIBRARIES - the libraries to link against to use JsonCpp
+ # JsonCpp_FOUND - if false the library was not found.
+ 
+-find_path(JsonCpp_INCLUDE_DIR "json/json.h"
+-  PATH_SUFFIXES "jsoncpp"
++find_path(JsonCpp_INCLUDE_DIR "jsoncpp/json.h"
+   DOC "Specify the JsonCpp include directory here")
+ 
+ find_library(JsonCpp_LIBRARY
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vtk.git/commitdiff/9a15f8c14deaa652e972b711d647fcafe0b4df2b



More information about the pld-cvs-commit mailing list