diff options
Diffstat (limited to 'dev-util/hipify-clang')
-rw-r--r-- | dev-util/hipify-clang/Manifest | 4 | ||||
-rw-r--r-- | dev-util/hipify-clang/hipify-clang-6.1.1.ebuild | 51 | ||||
-rw-r--r-- | dev-util/hipify-clang/metadata.xml | 2 |
3 files changed, 55 insertions, 2 deletions
diff --git a/dev-util/hipify-clang/Manifest b/dev-util/hipify-clang/Manifest index f9489960373f..2a9ac02ed62c 100644 --- a/dev-util/hipify-clang/Manifest +++ b/dev-util/hipify-clang/Manifest @@ -1,4 +1,6 @@ AUX hipify-clang-5.7.1-fix-clang-libs.patch 1298 BLAKE2B 3f6d24300e50d4144c60635045ae0d6c84a1e153607e6779180065c4158afe33a8e8df642eda9c84d1eb189b9ec00eba0614060fc7b3f9136b92b163b932bae5 SHA512 8af2408124e5caca08ea7f72a95dfed816bae4dd07effdc04562f24f209ba5ce57b5e5875f0e03a5560c09d6d3718921bfbb56dc2b55db926aa618486d00032c DIST HIPIFY-5.7.1.tar.gz 673452 BLAKE2B e0293c1b7f9ea028efc8d712ddedae4ec933c5bcfba524e13816bd999e67bcf06097f9fe0e4d1f4fa6a38df133be694e92adeefd92f77301d8537b6880b1a1fe SHA512 0cc75fdbcb6278d319cfe8ee3c8547dc75ea494a007d2159c64312c3411627905e0d6c7d7f0032cbc4c727a90723325aa2705db2fd473dbeb41e60f276d1c9a7 +DIST HIPIFY-6.1.1.tar.gz 813425 BLAKE2B accc661431f11796d0c8bcf638537a6035020b2a36ebe66c1b8c10bb63b762418d5fd1f256f3a3e51d2ace224a6492abfe72838bef859b1da68c2126cc3521be SHA512 29c45e312c8e2f0d06916b57f24eba27ba7beae3bd860850b57cfe27c87df22aabe9fdcf3d12671b81e68b61c3974aaf0064e96ae68392d181148aaeef14f1c7 EBUILD hipify-clang-5.7.1.ebuild 1037 BLAKE2B c13330ff2f0ce915b37841abde52c70cf8907a674969ba5ed929702dbe180e1166b7c62b7dc0bd6f8df2af6e4689337d22cf1e247f27f7d0c72d0cf5c59c23a4 SHA512 24caa7e7007d9ae952e976b5b5d86912cc7780dec7e04a001707d24840d98369799f6766ca85eb242ad04b8e5c8faf7a72fae1d315f42ce1608d81d896ca2fc1 -MISC metadata.xml 469 BLAKE2B b62d4ab1829968943d48809f2059527b44d464e8b0e089214ec3fb8fcde1d5f380045a68978be63e3e149243f5d57e1cd4958943d0cff97a882711d688870800 SHA512 c8a00d04d7f41f47b636c367f6d7c41d2bd750650af98182c250bcd9d687af64d408b9031bcd1df480746c04ffa9f0ff07bc02250cf98a6f33bf21d1b714ea2d +EBUILD hipify-clang-6.1.1.ebuild 1057 BLAKE2B e4357b90e71c1b177c1cde5373ae9c84ec9f9e3ff8ca47b5d48c482d7f59e4b17a9337d31f6cc6c1cd86007f9360d5e9ffde11835ad66a809ca19bb44694fdfc SHA512 2530656d0a68d34cef1a9d5b810b57b79daa807c368ebd1dcc53b1f9c893b58e869323729df2217f9717213b3434799aac71aacec00728c51f1d50c33ee33454 +MISC metadata.xml 453 BLAKE2B b7719f4627bf53a6b4bb0c5255860382008294b3e5abf41512f62a0b55f0de6e5f5859472cb4352ecbab2139c27b68015922baec4c75a45cc4d078257a1bf846 SHA512 33d3fe6ab49e832e97c122f0eca8292b9129396d9ffec137516259fc5d12924062bbd8fe600da6f1685f954bcb61b466f5631db661023ceb507151c7741c33ce 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> |