commit: 5c54ff971572e56afd6c3f317bf2bbe0a7c01297 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> AuthorDate: Mon Oct 30 09:21:31 2023 +0000 Commit: 罗百科 <patrick <AT> gentoo <DOT> org> CommitDate: Mon Oct 30 09:22:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c54ff97
dev-util/hipcc: Fix paths Crude hack to make the autodetection not go horribly wrong. Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> dev-util/hipcc/hipcc-5.7.1-r1.ebuild | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/dev-util/hipcc/hipcc-5.7.1-r1.ebuild b/dev-util/hipcc/hipcc-5.7.1-r1.ebuild new file mode 100644 index 000000000000..78f9a80f3561 --- /dev/null +++ b/dev-util/hipcc/hipcc-5.7.1-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Radeon Open Compute hipcc" +HOMEPAGE="https://github.com/ROCm-Developer-Tools/hipcc" + +KEYWORDS="~amd64" +SRC_URI="https://github.com/ROCm-Developer-Tools/hipcc/archive/refs/tags/rocm-${PV}.tar.gz -> hipcc-${PV}.tar.gz" + +LICENSE="Apache-2.0 MIT" +SLOT="0/$(ver_cut 1-2)" +IUSE="debug test" +RESTRICT="!test? ( test )" + +S=${WORKDIR}/HIPCC-rocm-${PV} + +RDEPEND="!<dev-util/hip-5.7" + +src_prepare() { + # hardcoded paths are wrong + sed -i -e 's~$ROCM_PATH/llvm/bin~/usr/lib/llvm/17/bin~' bin/hipvars.pm || die + cmake_src_prepare +}