blob: 525547043520dff6722ae84bd0d26523e23867e4 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/eclipse-iceoryx/iceoryx"
inherit git-r3
else
SRC_URI="https://github.com/eclipse-iceoryx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Eclipse Iceoryx zero copy IPC"
HOMEPAGE="https://iceoryx.io"
LICENSE="Apache-2.0"
SLOT="0/$(ver_cut 1-2)"
IUSE="test doc examples ccache"
RESTRICT="!test? ( test )"
RDEPEND=(
"doc? ( app-doc/doxygen )"
"dev-cpp/cpptoml"
"ccache? ( dev-util/ccache )"
)
DEPEND="${RDEPEND[@]}"
src_prepare() {
CMAKE_USE_DIR=${S}/${PN}_meta
BUILD_DIR="${S}_build"
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_DOC= $(usex doc)
-DBUILD_ALL=OFF
-DBINDING_C=ON
-DEXAMPLES=$(usex examples)
-DBUILD_TEST=$(usex test)
-DCLANG_TIDY=OFF
-DDOWNLOAD_TOML_LIB=OFF
-DCMAKE_MODULE_PATH="/usr/lib/cmake/cpptoml"
-DCCACHE=$(usex ccache)
)
cmake_src_configure
}
|