diff options
author | YiyangWu <xgreenlandforwyy@gmail.com> | 2021-08-19 21:40:58 +0800 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2021-08-19 15:46:22 -0400 |
commit | 7576c644d59a9392b72b4234030c531d58359c44 (patch) | |
tree | 300f05397f38b616960ee68c3407446717e2ceae /dev-libs/rocr-runtime/rocr-runtime-4.3.0.ebuild | |
parent | dev-libs/roct-thunk-interface: bump version to 4.3.0 (diff) | |
download | gentoo-7576c644d59a9392b72b4234030c531d58359c44.tar.gz gentoo-7576c644d59a9392b72b4234030c531d58359c44.tar.bz2 gentoo-7576c644d59a9392b72b4234030c531d58359c44.zip |
dev-libs/rocr-runtime: bump version to 4.3.0
remove the replacement of get_version in CMakeLists.txt, which is
redundant in 4.3.0 (the sed command does not change anything). Detect no
bug after the removal.
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22030
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs/rocr-runtime/rocr-runtime-4.3.0.ebuild')
-rw-r--r-- | dev-libs/rocr-runtime/rocr-runtime-4.3.0.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/rocr-runtime/rocr-runtime-4.3.0.ebuild b/dev-libs/rocr-runtime/rocr-runtime-4.3.0.ebuild new file mode 100644 index 000000000000..c1f5f5a3a07b --- /dev/null +++ b/dev-libs/rocr-runtime/rocr-runtime-4.3.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCR-Runtime/" + inherit git-r3 + S="${WORKDIR}/${P}/src" +else + SRC_URI="https://github.com/RadeonOpenCompute/ROCR-Runtime/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/ROCR-Runtime-rocm-${PV}/src" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Radeon Open Compute Runtime" +HOMEPAGE="https://github.com/RadeonOpenCompute/ROCR-Runtime" +PATCHES=( + "${FILESDIR}/${PN}-4.1.0-cmake-install-paths.patch" +) + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" + +COMMON_DEPEND="sys-process/numactl + dev-libs/elfutils:=" +RDEPEND="${COMMON_DEPEND}" +DEPEND="${COMMON_DEPEND} + >=dev-libs/roct-thunk-interface-${PV} + >=dev-libs/rocm-device-libs-${PV}" +BDEPEND="app-editors/vim-core" + # vim-core is needed for "xxd" + +src_prepare() { + # ... otherwise system llvm/clang is used ... + sed -e "s:find_package(Clang REQUIRED HINTS \${CMAKE_INSTALL_PREFIX}/llvm \${CMAKE_PREFIX_PATH}/llvm PATHS /opt/rocm/llvm ):find_package(Clang REQUIRED HINTS ${EPREFIX}/usr/lib/llvm/roc ):" -i image/blit_src/CMakeLists.txt || die + + # Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ... + sed -e "s:/opt/rocm/amdgcn/bitcode:${EPREFIX}/usr/lib/amdgcn/bitcode:" -i image/blit_src/CMakeLists.txt || die + + cmake_src_prepare +} |