mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/rocm-smi: ROCm System Management Interface
Signed-off-by: Wilfried Holzke <gentoo@holzke.net> Package-Manager: Portage-3.0.9, Repoman-3.0.2 Closes: https://github.com/gentoo/gentoo/pull/18848 Signed-off-by: Craig Andrews <candrews@gentoo.org>
This commit is contained in:
committed by
Craig Andrews
parent
cf938e7183
commit
c3877a5815
1
dev-util/rocm-smi/Manifest
Normal file
1
dev-util/rocm-smi/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST rocm-smi-4.0.0.tar.gz 45065 BLAKE2B 90a28c162099deaa67c98701b79328c760973d88fa598f8a66116927483f25dbfd85366312c4c6e8e64fa2199dfb32fb661db04b464bd58cb39dea09a84ac51e SHA512 63c1274470df079320164d29cb4c009f52e59ffebdadfefe73cbe21238a70858fd5a86417b9f81ab2c405bc64707b02ddbf65e9d301f757f245b60152cd63dcf
|
||||
19
dev-util/rocm-smi/metadata.xml
Normal file
19
dev-util/rocm-smi/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>candrews@gentoo.org</email>
|
||||
<name>Craig Andrews</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@holzke.net</email>
|
||||
<name>Wilfried Holzke</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">RadeonOpenCompute/ROC-smi</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
34
dev-util/rocm-smi/rocm-smi-4.0.0.ebuild
Normal file
34
dev-util/rocm-smi/rocm-smi-4.0.0.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="ROCm System Management Interface"
|
||||
HOMEPAGE="https://github.com/RadeonOpenCompute/ROC-smi"
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROC-smi"
|
||||
EGIT_BRANCH="master"
|
||||
else
|
||||
SRC_URI="https://github.com/RadeonOpenCompute/ROC-smi/archive/rocm-${PV}.tar.gz -> rocm-smi-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/ROC-smi-rocm-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
src_install() {
|
||||
python_scriptinto /usr/bin
|
||||
python_newscript rocm_smi.py rocm-smi
|
||||
}
|
||||
34
dev-util/rocm-smi/rocm-smi-9999.ebuild
Normal file
34
dev-util/rocm-smi/rocm-smi-9999.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="ROCm System Management Interface"
|
||||
HOMEPAGE="https://github.com/RadeonOpenCompute/ROC-smi"
|
||||
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROC-smi"
|
||||
EGIT_BRANCH="master"
|
||||
else
|
||||
SRC_URI="https://github.com/RadeonOpenCompute/ROC-smi/archive/rocm-${PV}.tar.gz -> rocm-smi-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/ROC-smi-rocm-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
src_install() {
|
||||
python_scriptinto /usr/bin
|
||||
python_newscript rocm_smi.py rocm-smi
|
||||
}
|
||||
Reference in New Issue
Block a user