diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2024-05-01 22:16:57 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-26 10:18:56 +0100 |
commit | 8190ae701115849039f5e8be3b10f3157ef734af (patch) | |
tree | f395f77a7379b66a9e6706032ed4ab47bab181c0 | |
parent | dev-libs/rocr-runtime: fix crash in musl and compile issue with ld.lld (diff) | |
download | gentoo-8190ae701115849039f5e8be3b10f3157ef734af.tar.gz gentoo-8190ae701115849039f5e8be3b10f3157ef734af.tar.bz2 gentoo-8190ae701115849039f5e8be3b10f3157ef734af.zip |
dev-util/rocminfo: add 6.1.0
Update remote-id in metadata
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-util/rocminfo/Manifest | 1 | ||||
-rw-r--r-- | dev-util/rocminfo/metadata.xml | 2 | ||||
-rw-r--r-- | dev-util/rocminfo/rocminfo-6.1.0.ebuild | 48 |
3 files changed, 50 insertions, 1 deletions
diff --git a/dev-util/rocminfo/Manifest b/dev-util/rocminfo/Manifest index b4888c9bbca0..20309cdc9fc5 100644 --- a/dev-util/rocminfo/Manifest +++ b/dev-util/rocminfo/Manifest @@ -4,3 +4,4 @@ DIST rocminfo-5.4.3.tar.gz 16832 BLAKE2B 2344b6bd3ffecdfa657559e4d4d8c09de862ebc DIST rocminfo-5.5.1.tar.gz 17020 BLAKE2B 42fdbd32b7092306dc4442910ae922b616c859439511e2acfb17dee32557d77a9731aeb1d7ce25d32ae76f9cafd1e56476ac522545efe516d238d9285fa7b4a3 SHA512 5710979ee885bf35d40b7d07b157226ea4bb84bd14a2c57bdf8c93ca483685a8ce39d01f15b828d015968102457e9a94335a5273524d98eca76d0f8ceed2e8c1 DIST rocminfo-5.7.1.tar.gz 17302 BLAKE2B 395c695ed0b79c771c4240310c457aec893ffd889ddd551866753d2a0c8d4e98399672d74a7114a89faf8b1960dd54fbb0425ea00f7d15e5c740e33ce4046d0b SHA512 38726bc52bd045b6281cccd702706fd6ea5b57cdc421ad23106d5447a002f4b530e8d4e4430d2bb8eb30803af3bacdaf34646a965cea26f42d726bf7f6aafbab DIST rocminfo-6.0.0.tar.gz 17614 BLAKE2B f296d43103062c492c3a13a8f79a70ebe719126136abe38b020035f0e31819b9b25928aa538416ec9cc733a4e352e83fe8550d15c10f8071b7f889b361814fa6 SHA512 66de2e84b78f69a0c7d302e5432b08874374a45f7d577b158f23abbb40455c574868a7093e64c3a7d19e21dd13b48865a36bd626ef34b99ce52f3363bbb261a7 +DIST rocminfo-6.1.0.tar.gz 17734 BLAKE2B 3606c74b7b097a623175789e0ece4718da919bfdcc1b2852988d22ee67e036debbeba890e0667cb1ac2fb9ae3de05841a29fcf122a2feeed493bcdcbed021eea SHA512 417aad1bd65f056c43d264a5d0b62aa4c3b20ac4869a71efd5e6fa94a1cd4773112e75e1479efeae9342b8c222caba45213c75f1e8b8ece640bd47c934ace324 diff --git a/dev-util/rocminfo/metadata.xml b/dev-util/rocminfo/metadata.xml index 3213bd34da97..24dcfaf2507f 100644 --- a/dev-util/rocminfo/metadata.xml +++ b/dev-util/rocminfo/metadata.xml @@ -6,6 +6,6 @@ <name>Craig Andrews</name> </maintainer> <upstream> - <remote-id type="github">RadeonOpenCompute/rocminfo</remote-id> + <remote-id type="github">ROCm/rocminfo</remote-id> </upstream> </pkgmetadata> diff --git a/dev-util/rocminfo/rocminfo-6.1.0.ebuild b/dev-util/rocminfo/rocminfo-6.1.0.ebuild new file mode 100644 index 000000000000..90ec124928f3 --- /dev/null +++ b/dev-util/rocminfo/rocminfo-6.1.0.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..12} ) +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 +} |