blob: 2b4063863cad884c24a3514b8b837cf28ac6f7f3 (
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
35
36
37
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="High-level CPP Binding for ZeroMQ"
HOMEPAGE="https://github.com/zeromq/cppzmq"
SRC_URI="https://github.com/zeromq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=net-libs/zeromq-4.3.1"
# Tests require cmake modules from catch2 and headers from older version of catch
DEPEND="${RDEPEND}
test? ( =dev-cpp/catch-2* )"
PATCHES=(
"${FILESDIR}/${P}-disable-static.patch"
)
src_configure() {
local mycmakeargs=(
-DCPPZMQ_CMAKECONFIG_INSTALL_DIR="/usr/$(get_libdir)/cmake/${PN}/"
-DCPPZMQ_BUILD_TESTS="$(usex test)"
)
if has_version -d '>=net-libs/zeromq-4.3.1[drafts]'; then
mycmakeargs+=( -DENABLE_DRAFTS=on )
fi
cmake_src_configure
}
|