diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2022-09-02 16:25:49 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2022-09-12 16:41:01 +0800 |
commit | 617aabf1f78804a35d1cdf614e40d5873c813207 (patch) | |
tree | f05adcb4927feaeccfe69155a2a566099f0d3d4d /dev-util/hip | |
parent | dev-util/hip: Fix sample install dir (diff) | |
download | gentoo-617aabf1f78804a35d1cdf614e40d5873c813207.tar.gz gentoo-617aabf1f78804a35d1cdf614e40d5873c813207.tar.bz2 gentoo-617aabf1f78804a35d1cdf614e40d5873c813207.zip |
dev-util/hip: Use docs.eclass to control doc install
By default, hip build documentation using doxygen in
packaging/CMakeLists. Patch it out and use docs.eclass instead.
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/hip')
-rw-r--r-- | dev-util/hip/files/hip-5.1.3-remove-cmake-doxygen-commands.patch | 21 | ||||
-rw-r--r-- | dev-util/hip/hip-5.1.3-r1.ebuild | 12 |
2 files changed, 32 insertions, 1 deletions
diff --git a/dev-util/hip/files/hip-5.1.3-remove-cmake-doxygen-commands.patch b/dev-util/hip/files/hip-5.1.3-remove-cmake-doxygen-commands.patch new file mode 100644 index 000000000000..921452b2ba92 --- /dev/null +++ b/dev-util/hip/files/hip-5.1.3-remove-cmake-doxygen-commands.patch @@ -0,0 +1,21 @@ +Index: hipamd-rocm-5.1.3/packaging/CMakeLists.txt +=================================================================== +--- hipamd-rocm-5.1.3.orig/packaging/CMakeLists.txt ++++ hipamd-rocm-5.1.3/packaging/CMakeLists.txt +@@ -88,16 +88,6 @@ install(FILES ${CMAKE_BINARY_DIR}/includ + DESTINATION include/hip COMPONENT dev) + #End dev files install + +-#Begin doc files install +-find_program(DOXYGEN_EXE doxygen) +-if(DOXYGEN_EXE) +- add_custom_target(build_doxygen ALL +- COMMAND HIP_PATH=${HIP_COMMON_DIR} doxygen ${HIP_COMMON_DIR}/docs/doxygen-input/doxy.cfg) +- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/RuntimeAPI/html +- DESTINATION docs/RuntimeAPI COMPONENT doc) +-endif() +-#End doc files install +- + #Begin samples files install + install(DIRECTORY ${HIP_COMMON_DIR}/samples DESTINATION ${CMAKE_INSTALL_DOCDIR}/ COMPONENT samples) + #End samples files install diff --git a/dev-util/hip/hip-5.1.3-r1.ebuild b/dev-util/hip/hip-5.1.3-r1.ebuild index f9f620fe8170..9a485e3edfdc 100644 --- a/dev-util/hip/hip-5.1.3-r1.ebuild +++ b/dev-util/hip/hip-5.1.3-r1.ebuild @@ -4,8 +4,10 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND="media-gfx/graphviz" -inherit cmake llvm prefix python-any-r1 +inherit cmake docs llvm prefix python-any-r1 LLVM_MAX_SLOT=14 @@ -48,6 +50,7 @@ PATCHES=( "${FILESDIR}/${PN}-5.0.2-set-build-id.patch" "${FILESDIR}/${PN}-5.1.3-fix-hip_prof_gen.patch" "${FILESDIR}/${PN}-5.1.3-correct-sample-install-location.patch" + "${FILESDIR}/${PN}-5.1.3-remove-cmake-doxygen-commands.patch" "${FILESDIR}/0001-SWDEV-316128-HIP-surface-API-support.patch" ) @@ -62,6 +65,8 @@ HIP_S="${WORKDIR}"/HIP-rocm-${PV} OCL_S="${WORKDIR}"/ROCm-OpenCL-Runtime-rocm-${PV} CLR_S="${WORKDIR}"/ROCclr-rocm-${PV} RTC_S="${WORKDIR}"/roctracer-rocm-${PV} +DOCS_DIR="${HIP_S}"/docs/doxygen-input +DOCS_CONFIG_NAME=doxy.cfg src_prepare() { cmake_src_prepare @@ -151,6 +156,11 @@ src_configure() { cmake_src_configure } +src_compile() { + HIP_PATH=${HIP_S} docs_compile + cmake_src_compile +} + src_install() { cmake_src_install |