diff options
author | Takuya Wakazono <pastalian46@gmail.com> | 2024-11-05 22:44:14 +0900 |
---|---|---|
committer | Takuya Wakazono <pastalian46@gmail.com> | 2024-11-05 22:44:14 +0900 |
commit | 4020e29ebb4c2127633d6338b18527b00534da8d (patch) | |
tree | 66a2f433fc59d51464a8858fb54b5172bfae8fd3 /sys-libs | |
parent | app-i18n/rime-data-japanese: new package, add 0.0.0.20230204 (diff) | |
download | guru-4020e29ebb4c2127633d6338b18527b00534da8d.tar.gz guru-4020e29ebb4c2127633d6338b18527b00534da8d.tar.bz2 guru-4020e29ebb4c2127633d6338b18527b00534da8d.zip |
sys-libs/cyclonedds: fix USE=doc
Closes: https://bugs.gentoo.org/942855
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/cyclonedds/cyclonedds-0.10.3-r1.ebuild | 33 | ||||
-rw-r--r-- | sys-libs/cyclonedds/cyclonedds-9999.ebuild | 33 |
2 files changed, 58 insertions, 8 deletions
diff --git a/sys-libs/cyclonedds/cyclonedds-0.10.3-r1.ebuild b/sys-libs/cyclonedds/cyclonedds-0.10.3-r1.ebuild index 4e05f3e6f..9dec7e453 100644 --- a/sys-libs/cyclonedds/cyclonedds-0.10.3-r1.ebuild +++ b/sys-libs/cyclonedds/cyclonedds-0.10.3-r1.ebuild @@ -3,7 +3,9 @@ EAPI=8 -inherit cmake +PYTHON_COMPAT=( python3_{12..13} ) + +inherit cmake python-any-r1 DESCRIPTION="Eclipse Cyclone DDS project" HOMEPAGE="https://cyclonedds.io/" @@ -22,28 +24,51 @@ 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 )" +BDEPEND=" + doc? ( + app-text/doxygen + $(python_gen_any_dep ' + dev-python/breathe[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ') + ) + test? ( dev-util/cunit ) +" CMAKE_BUILD_TYPE=Release +python_check_deps() { + if use doc; then + python_has_version \ + "dev-python/breathe[${PYTHON_USEDEP}]" \ + "dev-python/sphinx[${PYTHON_USEDEP}]" + fi +} + +pkg_setup() { + use doc && python-any-r1_pkg_setup +} + 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 + # fix the dependency detection in cmake + sed -i "/set(/s/\${_Sphinx_shebang}/${EPYTHON}/" cmake/Modules/FindSphinx.cmake || die + cmake_src_prepare } src_configure() { local mycmakeargs=( - -DBUILD_DOCS= $(usex doc) + -DBUILD_DOCS=$(usex doc) -DBUILD_DDSPERF=OFF -DBUILD_EXAMPLES=$(usex examples) -DBUILD_TESTING=$(usex test) diff --git a/sys-libs/cyclonedds/cyclonedds-9999.ebuild b/sys-libs/cyclonedds/cyclonedds-9999.ebuild index 4e05f3e6f..9dec7e453 100644 --- a/sys-libs/cyclonedds/cyclonedds-9999.ebuild +++ b/sys-libs/cyclonedds/cyclonedds-9999.ebuild @@ -3,7 +3,9 @@ EAPI=8 -inherit cmake +PYTHON_COMPAT=( python3_{12..13} ) + +inherit cmake python-any-r1 DESCRIPTION="Eclipse Cyclone DDS project" HOMEPAGE="https://cyclonedds.io/" @@ -22,28 +24,51 @@ 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 )" +BDEPEND=" + doc? ( + app-text/doxygen + $(python_gen_any_dep ' + dev-python/breathe[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ') + ) + test? ( dev-util/cunit ) +" CMAKE_BUILD_TYPE=Release +python_check_deps() { + if use doc; then + python_has_version \ + "dev-python/breathe[${PYTHON_USEDEP}]" \ + "dev-python/sphinx[${PYTHON_USEDEP}]" + fi +} + +pkg_setup() { + use doc && python-any-r1_pkg_setup +} + 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 + # fix the dependency detection in cmake + sed -i "/set(/s/\${_Sphinx_shebang}/${EPYTHON}/" cmake/Modules/FindSphinx.cmake || die + cmake_src_prepare } src_configure() { local mycmakeargs=( - -DBUILD_DOCS= $(usex doc) + -DBUILD_DOCS=$(usex doc) -DBUILD_DDSPERF=OFF -DBUILD_EXAMPLES=$(usex examples) -DBUILD_TESTING=$(usex test) |