aboutsummaryrefslogtreecommitdiff
path: root/net-im/conduit/conduit-0.5.0.ebuild
blob: 59d18fd262e9df15c0ee5f758cec53424b2378f9 (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
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES="
	async-trait-0.1.57
	axum-0.5.17
	axum-server-0.4.0
	base64-0.13.0
	bytes-1.1.0
	clap-4.0.11
	crossbeam-0.8.1
	directories-4.0.0
	figment-0.10.6
	futures-util-0.3.17
	hmac-0.12.1
	http-0.2.4
	image-0.24.4
	jsonwebtoken-8.1.1
	lazy_static-1.4.0
	lru-cache-0.1.2
	opentelemetry-0.18.0
	opentelemetry-jaeger-0.17.0
	num_cpus-1.13.0
	parking_lot-0.12.1
	persy-1.0.0
	rand-0.8.4
	regex-1.5.4
	ring-0.16.20
	rocksdb-0.17.0
	rusqlite-0.28.0
	rust-argon2-1.0.0
	sd-notify-0.4.1
	serde-1.0.130
	serde_yaml-0.9.13
	serde_json-1.0.68
	sha-1-0.10.0
	thiserror-1.0.29
	thread_local-1.1.3
	threadpool-1.8.1
	tikv-jemalloc-ctl-0.5.0
	tikv-jemallocator-0.5.0
	tokio-1.11.0
	tower-0.4.8
	tower-http-0.3.4
	tracing-0.1.27
	tracing-flame-0.2.0
	tracing-opentelemetry-0.18.0
	tracing-subscriber-0.3.16
	trust-dns-resolver-0.22.0
"

inherit cargo

# As of 0.5.0, Conduit uses specific commits of these
# crates so they need to be added to SRC_URI manually
CONDUITCOMMIT="53f14a2c4c216b529cc63137d8704573197aed19"
RUMACOMMIT="67d0f3cc04a8d1dc4a8a1ec947519967ce11ce26"
REQCOMMIT="57b7cf4feb921573dfafad7d34b9ac6e44ead0bd"
HEEDCOMMIT="f6f825da7fb2c758867e05ad973ef800a6fe1d5d"

DESCRIPTION="A Matrix homeserver written in Rust"
HOMEPAGE="https://gitlab.com/famedly/conduit"
SRC_URI="https://gitlab.com/famedly/${PN}/-/archive/v${PV}/${P}.tar.bz2
	https://github.com/ruma/ruma/archive/${RUMACOMMIT}.tar.gz -> ruma-${RUMACOMMIT}.gh.tar.gz
	https://github.com/timokoesters/reqwest/archive/${REQCOMMIT}.tar.gz -> reqwest-${REQCOMMIT}.gh.tar.gz
	https://github.com/timokoesters/heed/archive/${HEEDCOMMIT}.tar.gz -> heed-${HEEDCOMMIT}.gh.tar.gz
	$(cargo_crate_uris)
"
S="${WORKDIR}/${PN}-v${PV}-${CONDUITCOMMIT}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND=""
DEPEND="${RDEPEND}"

src_compile() {
	mv "${WORKDIR}/ruma-${RUMACOMMIT}" "${WORKDIR}/cargo_home/gentoo" || die
	mv "${WORKDIR}/reqwest-${REQCOMMIT}" "${WORKDIR}/cargo_home/gentoo" || die
	mv "${WORKDIR}/heed-${HEEDCOMMIT}" "${WORKDIR}/cargo_home/gentoo" || die
	cargo_src_compile
}