mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
dev-libs/mtxclient: New package.
Dependency for net-im/nheko. Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
51
dev-libs/mtxclient/mtxclient-0.3.0.ebuild
Normal file
51
dev-libs/mtxclient/mtxclient-0.3.0.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio"
|
||||
HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
|
||||
SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libsodium
|
||||
>=dev-libs/boost-1.70.0
|
||||
dev-libs/olm
|
||||
dev-libs/openssl
|
||||
dev-cpp/nlohmann_json
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-libs/spdlog
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
# remove_failing_tests depends on remove_network_tests.
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0.3.0_remove_network_tests.patch"
|
||||
"${FILESDIR}/0.3.0_remove_failing_tests.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DBUILD_LIB_TESTS="$(usex test)"
|
||||
-DBUILD_LIB_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
if use test; then
|
||||
# Upstream uses a toolchain file to set these.
|
||||
mycmakeargs+=(
|
||||
-DCMAKE_CXX_STANDARD=17
|
||||
-DCMAKE_CXX_STANDARD_REQUIRED=ON
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user