From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BF4AD158083 for ; Sun, 15 Sep 2024 19:03:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8B36E29A8; Sun, 15 Sep 2024 19:03:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C13D1E29A8 for ; Sun, 15 Sep 2024 19:03:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8B5234134D for ; Sun, 15 Sep 2024 19:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2336A14D0 for ; Sun, 15 Sep 2024 19:03:18 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1726426987.3803de9ef6a501d8108ade76920ed70a5a81387e.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/conduit/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/conduit/conduit-9999.ebuild X-VCS-Directories: net-im/conduit/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 3803de9ef6a501d8108ade76920ed70a5a81387e X-VCS-Branch: dev Date: Sun, 15 Sep 2024 19:03:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f6f20ffe-69ee-4c94-bb5f-16d61e158d68 X-Archives-Hash: 1a32898b7e877ef50ede442af4778309 commit: 3803de9ef6a501d8108ade76920ed70a5a81387e Author: Julien Roy jroy ca> AuthorDate: Sun Sep 15 19:02:58 2024 +0000 Commit: Julien Roy jroy 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 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 +} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7D4A158083 for ; Sun, 15 Sep 2024 21:45:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CA59E29BA; Sun, 15 Sep 2024 21:45:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F760E29BA for ; Sun, 15 Sep 2024 21:45:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 18B65341DD0 for ; Sun, 15 Sep 2024 21:45:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25AEA27F0 for ; Sun, 15 Sep 2024 21:45:21 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1726426987.3803de9ef6a501d8108ade76920ed70a5a81387e.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/conduit/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-im/conduit/conduit-9999.ebuild X-VCS-Directories: net-im/conduit/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 3803de9ef6a501d8108ade76920ed70a5a81387e X-VCS-Branch: master Date: Sun, 15 Sep 2024 21:45:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b873222c-d00c-4eb6-8ceb-2f5f193c1c57 X-Archives-Hash: 45b6f0a10a353ad30e9b18bbc7d1ea69 Message-ID: <20240915214521.Brg1m3-xfMZNXZKokoBG2zJU0C6vIitVWzc_0NlkW60@z> commit: 3803de9ef6a501d8108ade76920ed70a5a81387e Author: Julien Roy jroy ca> AuthorDate: Sun Sep 15 19:02:58 2024 +0000 Commit: Julien Roy jroy 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 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 +}