From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 5 Oct 2017 18:24:51 +0000 (+0200) Subject: app-i18n/mozc: Disable check for jsoncpp.pc with USE="-test". X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2e39fb4302b42981b5eee984cdccc933a44692b1;p=gentoo.git app-i18n/mozc: Disable check for jsoncpp.pc with USE="-test". Bug: https://bugs.gentoo.org/633458 --- diff --git a/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch b/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch index dd6e57717d15..2b2828b79997 100644 --- a/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch +++ b/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch @@ -1,12 +1,26 @@ +--- /src/gyp/defines.gypi ++++ /src/gyp/defines.gypi +@@ -71,6 +71,12 @@ + # use_libibus represents if ibus library is used or not. + # This option is only for Linux. + 'use_libibus%': '0', ++ ++ # use_libgtest represents if gtest library is used or not. ++ 'use_libgtest%': '0', ++ ++ # use_libjsoncpp represents if jsoncpp library is used or not. ++ 'use_libjsoncpp%': '0', + }, + 'target_defaults': { + 'defines': [ --- /src/net/jsoncpp.gyp +++ /src/net/jsoncpp.gyp -@@ -31,31 +31,25 @@ +@@ -31,32 +31,57 @@ 'targets': [ { 'target_name': 'jsoncpp', - 'type': 'static_library', -+ 'type': 'none', - 'variables': { +- 'variables': { - 'jsoncpp_root': '<(third_party_dir)/jsoncpp', - 'jsoncpp_srcs': [ - '<(jsoncpp_root)/src/lib_json/json_reader.cpp', @@ -14,11 +28,61 @@ - '<(jsoncpp_root)/src/lib_json/json_writer.cpp', - ], - 'jsoncpp_include_dirs': ['<(jsoncpp_root)/include'], - 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'], - }, +- 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'], +- }, - 'defines': [ - '<@(jsoncpp_additional_macros)', -- ], ++ 'conditions': [ ++ ['use_libjsoncpp==1', { ++ 'type': 'none', ++ 'variables': { ++ 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'], ++ }, ++ 'all_dependent_settings': { ++ 'defines': [ ++ '<@(jsoncpp_additional_macros)', ++ ], ++ 'cflags': [ ++ '