mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-util/hipify-clang: add 6.4.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42554 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -2,3 +2,4 @@ DIST HIPIFY-5.7.1.tar.gz 673452 BLAKE2B e0293c1b7f9ea028efc8d712ddedae4ec933c5bc
|
||||
DIST HIPIFY-6.1.1.tar.gz 813425 BLAKE2B accc661431f11796d0c8bcf638537a6035020b2a36ebe66c1b8c10bb63b762418d5fd1f256f3a3e51d2ace224a6492abfe72838bef859b1da68c2126cc3521be SHA512 29c45e312c8e2f0d06916b57f24eba27ba7beae3bd860850b57cfe27c87df22aabe9fdcf3d12671b81e68b61c3974aaf0064e96ae68392d181148aaeef14f1c7
|
||||
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
|
||||
|
||||
58
dev-util/hipify-clang/hipify-clang-6.4.1.ebuild
Normal file
58
dev-util/hipify-clang/hipify-clang-6.4.1.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