summaryrefslogtreecommitdiff
path: root/sys-apps/zmem/zmem-0.2.1.ebuild
blob: 42d783cada178bda74869b5df8927b8c24570660 (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
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.13.4

EAPI=8

CRATES="
	addr2line@0.21.0
	adler@1.0.2
	anstream@0.6.5
	anstyle-parse@0.2.3
	anstyle-query@1.0.2
	anstyle-wincon@3.0.2
	anstyle@1.0.4
	autocfg@1.1.0
	backtrace@0.3.69
	bitflags@1.3.2
	bitflags@2.4.1
	bytes@1.5.0
	cc@1.0.83
	cfg-if@1.0.0
	clap@4.4.11
	clap_builder@4.4.11
	clap_derive@4.4.7
	clap_lex@0.6.0
	colorchoice@1.0.0
	colored@2.0.4
	errno@0.3.8
	futures-channel@0.3.29
	futures-core@0.3.29
	futures-executor@0.3.29
	futures-io@0.3.29
	futures-macro@0.3.29
	futures-sink@0.3.29
	futures-task@0.3.29
	futures-util@0.3.29
	futures@0.3.29
	gimli@0.28.1
	heck@0.4.1
	hermit-abi@0.3.3
	is-terminal@0.4.9
	lazy_static@1.4.0
	libc@0.2.150
	linux-raw-sys@0.4.12
	lock_api@0.4.11
	memchr@2.6.4
	miniz_oxide@0.7.1
	mio@0.8.10
	num_cpus@1.16.0
	object@0.32.1
	parking_lot@0.12.1
	parking_lot_core@0.9.9
	pin-project-lite@0.2.13
	pin-utils@0.1.0
	proc-macro2@1.0.70
	quote@1.0.33
	redox_syscall@0.4.1
	rustc-demangle@0.1.23
	rustix@0.38.27
	scopeguard@1.2.0
	signal-hook-registry@1.4.1
	slab@0.4.9
	smallvec@1.11.2
	socket2@0.5.5
	strsim@0.10.0
	syn@2.0.39
	tokio-macros@2.2.0
	tokio@1.34.0
	unicode-ident@1.0.12
	utf8parse@0.2.1
	wasi@0.11.0+wasi-snapshot-preview1
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-targets@0.48.5
	windows-targets@0.52.0
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.0
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.0
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.0
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.0
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.0
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.0
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.0
"

inherit cargo toolchain-funcs

DESCRIPTION="Memory monitoring tool focusing on swap, zswap and zram"
HOMEPAGE="https://github.com/xeome/Zmem"
SRC_URI="
	https://github.com/xeome/Zmem/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"
S="${WORKDIR}/Zmem-${PV}"

LICENSE="GPL-3+"
# Dependent crate licenses
LICENSE+=" MIT MPL-2.0 Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64"

QA_FLAGS_IGNORED="usr/bin/zmem"

src_prepare() {
	default
	if ! tc-is-lto; then
		sed '/lto = "thin"/d' -i Cargo.toml || die
	fi
}