1 |
commit: c3877a5815fb63c7c885fc79d27d8346c1f4e6ce |
2 |
Author: Wilfried Holzke <gentoo <AT> holzke <DOT> net> |
3 |
AuthorDate: Mon Dec 28 09:42:03 2020 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 17:24:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3877a58 |
7 |
|
8 |
dev-util/rocm-smi: ROCm System Management Interface |
9 |
|
10 |
Signed-off-by: Wilfried Holzke <gentoo <AT> holzke.net> |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/18848 |
13 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
14 |
|
15 |
dev-util/rocm-smi/Manifest | 1 + |
16 |
dev-util/rocm-smi/metadata.xml | 19 ++++++++++++++++++ |
17 |
dev-util/rocm-smi/rocm-smi-4.0.0.ebuild | 34 +++++++++++++++++++++++++++++++++ |
18 |
dev-util/rocm-smi/rocm-smi-9999.ebuild | 34 +++++++++++++++++++++++++++++++++ |
19 |
4 files changed, 88 insertions(+) |
20 |
|
21 |
diff --git a/dev-util/rocm-smi/Manifest b/dev-util/rocm-smi/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..d19074784f5 |
24 |
--- /dev/null |
25 |
+++ b/dev-util/rocm-smi/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST rocm-smi-4.0.0.tar.gz 45065 BLAKE2B 90a28c162099deaa67c98701b79328c760973d88fa598f8a66116927483f25dbfd85366312c4c6e8e64fa2199dfb32fb661db04b464bd58cb39dea09a84ac51e SHA512 63c1274470df079320164d29cb4c009f52e59ffebdadfefe73cbe21238a70858fd5a86417b9f81ab2c405bc64707b02ddbf65e9d301f757f245b60152cd63dcf |
28 |
|
29 |
diff --git a/dev-util/rocm-smi/metadata.xml b/dev-util/rocm-smi/metadata.xml |
30 |
new file mode 100644 |
31 |
index 00000000000..c968d7fd87f |
32 |
--- /dev/null |
33 |
+++ b/dev-util/rocm-smi/metadata.xml |
34 |
@@ -0,0 +1,19 @@ |
35 |
+<?xml version="1.0" encoding="UTF-8"?> |
36 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
37 |
+<pkgmetadata> |
38 |
+ <maintainer type="person"> |
39 |
+ <email>candrews@g.o</email> |
40 |
+ <name>Craig Andrews</name> |
41 |
+ </maintainer> |
42 |
+ <maintainer type="person"> |
43 |
+ <email>gentoo@××××××.net</email> |
44 |
+ <name>Wilfried Holzke</name> |
45 |
+ </maintainer> |
46 |
+ <maintainer type="project"> |
47 |
+ <email>proxy-maint@g.o</email> |
48 |
+ <name>Proxy Maintainers</name> |
49 |
+ </maintainer> |
50 |
+ <upstream> |
51 |
+ <remote-id type="github">RadeonOpenCompute/ROC-smi</remote-id> |
52 |
+ </upstream> |
53 |
+</pkgmetadata> |
54 |
|
55 |
diff --git a/dev-util/rocm-smi/rocm-smi-4.0.0.ebuild b/dev-util/rocm-smi/rocm-smi-4.0.0.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000000..3dd0188d8e6 |
58 |
--- /dev/null |
59 |
+++ b/dev-util/rocm-smi/rocm-smi-4.0.0.ebuild |
60 |
@@ -0,0 +1,34 @@ |
61 |
+# Copyright 1999-2020 Gentoo Authors |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=7 |
65 |
+ |
66 |
+PYTHON_COMPAT=( python3_{6..9} ) |
67 |
+ |
68 |
+inherit python-single-r1 |
69 |
+ |
70 |
+DESCRIPTION="ROCm System Management Interface" |
71 |
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROC-smi" |
72 |
+ |
73 |
+if [[ ${PV} == *9999 ]] ; then |
74 |
+ inherit git-r3 |
75 |
+ EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROC-smi" |
76 |
+ EGIT_BRANCH="master" |
77 |
+else |
78 |
+ SRC_URI="https://github.com/RadeonOpenCompute/ROC-smi/archive/rocm-${PV}.tar.gz -> rocm-smi-${PV}.tar.gz" |
79 |
+ KEYWORDS="~amd64" |
80 |
+ S="${WORKDIR}/ROC-smi-rocm-${PV}" |
81 |
+fi |
82 |
+ |
83 |
+LICENSE="MIT" |
84 |
+SLOT="0" |
85 |
+IUSE="" |
86 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
87 |
+ |
88 |
+DEPEND="" |
89 |
+RDEPEND="${PYTHON_DEPS}" |
90 |
+ |
91 |
+src_install() { |
92 |
+ python_scriptinto /usr/bin |
93 |
+ python_newscript rocm_smi.py rocm-smi |
94 |
+} |
95 |
|
96 |
diff --git a/dev-util/rocm-smi/rocm-smi-9999.ebuild b/dev-util/rocm-smi/rocm-smi-9999.ebuild |
97 |
new file mode 100644 |
98 |
index 00000000000..3dd0188d8e6 |
99 |
--- /dev/null |
100 |
+++ b/dev-util/rocm-smi/rocm-smi-9999.ebuild |
101 |
@@ -0,0 +1,34 @@ |
102 |
+# Copyright 1999-2020 Gentoo Authors |
103 |
+# Distributed under the terms of the GNU General Public License v2 |
104 |
+ |
105 |
+EAPI=7 |
106 |
+ |
107 |
+PYTHON_COMPAT=( python3_{6..9} ) |
108 |
+ |
109 |
+inherit python-single-r1 |
110 |
+ |
111 |
+DESCRIPTION="ROCm System Management Interface" |
112 |
+HOMEPAGE="https://github.com/RadeonOpenCompute/ROC-smi" |
113 |
+ |
114 |
+if [[ ${PV} == *9999 ]] ; then |
115 |
+ inherit git-r3 |
116 |
+ EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROC-smi" |
117 |
+ EGIT_BRANCH="master" |
118 |
+else |
119 |
+ SRC_URI="https://github.com/RadeonOpenCompute/ROC-smi/archive/rocm-${PV}.tar.gz -> rocm-smi-${PV}.tar.gz" |
120 |
+ KEYWORDS="~amd64" |
121 |
+ S="${WORKDIR}/ROC-smi-rocm-${PV}" |
122 |
+fi |
123 |
+ |
124 |
+LICENSE="MIT" |
125 |
+SLOT="0" |
126 |
+IUSE="" |
127 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
128 |
+ |
129 |
+DEPEND="" |
130 |
+RDEPEND="${PYTHON_DEPS}" |
131 |
+ |
132 |
+src_install() { |
133 |
+ python_scriptinto /usr/bin |
134 |
+ python_newscript rocm_smi.py rocm-smi |
135 |
+} |