dev-libs/rocm-core: new package, add 7.0.2

This is a small package which includes header and verson library.
Previously the same header was added by dev-util/hip ebuild,
but other packages like amdsmi also use rocm-core library, so it is
better to install them in a separate packages (as intended by upstream).

Bug: https://bugs.gentoo.org/964799

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44165
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sv. Lockal
2025-10-18 07:45:01 +00:00
committed by Sam James
parent 444de646b5
commit f18a994cd0
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST rocm-core-7.0.2.tar.gz 20551 BLAKE2B 453c5a11790d24200b8165e0d18246ea006a580f84beb51f6cd6f76ed9b880711f413011e62daec8de3c4d6cad54f53407cb082673017d645149a850ea2181bc SHA512 9dd7c6965bd13ebc92e3d16b7bd680e50de163afb532a4eb962668799650a89f2a7dcbe18935d858664fcfdbcb12373af1ff5e8ac4778ee8b7b4692d1a253c3e

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lockalsash@gmail.com</email>
<name>Sv. Lockal</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">ROCm/rocm-systems</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,28 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Library that provides ROCm release version and install path information"
HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocm-core"
SRC_URI="https://github.com/ROCm/rocm-core/archive/refs/tags/rocm-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/rocm-core-rocm-${PV}"
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~amd64"
src_configure() {
local mycmakeargs=( -DROCM_VERSION=${PV} )
cmake_src_configure
}
src_install() {
cmake_src_install
# too broad for standard directory
rm "${ED}"/usr/.info/version || die
}
RDEPEND="!<dev-util/hip-7.0"