blob: 4e05f3e6f6f0482d8e1afda73eea2134b44083f2 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Eclipse Cyclone DDS project"
HOMEPAGE="https://cyclonedds.io/"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/eclipse-cyclonedds/cyclonedds.git"
inherit git-r3
else
SRC_URI="https://github.com/eclipse-cyclonedds/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="EPL-2.0"
SLOT="0/$(ver_cut 1-2)"
IUSE="test ssl shm parser doc examples ipv6 idlc get-kind"
RESTRICT="!test? ( test )"
RDEPEND="
doc? ( app-text/doxygen )
ssl? ( dev-libs/openssl:= )
shm? ( sys-libs/iceoryx:= )
parser? ( sys-devel/bison )
"
DEPEND="${RDEPEND}"
BDEPEND="test? ( dev-util/cunit )"
CMAKE_BUILD_TYPE=Release
src_prepare() {
use get-kind && eapply "${FILESDIR}/${PN}-0.10.3-get_kind.patch"
# disable tests that requires FEATURES=-network-sandbox
sed -i '/ifaddrs.c$/d' src/ddsrt/tests/CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_DOCS= $(usex doc)
-DBUILD_DDSPERF=OFF
-DBUILD_EXAMPLES=$(usex examples)
-DBUILD_TESTING=$(usex test)
-DBUILD_IDLC_TESTING=$(usex test)
-DBUILD_IDLC=$(usex idlc)
-DENABLE_SSL=$(usex ssl)
-DENABLE_SECURITY=$(usex ssl)
-DENABLE_SECURITY=$(usex ssl)
-DENABLE_IPV6=$(usex ipv6)
-DENABLE_SHM=$(usex shm)
)
cmake_src_configure
}
|