aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/mtxclient/mtxclient-0.3.1.ebuild')
-rw-r--r--dev-libs/mtxclient/mtxclient-0.3.1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/mtxclient/mtxclient-0.3.1.ebuild b/dev-libs/mtxclient/mtxclient-0.3.1.ebuild
new file mode 100644
index 0000000..67aae81
--- /dev/null
+++ b/dev-libs/mtxclient/mtxclient-0.3.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio"
+HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
+
+inherit eutils cmake-utils
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/Nheko-Reborn/${PN}.git"
+else
+ SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="-test"
+
+RDEPEND="
+ dev-libs/libsodium
+ >=dev-libs/boost-1.66.0
+ dev-libs/olm"
+DEPEND="${RDEPEND}
+ dev-libs/spdlog
+ dev-cpp/nlohmann_json
+ >=dev-util/cmake-3.11
+ test? ( dev-cpp/gtest )
+"
+#cmake >= 3.11 needed for boost deps
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_LIB_TESTS="$(usex test)"
+ -DBUILD_LIB_EXAMPLES=OFF
+ )
+
+ cmake-utils_src_configure
+}