summaryrefslogtreecommitdiff
path: root/net-libs/libomemo-c/libomemo-c-0.5.1.ebuild
blob: c357df38ac673bd49ce1d15f6320d3a796be87e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="XMPP fork of Signal Protocol C Library supporting XEP-0384 OMEMO"
HOMEPAGE="https://github.com/dino/libomemo-c/"
SRC_URI="https://github.com/dino/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD BSD-1 GPL-3 ISC"
SLOT="0"
KEYWORDS="amd64 ~arm64"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="dev-libs/protobuf-c:="
DEPEND="${RDEPEND}
	test? (
		dev-libs/check
		dev-libs/openssl
	)
"

# upstream are switching to meson, so no need to try send this upstream
PATCHES=( "${FILESDIR}/${P}-cmake4.patch" ) # bug 953548

src_configure() {
	local mycmakeargs=(
		-DBUILD_TESTING=$(usex test)
	)
	cmake_src_configure
}