summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/net-im/spectrum/spectrum-2.0.9.exheres-06
-rw-r--r--packages/net-im/spectrum/spectrum.exlib4
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/net-im/spectrum/spectrum-2.0.9.exheres-0 b/packages/net-im/spectrum/spectrum-2.0.9.exheres-0
new file mode 100644
index 0000000..23009e9
--- /dev/null
+++ b/packages/net-im/spectrum/spectrum-2.0.9.exheres-0
@@ -0,0 +1,6 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require spectrum
+
+PLATFORMS="~amd64 ~x86"
diff --git a/packages/net-im/spectrum/spectrum.exlib b/packages/net-im/spectrum/spectrum.exlib
index aec3214..6ebeaf8 100644
--- a/packages/net-im/spectrum/spectrum.exlib
+++ b/packages/net-im/spectrum/spectrum.exlib
@@ -9,6 +9,7 @@ if ! ever at_least 2.0.7; then
SCM_curl_REPOSITORY="https://github.com/curl/curl.git"
fi
+
require github [ user=hanzz project=libtransport force_git_clone=true ]
require cmake [ api=2 ]
@@ -87,8 +88,11 @@ CMAKE_SRC_CONFIGURE_PARAMS+=( -DENABLE_XMPP=TRUE )
if ever at_least 2.0.8; then
export_exlib_phases src_prepare
spectrum_src_prepare() {
+ cmake_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
}