From: "Patrick Lauer" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/hipify-clang/
Date: Sat, 08 Feb 2025 10:07:12 +0000 (UTC) [thread overview]
Message-ID: <1739009227.86e11b09f2069502e9ec085cffbf03151690f9ba.patrick@gentoo> (raw)
commit: 86e11b09f2069502e9ec085cffbf03151690f9ba
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 7 15:02:06 2025 +0000
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sat Feb 8 10:07:07 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86e11b09
dev-util/hipify-clang: add 6.3.2
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
dev-util/hipify-clang/Manifest | 1 +
dev-util/hipify-clang/hipify-clang-6.3.2.ebuild | 58 +++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/dev-util/hipify-clang/Manifest b/dev-util/hipify-clang/Manifest
index 6291d9b71cfe..7a1ac4b915f8 100644
--- a/dev-util/hipify-clang/Manifest
+++ b/dev-util/hipify-clang/Manifest
@@ -1,3 +1,4 @@
DIST HIPIFY-5.7.1.tar.gz 673452 BLAKE2B e0293c1b7f9ea028efc8d712ddedae4ec933c5bcfba524e13816bd999e67bcf06097f9fe0e4d1f4fa6a38df133be694e92adeefd92f77301d8537b6880b1a1fe SHA512 0cc75fdbcb6278d319cfe8ee3c8547dc75ea494a007d2159c64312c3411627905e0d6c7d7f0032cbc4c727a90723325aa2705db2fd473dbeb41e60f276d1c9a7
DIST HIPIFY-6.1.1.tar.gz 813425 BLAKE2B accc661431f11796d0c8bcf638537a6035020b2a36ebe66c1b8c10bb63b762418d5fd1f256f3a3e51d2ace224a6492abfe72838bef859b1da68c2126cc3521be SHA512 29c45e312c8e2f0d06916b57f24eba27ba7beae3bd860850b57cfe27c87df22aabe9fdcf3d12671b81e68b61c3974aaf0064e96ae68392d181148aaeef14f1c7
DIST HIPIFY-6.3.0.tar.gz 941586 BLAKE2B 032629962cd16a5f6d61153ae874706230745cec89709409601f0df12e75870d3a5269e2a669bae4e3b672484e9067cb418e77f7e5a69afc052523905460a696 SHA512 69e9e9d7cb3f63449aac66b55ece745c593dd6387e066a42c028764ac81ecba31fb5b3c9f98b46bb079b67181962aad323a735bdbb382c68c1b9e8e6169d3430
+DIST HIPIFY-6.3.2.tar.gz 978994 BLAKE2B 7f35d462f69ab298485ef27b53624676071be551d671532383f246dbe6cd133ce1b30fb98d5457b82a0a9a01070cc6050e14f4f8fdecbf04a9b589309c3afd67 SHA512 26fc5db270e661d3ca380dfd570f2b46108c41b808f84413b27c4b6efaf6796ae625d4489c2278c253345d8a25408f636fde476be380b08d489254e20b8a12c0
diff --git a/dev-util/hipify-clang/hipify-clang-6.3.2.ebuild b/dev-util/hipify-clang/hipify-clang-6.3.2.ebuild
new file mode 100644
index 000000000000..31dca90c6893
--- /dev/null
+++ b/dev-util/hipify-clang/hipify-clang-6.3.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_COMPAT=( 19 )
+
+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
+}
next reply other threads:[~2025-02-08 10:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 10:07 Patrick Lauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-04 10:55 [gentoo-commits] repo/gentoo:master commit in: dev-util/hipify-clang/ Patrick Lauer
2024-09-09 18:20 Sam James
2024-03-08 19:26 Sam James
2024-03-08 19:22 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1739009227.86e11b09f2069502e9ec085cffbf03151690f9ba.patrick@gentoo \
--to=patrick@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox