From dfde9e9f985b961f80c8e92fc24aa4fe1eb39748 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 1 Aug 2018 09:41:48 +0300 Subject: spectrum-scm: build fix replaced complicated broken findjsoncpp.cmake by simple pkg-config based, with spectrum specific workaround --- packages/net-im/spectrum/spectrum.exlib | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'packages/net-im/spectrum/spectrum.exlib') diff --git a/packages/net-im/spectrum/spectrum.exlib b/packages/net-im/spectrum/spectrum.exlib index bb3c572..8606612 100644 --- a/packages/net-im/spectrum/spectrum.exlib +++ b/packages/net-im/spectrum/spectrum.exlib @@ -65,6 +65,10 @@ if ! ever is_scm; then DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/6d220b0a083b3adf7fd4ae65ca011b29488493b7.diff ) +#elif ever at_least 2.0.8; then +# DEFAULT_SRC_PREPARE_PATCHES=( +# "${FILES}"/cmake_jsoncpp.patch +# ) fi CMAKE_SRC_CONFIGURE_TESTS=( '-DENABLE_TESTS=ON -DENABLE_TESTS=OFF' ) @@ -82,3 +86,12 @@ CMAKE_SRC_CONFIGURE_OPTION_ENABLES=( CMAKE_SRC_CONFIGURE_PARAMS+=( -DENABLE_XMPP=TRUE ) +if ever at_least 2.0.8; then + export_exlib_phases src_prepare + spectrum_src_prepare() { + # replace complicated broken module by simple pkg-config search + # https://github.com/SpectrumIM/spectrum2/issues/300 + edo rm "${WORKBASE}/${PNV}"/cmake_modules/Findjsoncpp.cmake + edo cp "${FILES}"/Findjsoncpp.cmake "${WORKBASE}/${PNV}"/cmake_modules/Findjsoncpp.cmake + } +fi -- cgit v1.2.3