From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/conduit/
Date: Sun, 15 Sep 2024 21:45:21 +0000 (UTC) [thread overview]
Message-ID: <1726426987.3803de9ef6a501d8108ade76920ed70a5a81387e.julien@gentoo> (raw)
Message-ID: <20240915214521.Brg1m3-xfMZNXZKokoBG2zJU0C6vIitVWzc_0NlkW60@z> (raw)
commit: 3803de9ef6a501d8108ade76920ed70a5a81387e
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Sep 15 19:02:58 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Sep 15 19:03:07 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3803de9e
net-im/conduit: add 9999
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
net-im/conduit/conduit-9999.ebuild | 115 +++++++++++++++++++++++++++++++++++++
1 file changed, 115 insertions(+)
diff --git a/net-im/conduit/conduit-9999.ebuild b/net-im/conduit/conduit-9999.ebuild
new file mode 100644
index 000000000..2c982a134
--- /dev/null
+++ b/net-im/conduit/conduit-9999.ebuild
@@ -0,0 +1,115 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Auto-Generated by cargo-ebuild 0.5.4
+
+EAPI=8
+
+inherit cargo git-r3 systemd toolchain-funcs
+
+DESCRIPTION="Matrix homeserver written in Rust"
+HOMEPAGE="
+ https://conduit.rs
+ https://gitlab.com/famedly/conduit
+"
+EGIT_REPO_URI="https://gitlab.com/famedly/${PN}"
+EGIT_BRANCH="next"
+
+#S="${WORKDIR}/${}"
+
+LICENSE="Apache-2.0"
+# Dependent crate licenses
+LICENSE+="
+ || ( 0BSD Apache-2.0 MIT )
+ || ( Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT )
+ || ( Apache-2.0 BSD MIT )
+ || ( Apache-2.0 BSD-1 MIT )
+ || ( Apache-2.0 BSD-2 MIT )
+ || ( Apache-2.0 Boost-1.0 )
+ || ( Apache-2.0 CC0-1.0 MIT )
+ || ( Apache-2.0 ISC MIT )
+ || ( Apache-2.0 MIT )
+ || ( Apache-2.0 MIT ZLIB )
+ || ( MIT Unlicense )
+ BSD BSD-2 ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB openssl
+"
+SLOT="0"
+IUSE="jemalloc rocksdb system-rocksdb"
+
+# Libraries that can't be unbundled right now:
+# - app-arch/bzip2 (no pkg-config file)
+# - app-arch/lz4 ("lz4-sys" crate doesn't look for system library... ironic)
+# - dev-db/sqlite:3 ("conduit" pulls "rusqlite[bundled]" explicitly)
+# - sys-libs/zlib ("rust-librocksdb-sys" pulls "libz-sys[static]" by default)
+DEPEND="
+ jemalloc? ( dev-libs/jemalloc:= )
+ rocksdb? (
+ app-arch/snappy:=
+ app-arch/zstd:=
+ system-rocksdb? ( dev-libs/rocksdb )
+ )
+"
+RDEPEND="${DEPEND}
+ acct-user/conduit
+ app-misc/ca-certificates
+"
+BDEPEND="
+ >=virtual/rust-1.75.0
+ rocksdb? (
+ sys-devel/clang
+ virtual/pkgconfig
+ )
+"
+
+DOCS=( {APPSERVICES,CODE_OF_CONDUCT,DEPLOY,README,TURN}.md )
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_unpack() {
+ git-r3_src_unpack
+ cargo_live_src_unpack
+}
+
+src_configure() {
+ tc-export AR CC
+
+ # Tracker bug for that Cargo nonsense:
+ # https://bugs.gentoo.org/709568
+ export PKG_CONFIG_ALLOW_CROSS=1
+ export ZSTD_SYS_USE_PKG_CONFIG=1
+ export SNAPPY_LIB_DIR="${ESYSROOT}/usr/$(get_libdir)"
+ export JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)/libjemalloc.so"
+
+ if use system-rocksdb; then
+ export ROCKSDB_INCLUDE_DIR="${ESYSROOT}/usr/include"
+ export ROCKSDB_LIB_DIR="${ESYSROOT}/usr/$(get_libdir)"
+ fi
+
+ local myfeatures=(
+ conduit_bin
+ systemd
+ $(usev jemalloc)
+
+ # database backends
+ backend_persy
+ backend_sqlite
+ $(usex rocksdb backend_rocksdb '')
+ )
+
+ cargo_src_configure --no-default-features --frozen
+}
+
+src_install() {
+ cargo_src_install
+
+ keepdir /var/lib/matrix-conduit
+ fowners conduit:conduit /var/lib/matrix-conduit
+ fperms 700 /var/lib/matrix-conduit
+
+ insinto /etc/conduit
+ newins conduit-example.toml conduit.toml
+
+ newinitd "${FILESDIR}"/conduit.initd conduit
+ newconfd "${FILESDIR}"/conduit.confd conduit
+ systemd_dounit "${FILESDIR}"/conduit.service
+}
next reply other threads:[~2024-09-15 21:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-15 19:03 Julien Roy [this message]
2024-09-15 21:45 ` [gentoo-commits] repo/proj/guru:master commit in: net-im/conduit/ Julien Roy
-- strict thread matches above, loose matches on Subject: below --
2025-01-07 19:59 [gentoo-commits] repo/proj/guru:dev " Anna Vyalkova
2024-10-10 2:46 Anna Vyalkova
2024-09-15 21:41 Julien Roy
2024-06-29 2:08 Anna Vyalkova
2024-06-29 2:08 Anna Vyalkova
2024-04-25 18:58 Anna Vyalkova
2023-10-16 21:20 Julien Roy
2023-08-30 23:16 Julien Roy
2023-03-31 15:54 Julien Roy
2023-03-31 15:47 Julien Roy
2023-03-31 15:47 Julien Roy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1726426987.3803de9ef6a501d8108ade76920ed70a5a81387e.julien@gentoo \
--to=julien@jroy.ca \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox