summaryrefslogtreecommitdiff
path: root/packages/net-im/spectrum/spectrum.exlib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-im/spectrum/spectrum.exlib')
-rw-r--r--packages/net-im/spectrum/spectrum.exlib69
1 files changed, 69 insertions, 0 deletions
diff --git a/packages/net-im/spectrum/spectrum.exlib b/packages/net-im/spectrum/spectrum.exlib
new file mode 100644
index 0000000..38f2177
--- /dev/null
+++ b/packages/net-im/spectrum/spectrum.exlib
@@ -0,0 +1,69 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+
+require github [ user=hanzz project=libtransport force_git_clone=true ]
+require cmake [ api=2 ]
+
+
+LICENCES="GPL-2"
+SLOT="0"
+
+SUMMARY="Spectrum is an XMPP transport/gateway"
+HOMEPAGE="http://spectrum.im"
+
+MYOPTIONS="
+ doc
+ frotz
+ irc
+ mysql
+ postgres
+ purple
+ smstools
+ sqlite
+ twitter
+ ( providers: libressl openssl ) [[ number-selected = exactly-one ]]
+"
+
+DEPENDENCIES="
+ build:
+ dev-libs/jsoncpp
+ sys-devel/gettext
+ build+run:
+ net-im/swiften
+ dev-libs/popt
+ dev-libs/libev
+ dev-libs/log4cxx
+ doc? ( app-doc/doxygen )
+ frotz? ( dev-libs/protobuf )
+ irc? (
+ dev-libs/protobuf
+ net-im/libcommuni
+ )
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/libpqxx )
+ purple? (
+ dev-libs/protobuf
+ net-im/pidgin
+ )
+ sqlite? ( dev-db/sqlite:3 )
+ providers:libressl? ( dev-libs/libressl:= )
+ providers:openssl? ( dev-libs/openssl )
+ test:
+ dev-cpp/cppunit
+"
+
+
+CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
+ 'doc DOCS'
+ FROTZ
+ IRC
+ MYSQL
+ 'postgres PQXX'
+ 'smstools SMSTOOLS3'
+ SQLITE
+ TWITTER
+)
+
+CMAKE_SRC_CONFIGURE_PARAMS+=( -DENABLE_XMPP=TRUE )
+