From 9e26d3cf9a6fd68a261e046661c3d949e75ab4c8 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sat, 14 Jan 2023 23:26:03 -0500 Subject: net-im/conduit: new package, add 0.5.0 [WIP] Signed-off-by: Julien Roy --- net-im/conduit/conduit-0.5.0.ebuild | 85 +++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 net-im/conduit/conduit-0.5.0.ebuild (limited to 'net-im/conduit/conduit-0.5.0.ebuild') diff --git a/net-im/conduit/conduit-0.5.0.ebuild b/net-im/conduit/conduit-0.5.0.ebuild new file mode 100644 index 0000000..59d18fd --- /dev/null +++ b/net-im/conduit/conduit-0.5.0.ebuild @@ -0,0 +1,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 +} -- cgit v1.2.3