summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2024-03-17 15:31:06 +0000
committerSam James <sam@gentoo.org>2024-06-26 10:19:12 +0100
commit22cc875cef7004eced3d87f016464c7aa3f3c797 (patch)
treec4b7b1c80553234bd230f338218e63bf54d6fba1 /dev-util/hipify-clang
parentdev-util/rocm-smi: add 6.1.1 (diff)
downloadgentoo-22cc875cef7004eced3d87f016464c7aa3f3c797.tar.gz
gentoo-22cc875cef7004eced3d87f016464c7aa3f3c797.tar.bz2
gentoo-22cc875cef7004eced3d87f016464c7aa3f3c797.zip
dev-util/hipify-clang: add 6.1.1
Changes: * fix-clang-libs.patch replaced with CMAKE_PREFIX_PATH * renamed ROCm-Developer-Tools to ROCm in urls Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/hipify-clang')
-rw-r--r--dev-util/hipify-clang/Manifest1
-rw-r--r--dev-util/hipify-clang/hipify-clang-6.1.1.ebuild51
-rw-r--r--dev-util/hipify-clang/metadata.xml2
3 files changed, 53 insertions, 1 deletions
diff --git a/dev-util/hipify-clang/Manifest b/dev-util/hipify-clang/Manifest
index c191db35770b..21ddfce17d12 100644
--- a/dev-util/hipify-clang/Manifest
+++ b/dev-util/hipify-clang/Manifest
@@ -1 +1,2 @@
DIST HIPIFY-5.7.1.tar.gz 673452 BLAKE2B e0293c1b7f9ea028efc8d712ddedae4ec933c5bcfba524e13816bd999e67bcf06097f9fe0e4d1f4fa6a38df133be694e92adeefd92f77301d8537b6880b1a1fe SHA512 0cc75fdbcb6278d319cfe8ee3c8547dc75ea494a007d2159c64312c3411627905e0d6c7d7f0032cbc4c727a90723325aa2705db2fd473dbeb41e60f276d1c9a7
+DIST HIPIFY-6.1.1.tar.gz 813425 BLAKE2B accc661431f11796d0c8bcf638537a6035020b2a36ebe66c1b8c10bb63b762418d5fd1f256f3a3e51d2ace224a6492abfe72838bef859b1da68c2126cc3521be SHA512 29c45e312c8e2f0d06916b57f24eba27ba7beae3bd860850b57cfe27c87df22aabe9fdcf3d12671b81e68b61c3974aaf0064e96ae68392d181148aaeef14f1c7
diff --git a/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild b/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild
new file mode 100644
index 000000000000..ca0eeb20cc2a
--- /dev/null
+++ b/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 18 )
+
+inherit cmake 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 '
+ sys-devel/clang:${LLVM_SLOT}=
+ sys-devel/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() {
+ local mycmakeargs=(
+ -DCMAKE_PREFIX_PATH="$(get_llvm_prefix)/$(get_libdir)/cmake/llvm"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # rm unwanted copy
+ rm -rf "${ED}/usr/hip" || die
+}
diff --git a/dev-util/hipify-clang/metadata.xml b/dev-util/hipify-clang/metadata.xml
index 82e35f93e198..4d4ce95c15e4 100644
--- a/dev-util/hipify-clang/metadata.xml
+++ b/dev-util/hipify-clang/metadata.xml
@@ -10,6 +10,6 @@
<name>Sv. Lockal</name>
</maintainer>
<upstream>
- <remote-id type="github">ROCm-Developer-Tools/HIPIFY</remote-id>
+ <remote-id type="github">ROCm/HIPIFY</remote-id>
</upstream>
</pkgmetadata>