commit:     a00b27fa8d7159c9038048338afc25fc05b2c3c7
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 28 08:02:35 2024 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sun Jul 28 08:02:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a00b27fa

dev-util/rocminfo: add 6.1.2

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-util/rocminfo/Manifest              |  1 +
 dev-util/rocminfo/rocminfo-6.1.2.ebuild | 48 +++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-util/rocminfo/Manifest b/dev-util/rocminfo/Manifest
index 600de24040c9..79c3f1de2ae4 100644
--- a/dev-util/rocminfo/Manifest
+++ b/dev-util/rocminfo/Manifest
@@ -1,2 +1,3 @@
 DIST rocminfo-5.7.1.tar.gz 17302 BLAKE2B 
395c695ed0b79c771c4240310c457aec893ffd889ddd551866753d2a0c8d4e98399672d74a7114a89faf8b1960dd54fbb0425ea00f7d15e5c740e33ce4046d0b
 SHA512 
38726bc52bd045b6281cccd702706fd6ea5b57cdc421ad23106d5447a002f4b530e8d4e4430d2bb8eb30803af3bacdaf34646a965cea26f42d726bf7f6aafbab
 DIST rocminfo-6.1.1.tar.gz 17740 BLAKE2B 
6331054e1c8a59f2d4246c3fcb999afc28a8cabea9d5faf2b95d767f7153ab0930a633ee630cabc4472413a8a54fd9ef798516baa77e94aabda7687a36bf312f
 SHA512 
d2982874ad09bfbe15418a88c2d3360f9bce262674d50f5858a08e52dd266e255f95116c85e069d7e8d28cb323164fb6999c5834163105f33e0c773aede4efdf
+DIST rocminfo-6.1.2.tar.gz 17734 BLAKE2B 
d92816dc0657a2ec0f04024311b5a7851a3cd487d73b496bfdb32ffe69cae957798f49622e477e5d0b47ac4ff86c2bba9a46e86228823f85da2d9f5376b6aef9
 SHA512 
fa1890797a89d67d18f29d73d213d68bcd31c7fd2b2cee89148b8dbd6fe7552e270af0582c7a50e80adc399197b3dc1cb5e858b1e983411079d088fc947c8c88

diff --git a/dev-util/rocminfo/rocminfo-6.1.2.ebuild 
b/dev-util/rocminfo/rocminfo-6.1.2.ebuild
new file mode 100644
index 000000000000..5f6dfcd53860
--- /dev/null
+++ b/dev-util/rocminfo/rocminfo-6.1.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+inherit cmake python-r1
+
+if [[ ${PV} == *9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/ROCm/rocminfo/";
+       inherit git-r3
+else
+       SRC_URI="https://github.com/ROCm/rocminfo/archive/rocm-${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+       S="${WORKDIR}/rocminfo-rocm-${PV}"
+fi
+
+DESCRIPTION="ROCm Application for Reporting System Info"
+HOMEPAGE="https://github.com/ROCm/rocminfo";
+LICENSE="UoI-NCSA"
+SLOT="0/$(ver_cut 1-2)"
+
+RDEPEND=">=dev-libs/rocr-runtime-${PV}
+       ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-6.0.0-detect-builtin-amdgpu.patch"
+)
+
+src_prepare() {
+       sed -e "/CPACK_RESOURCE_FILE_LICENSE/d" -i CMakeLists.txt || die
+       sed -e "/num_change_since_prev_pkg(/cset(NUM_COMMITS 0)" \
+               -i cmake_modules/utils.cmake || die # Fix QA issue on "git not 
found"
+       cmake_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=( -DROCRTST_BLD_TYPE=Release )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       rm "${ED}/usr/bin/rocm_agent_enumerator" || die
+       python_foreach_impl python_doexe rocm_agent_enumerator 
"${BUILD_DIR}"/rocm_agent_enumerator
+}

Reply via email to