mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/hipify-clang: add 6.4.3
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
@@ -3,3 +3,4 @@ DIST HIPIFY-6.1.1.tar.gz 813425 BLAKE2B accc661431f11796d0c8bcf638537a6035020b2a
|
||||
DIST HIPIFY-6.3.2.tar.gz 978994 BLAKE2B 7f35d462f69ab298485ef27b53624676071be551d671532383f246dbe6cd133ce1b30fb98d5457b82a0a9a01070cc6050e14f4f8fdecbf04a9b589309c3afd67 SHA512 26fc5db270e661d3ca380dfd570f2b46108c41b808f84413b27c4b6efaf6796ae625d4489c2278c253345d8a25408f636fde476be380b08d489254e20b8a12c0
|
||||
DIST HIPIFY-6.3.3.tar.gz 978886 BLAKE2B 391afa3ca27651597264ada3f1ef8f2a3ed75d7f0bbd29b868e89d0ecd6a76986fb4b74e15d62c7a0990d5e8a6c5e92cf4e987ddbf3fb5e45eddd2f9d22c9b45 SHA512 5fe529db7ef9de56e127ced21c62b45b770aa383913bd9d373e7c4eb16e1028a6414ae25aa2f40c79b45f5a2dcb4318cd6773cf821c814bfd545431512cae490
|
||||
DIST HIPIFY-6.4.1.tar.gz 995674 BLAKE2B cf0e9709bd30b4f2df7144c642a2c287aa8c2e87bc34c279ed4380ccd297fa42e68e9c177f96f45ec7d0e0675f26a93bd4ceea294fe667809d287b3054b9d83b SHA512 b93c9698c2d253c6eb1daad6d6e3113168c5e2c02c2d847203208716ced61398983d50e9efe307557e6adc642101a2642bb5e43b4b9829217f02f11ab477de9b
|
||||
DIST HIPIFY-6.4.3.tar.gz 995683 BLAKE2B ec6bb3a11a4ea5a48b8762788bfefdcc1a4fcd9a20b6dd4e72de2de920057305a9dd79d955ad696bc233faec458d30f7776320d073562bef2b861306ba11709a SHA512 c408da868ac446f81d380816c3ea1a2e39a4dcd3a7b705d93babd75a0d12e1df21e5ab394fbc8d4bd8e33dbaaaadffb05582bb4ed45b8561e2cbcc989c21a9ec
|
||||
|
||||
58
dev-util/hipify-clang/hipify-clang-6.4.3.ebuild
Normal file
58
dev-util/hipify-clang/hipify-clang-6.4.3.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( 20 )
|
||||
|
||||
inherit cmake flag-o-matic llvm-r1
|
||||
|
||||
DESCRIPTION="A set of tools to translate CUDA source code into portable HIP C++"
|
||||
HOMEPAGE="https://github.com/ROCm/HIPIFY"
|
||||
SRC_URI="https://github.com/ROCm/HIPIFY/archive/rocm-${PV}.tar.gz -> HIPIFY-${PV}.tar.gz"
|
||||
S="${WORKDIR}/HIPIFY-rocm-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND=">=dev-build/cmake-3.22"
|
||||
DEPEND="
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=
|
||||
llvm-core/llvm:${LLVM_SLOT}=
|
||||
')
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-5.7.1-fix-clang-libs.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
sed -i 's:/../libexec/hipify::' \
|
||||
bin/hipconvertinplace.sh bin/hipconvertinplace-perl.sh \
|
||||
bin/hipexamine-perl.sh bin/hipexamine.sh || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# 928906: CMakeLists.txt ignores CC/CXX, switches compiler to clang
|
||||
# and fails if non-compatible CFLAGS/CXXFLAGS are used
|
||||
strip-unsupported-flags
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_PREFIX_PATH="$(get_llvm_prefix)/$(get_libdir)/cmake/llvm"
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
fperms +x /usr/bin/hipconvertinplace-perl.sh
|
||||
fperms +x /usr/bin/hipconvertinplace.sh
|
||||
fperms +x /usr/bin/hipexamine-perl.sh
|
||||
fperms +x /usr/bin/hipexamine.sh
|
||||
fperms +x /usr/bin/hipify-perl
|
||||
}
|
||||
Reference in New Issue
Block a user