aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-06-20 15:32:42 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-06-20 15:32:42 +0200
commit9815ba737f14588e0cfcad49b54d2a07c25b635f (patch)
treebd90ea92e9bc17edca9226db2bdde31bcd9438f0
parentnet-im/riot-web: add emoji use flag and set it to be enabled by default (diff)
downloadmatrix-9815ba737f14588e0cfcad49b54d2a07c25b635f.tar.gz
matrix-9815ba737f14588e0cfcad49b54d2a07c25b635f.tar.bz2
matrix-9815ba737f14588e0cfcad49b54d2a07c25b635f.zip
dev-libs/mtxclient: update to 0.2.1
-rw-r--r--dev-libs/mtxclient/Manifest1
-rw-r--r--dev-libs/mtxclient/mtxclient-0.2.1.ebuild44
-rw-r--r--dev-libs/mtxclient/mtxclient-9999.ebuild1
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/mtxclient/Manifest b/dev-libs/mtxclient/Manifest
index f38798c..2f16b01 100644
--- a/dev-libs/mtxclient/Manifest
+++ b/dev-libs/mtxclient/Manifest
@@ -1 +1,2 @@
DIST mtxclient-0.2.0.tar.gz 477869 BLAKE2B 714f826b405b88a9eee795cc58777c3ca2d5e76f8bf1611b7e7508f132a2ab2ab65513b59a9163fb2e2f39f256c8cad9cb26631d5dab5c568baae4b6aa89787d SHA512 ce8b6846c803913dd9c1a9e855099d491cb7ba85bd191eb742b498cba9cc5d09ad8768857f8f1972a5376056ff02b22470e87e3b7e99e31e887e29d43b8d2d37
+DIST mtxclient-0.2.1.tar.gz 478840 BLAKE2B 601d97b87be9e2d4c176b7086be7af7955a51ee11820f4177e88764e196cab79519f87425c3ca1b11591a077d7392f7a163a2dc8b84dd8b78f45c88a69226ee8 SHA512 3362e9ae44ebeb22ac036ba2ac63682eeb97248754bf4b4029ce381d6d99501a94cd82a7b2e23aefe902b4c43389ee48e5e465679ce7fbebbf4f4d06cbc19659
diff --git a/dev-libs/mtxclient/mtxclient-0.2.1.ebuild b/dev-libs/mtxclient/mtxclient-0.2.1.ebuild
new file mode 100644
index 0000000..da6d62e
--- /dev/null
+++ b/dev-libs/mtxclient/mtxclient-0.2.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet in C++"
+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"
+
+PATCHES=(
+ "${FILESDIR}/find_nlohmann_json_meson.patch"
+)
+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
+}
diff --git a/dev-libs/mtxclient/mtxclient-9999.ebuild b/dev-libs/mtxclient/mtxclient-9999.ebuild
index 36965f1..da6d62e 100644
--- a/dev-libs/mtxclient/mtxclient-9999.ebuild
+++ b/dev-libs/mtxclient/mtxclient-9999.ebuild
@@ -37,6 +37,7 @@ DEPEND="${RDEPEND}
src_configure() {
local mycmakeargs=(
-DBUILD_LIB_TESTS="$(usex test)"
+ -DBUILD_LIB_EXAMPLES=OFF
)
cmake-utils_src_configure