blob: 30e13993ae94e585e12d8a40642d3c47c5f348cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
adler@1.0.2
ahash@0.8.11
aho-corasick@1.1.3
allocator-api2@0.2.18
anyhow@1.0.86
arrayvec@0.7.4
ash@0.38.0+1.3.281
autocfg@1.2.0
base64@0.22.1
bincode@1.3.3
bitflags@1.3.2
bitflags@2.5.0
block@0.1.6
block-buffer@0.10.4
bstr@1.9.1
bytemuck@1.16.0
bytemuck_derive@1.6.1
cairo-rs@0.19.4
cairo-sys-rs@0.19.2
cargo-util@0.2.11
cc@1.0.96
cc@1.0.98
cfg_aliases@0.2.1
cfg-expr@0.15.8
cfg-if@1.0.0
const-random@0.1.18
const-random-macro@0.1.16
core-foundation@0.9.4
core-foundation-sys@0.8.6
cpufeatures@0.2.12
crc32fast@1.4.2
crossbeam-deque@0.8.5
crossbeam-epoch@0.9.18
crossbeam-utils@0.8.20
crunchy@0.2.2
crypto-common@0.1.6
dbus@0.9.7
dbus-crossroads@0.5.2
digest@0.10.7
dlv-list@0.5.2
drm@0.12.0
drm-ffi@0.8.0
drm-fourcc@2.2.0
drm-sys@0.7.0
egl@0.2.7
either@1.12.0
equivalent@1.0.1
errno@0.3.9
errno-sys@0.2.0
fallible-iterator@0.3.0
fallible-streaming-iterator@0.1.9
fastrand@2.1.0
field-offset@0.3.6
filetime@0.2.23
flate2@1.0.30
form_urlencoded@1.2.1
futures-channel@0.3.30
futures-core@0.3.30
futures-executor@0.3.30
futures-io@0.3.30
futures-macro@0.3.30
futures-task@0.3.30
futures-util@0.3.30
gbm@0.15.0
gbm-sys@0.3.0
gdk4@0.8.2
gdk4-sys@0.8.2
gdk-pixbuf@0.19.2
gdk-pixbuf-sys@0.19.5
generic-array@0.14.7
getrandom@0.2.14
getrandom@0.2.15
gettext-rs@0.7.0
gettext-sys@0.21.3
gio@0.19.5
gio-sys@0.19.5
glib@0.19.5
glib-macros@0.19.5
glib-sys@0.19.5
globset@0.4.14
gobject-sys@0.19.5
graphene-rs@0.19.2
graphene-sys@0.19.5
gsk4@0.8.2
gsk4-sys@0.8.2
gtk4@0.8.2
gtk4-macros@0.8.2
gtk4-sys@0.8.2
hashbrown@0.14.5
hashlink@0.9.0
heck@0.5.0
hex@0.4.3
idna@0.5.0
ignore@0.4.22
indexmap@2.2.6
itoa@1.0.11
jobserver@0.1.31
khronos@0.1.2
lazy_static@1.4.0
libadwaita@0.6.0
libadwaita-sys@0.6.0
libc@0.1.12
libc@0.2.154
libc@0.2.155
libdbus-sys@0.2.5
libloading@0.8.3
libsqlite3-sys@0.28.0
libudev-sys@0.1.4
linux-raw-sys@0.4.14
linux-raw-sys@0.6.4
locale_config@0.3.0
log@0.4.21
malloc_buf@0.0.6
memchr@2.7.2
memoffset@0.9.1
miniz_oxide@0.7.3
miow@0.6.0
nix@0.29.0
objc@0.2.7
objc-foundation@0.1.1
objc_id@0.1.1
once_cell@1.19.0
ordered-multimap@0.7.3
pango@0.19.5
pango-sys@0.19.5
percent-encoding@2.3.1
pin-project-lite@0.2.14
pin-utils@0.1.0
pkg-config@0.3.30
proc-macro2@1.0.81
proc-macro2@1.0.83
proc-macro-crate@3.1.0
quote@1.0.36
rayon@1.10.0
rayon-core@1.12.1
redox_syscall@0.4.1
regex@1.10.4
regex-automata@0.4.6
regex-syntax@0.8.3
ring@0.17.8
rusqlite@0.31.0
rustc_version@0.4.0
rust-ini@0.21.0
rustix@0.38.34
rustls@0.22.4
rustls-pki-types@1.7.0
rustls-webpki@0.102.4
ryu@1.0.17
ryu@1.0.18
same-file@1.0.6
semver@1.0.22
serde@1.0.200
serde@1.0.202
serde_derive@1.0.200
serde_derive@1.0.202
serde_json@1.0.116
serde_json@1.0.117
serde_spanned@0.6.5
sha2@0.10.8
shell-escape@0.1.5
slab@0.4.9
smallvec@1.13.2
spin@0.9.8
static_assertions@1.1.0
subtle@2.5.0
syn@2.0.60
syn@2.0.66
system-deps@6.2.2
tar@0.4.40
target-lexicon@0.12.14
temp-dir@0.1.13
tempfile@3.10.1
textdistance@1.0.2
thiserror@1.0.59
thiserror@1.0.61
thiserror-impl@1.0.59
thiserror-impl@1.0.61
tiny-keccak@2.0.2
tinyvec@1.6.0
tinyvec_macros@0.1.1
toml@0.8.12
toml_datetime@0.6.5
toml_edit@0.21.1
toml_edit@0.22.12
tracing@0.1.40
tracing-attributes@0.1.27
tracing-core@0.1.32
trim-in-place@0.1.7
typenum@1.17.0
unicode-bidi@0.3.15
unicode-ident@1.0.12
unicode-normalization@0.1.23
untrusted@0.9.0
ureq@2.9.7
url@2.5.0
vcpkg@0.2.15
version_check@0.9.4
version-compare@0.2.0
walkdir@2.5.0
wasi@0.11.0+wasi-snapshot-preview1
webpki-roots@0.26.1
winapi@0.3.9
winapi-i686-pc-windows-gnu@0.4.0
winapi-util@0.1.8
winapi-x86_64-pc-windows-gnu@0.4.0
windows_aarch64_gnullvm@0.48.5
windows_aarch64_gnullvm@0.52.5
windows_aarch64_msvc@0.48.5
windows_aarch64_msvc@0.52.5
windows_i686_gnu@0.48.5
windows_i686_gnu@0.52.5
windows_i686_gnullvm@0.52.5
windows_i686_msvc@0.48.5
windows_i686_msvc@0.52.5
windows-sys@0.48.0
windows-sys@0.52.0
windows-targets@0.48.5
windows-targets@0.52.5
windows_x86_64_gnu@0.48.5
windows_x86_64_gnu@0.52.5
windows_x86_64_gnullvm@0.48.5
windows_x86_64_gnullvm@0.52.5
windows_x86_64_msvc@0.48.5
windows_x86_64_msvc@0.52.5
winnow@0.5.40
winnow@0.6.7
xattr@1.3.1
zerocopy@0.7.32
zerocopy-derive@0.7.32
zeroize@1.7.0
"
PYTHON_COMPAT=( python3_{10..13} )
NVTOP_COMMIT=45a1796375cd617d16167869bb88e5e69c809468
inherit cargo gnome2-utils meson python-any-r1 xdg flag-o-matic
DESCRIPTION="Monitor your CPU, Memory, Disk, Network and GPU usage."
HOMEPAGE="https://missioncenter.io/"
SRC_URI="
https://gitlab.com/mission-center-devs/mission-center/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2
https://github.com/Syllo/nvtop/archive/${NVTOP_COMMIT}.tar.gz -> nvtop-${NVTOP_COMMIT}.tar.gz
${CARGO_CRATE_URIS}
"
S="${WORKDIR}/${PN}-v${PV}"
BUILD_DIR="${S}-build"
ECARGO_HOME="${S}-build/cargo-home"
LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 CC0-1.0 CeCILL-2 MIT Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug test"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-libs/appstream-0.16.4
>=dev-libs/glib-2.80:2
dev-libs/wayland
gui-libs/egl-gbm
>=dev-util/gdbus-codegen-2.80
>=gui-libs/gtk-4.14:4
>=gui-libs/libadwaita-1.5.0:1
media-libs/graphene
media-libs/libglvnd
media-libs/mesa
sys-apps/dbus
virtual/udev
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/libdrm
>=x11-libs/pango-1.51.0
"
RDEPEND="
${DEPEND}
sys-apps/dmidecode
"
BDEPEND="
${PYTHON_DEPS}
dev-libs/gobject-introspection
dev-util/blueprint-compiler
test? (
dev-libs/appstream-glib
dev-util/desktop-file-utils
)
"
PATCHES=(
# bug 939377
"${FILESDIR}/${PN}-0.4.4-skip-test.patch"
)
# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="
usr/bin/missioncenter
usr/bin/missioncenter-gatherer
"
pkg_setup() {
python-any-r1_pkg_setup
rust_pkg_setup
}
src_unpack() {
unpack ${P}.tar.bz2
unpack nvtop-${NVTOP_COMMIT}.tar.gz
GATHERER_BUILD_DIR=$(usex debug debug release)
mkdir -p "${BUILD_DIR}/src/sys_info_v2/gatherer/src/${GATHERER_BUILD_DIR}/build/native" || die
mv nvtop-${NVTOP_COMMIT} "${BUILD_DIR}/src/sys_info_v2/gatherer/src/${GATHERER_BUILD_DIR}/build/native" || die
cargo_src_unpack
}
src_prepare() {
default
GATHERER_BUILD_DIR=$(usex debug debug release)
cd "${BUILD_DIR}/src/sys_info_v2/gatherer/src/${GATHERER_BUILD_DIR}/build/native/nvtop-${NVTOP_COMMIT}" || die
find "${S}/src/sys_info_v2/gatherer/3rdparty/nvtop/patches" \
-type f \
-name 'nvtop-*' \
-exec sh -c 'patch -p1 < {}' \; || die
}
src_configure() {
filter-lto
EMESON_BUILDTYPE=$(usex debug debug release)
meson_src_configure
cp -r "${ECARGO_HOME}" "${BUILD_DIR}/src/sys_info_v2/gatherer/cargo-home" || die
}
pkg_postinst() {
gnome2_schemas_update
xdg_pkg_postinst
}
pkg_postrm() {
gnome2_schemas_update
xdg_pkg_postrm
}
|