mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
67 lines
1.3 KiB
Bash
67 lines
1.3 KiB
Bash
# 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-cyclonedds/"
|
|
inherit git-r3
|
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/eclipse-cyclonedds/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
S="${WORKDIR}/${P}"
|
|
DESCRIPTION="Eclipse Cyclone DDS is a very performant and robust open-source implementation of the OMG DDS specification."
|
|
HOMEPAGE="https://cyclonedds.io/"
|
|
|
|
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-doc/doxygen )"
|
|
"ssl? ( dev-libs/openssl )"
|
|
"shm? ( sys-libs/iceoryx )"
|
|
"parser? ( sys-devel/bison )"
|
|
)
|
|
DEPEND="${RDEPEND[@]}"
|
|
|
|
|
|
CMAKE_BUILD_TYPE=Release
|
|
|
|
#PATCHES=()
|
|
|
|
src_prepare() {
|
|
use get_kind && eapply ${FILESDIR}/${PN}-0.10.3-get_kind.patch
|
|
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
|
|
}
|