summaryrefslogtreecommitdiff
blob: e62a91e3a43eb5d04c3bce5b049e93166e0e10a8 (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
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.6

EAPI=8

CRATES="
	adler-1.0.2
	aho-corasick-0.7.18
	anyhow-1.0.58
	async-broadcast-0.4.0
	async-channel-1.6.1
	async-executor-1.4.1
	async-io-1.7.0
	async-lock-2.5.0
	async-recursion-0.3.2
	async-task-4.3.0
	async-trait-0.1.56
	attohttpc-0.17.0
	attohttpc-0.19.1
	autocfg-1.1.0
	bitflags-1.3.2
	block-0.1.6
	byteorder-1.4.3
	bytes-1.2.0
	cache-padded-1.2.0
	cc-1.0.73
	cfg-if-1.0.0
	concurrent-queue-1.2.2
	core-foundation-0.9.3
	core-foundation-sys-0.8.3
	crc32fast-1.3.2
	darling-0.13.4
	darling_core-0.13.4
	darling_macro-0.13.4
	dbus-0.9.6
	derivative-2.2.0
	derive_is_enum_variant-0.1.1
	dirs-4.0.0
	dirs-next-2.0.0
	dirs-sys-0.3.7
	dirs-sys-next-0.1.2
	easy-parallel-3.2.0
	enum-kinds-0.5.1
	enumflags2-0.7.5
	enumflags2_derive-0.7.4
	event-listener-2.5.2
	fastrand-1.7.0
	flate2-1.0.24
	fnv-1.0.7
	foreign-types-0.3.2
	foreign-types-shared-0.1.1
	form_urlencoded-1.0.1
	from_variants-1.0.0
	from_variants_impl-1.0.0
	futures-core-0.3.21
	futures-io-0.3.21
	futures-lite-1.12.0
	futures-sink-0.3.21
	futures-task-0.3.21
	futures-util-0.3.21
	getrandom-0.2.7
	heck-0.3.3
	hex-0.4.3
	http-0.2.8
	ident_case-1.0.1
	idna-0.2.3
	instant-0.1.12
	itoa-1.0.2
	lazy_static-1.4.0
	libc-0.2.126
	libdbus-sys-0.2.2
	listenbrainz-0.4.2
	lock_api-0.4.7
	log-0.4.17
	mac-notification-sys-0.5.5
	malloc_buf-0.0.6
	matches-0.1.9
	md5-0.7.0
	memchr-2.5.0
	memoffset-0.6.5
	miniz_oxide-0.5.3
	mpris-2.0.0
	native-tls-0.2.10
	nix-0.23.1
	notify-rust-4.5.8
	num_threads-0.1.6
	objc-0.2.7
	objc-foundation-0.1.1
	objc_id-0.1.1
	once_cell-1.13.0
	openssl-0.10.41
	openssl-macros-0.1.0
	openssl-probe-0.1.5
	openssl-sys-0.9.75
	ordered-stream-0.0.1
	parking-2.0.0
	parking_lot-0.11.2
	parking_lot_core-0.8.5
	percent-encoding-2.1.0
	pin-project-lite-0.2.9
	pin-utils-0.1.0
	pkg-config-0.3.25
	polling-2.2.0
	ppv-lite86-0.2.16
	proc-macro-crate-1.1.3
	proc-macro2-1.0.40
	quote-0.3.15
	quote-1.0.20
	rand-0.8.5
	rand_chacha-0.3.1
	rand_core-0.6.3
	redox_syscall-0.2.13
	redox_users-0.4.3
	regex-1.6.0
	regex-syntax-0.6.27
	remove_dir_all-0.5.3
	rpassword-6.0.1
	rustfm-scrobble-proxy-1.1.2
	ryu-1.0.10
	schannel-0.1.20
	scopeguard-1.1.0
	security-framework-2.6.1
	security-framework-sys-2.6.1
	serde-1.0.139
	serde_derive-1.0.139
	serde_json-1.0.82
	serde_repr-0.1.8
	serde_urlencoded-0.7.1
	sha1-0.6.1
	sha1_smol-1.0.0
	slab-0.4.7
	smallvec-1.9.0
	socket2-0.4.4
	static_assertions-1.1.0
	strsim-0.10.0
	strum-0.22.0
	strum_macros-0.22.0
	syn-0.11.11
	syn-1.0.98
	synom-0.11.3
	tempfile-3.3.0
	thiserror-1.0.37
	thiserror-impl-1.0.37
	time-0.3.11
	tinyvec-1.6.0
	tinyvec_macros-0.1.0
	toml-0.5.9
	tracing-0.1.35
	tracing-attributes-0.1.22
	tracing-core-0.1.28
	uds_windows-1.0.2
	unicode-bidi-0.3.8
	unicode-ident-1.0.2
	unicode-normalization-0.1.21
	unicode-segmentation-1.9.0
	unicode-xid-0.0.4
	url-2.2.2
	vcpkg-0.2.15
	waker-fn-1.1.0
	wasi-0.11.0+wasi-snapshot-preview1
	wepoll-ffi-0.1.2
	wildmatch-1.1.0
	wildmatch-2.1.1
	winapi-0.3.9
	winapi-i686-pc-windows-gnu-0.4.0
	winapi-x86_64-pc-windows-gnu-0.4.0
	windows-0.24.0
	windows-sys-0.36.1
	windows_aarch64_msvc-0.36.1
	windows_i686_gnu-0.24.0
	windows_i686_gnu-0.36.1
	windows_i686_msvc-0.24.0
	windows_i686_msvc-0.36.1
	windows_x86_64_gnu-0.24.0
	windows_x86_64_gnu-0.36.1
	windows_x86_64_msvc-0.24.0
	windows_x86_64_msvc-0.36.1
	winrt-notification-0.5.1
	wrapped-vec-0.3.0
	xml-rs-0.8.4
	zbus-2.3.2
	zbus_macros-2.3.2
	zbus_names-2.1.0
	zvariant-3.4.1
	zvariant_derive-3.4.1
"

inherit cargo systemd

DESCRIPTION="MPRIS music scrobbler daemon"
HOMEPAGE="https://github.com/InputUsername/rescrobbled"
SRC_URI="https://github.com/InputUsername/rescrobbled/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	$(cargo_crate_uris)"

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

RDEPEND="dev-libs/openssl:=
	sys-apps/dbus"

# Requires extra crates.
RESTRICT="test"

QA_FLAGS_IGNORED="/usr/bin/rescrobbled"

src_install() {
	cargo_src_install
	einstalldocs

	systemd_dounit "${S}"/rescrobbled.service

	dodoc "${FILESDIR}"/config.toml
	docompress -x "/usr/share/doc/${PF}/config.toml"
}

pkg_postinst() {
	if [[ -z "${REPLACING_VERSIONS}" ]]; then
		elog "Sample configuration file has been installed to "
		elog "  /usr/share/doc/rescrobbled-${PVR}/config.toml"
		elog ""
		elog "Launch rescrobbled to create a new empty one."
		elog ""
	fi
}