From a2d27719a0950ceab5316d25952f2e46d1e4db32 Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 28 Nov 2026 23:56:59 +1100 Subject: [PATCH] net-mail/vandelay: new package, add 2.0.0 rustc 1.98 rejects crates/connect/src/plan.rs under the deny-by-default elided_lifetimes_in_associated_constant lint, and 1.99.0 builds it, so RUST_MIN_VER is 1.99.0. vandelay-engine enables rusqlite/bundled by default and the binary crate has no feature to turn it off, so src_prepare clears the engine's default features and the program links dev-db/sqlite. The sources pull their tests from ../vandelay-tests behind --cfg vandelay_tests, a repository upstream does not publish, so cargo test finds none and RESTRICT="test" skips the rebuild. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Zakk --- .github/workflows/overlay.toml | 10 ++++++ net-mail/vandelay/Manifest | 2 ++ net-mail/vandelay/metadata.xml | 11 +++++++ net-mail/vandelay/vandelay-2.0.0.ebuild | 43 +++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 net-mail/vandelay/Manifest create mode 100644 net-mail/vandelay/metadata.xml create mode 100644 net-mail/vandelay/vandelay-2.0.0.ebuild diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index dfa7bdfa54..e25057233d 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -2382,6 +2382,16 @@ github_account = "gouwazi" # live package only #["net-libs/jzmq"] +["net-mail/vandelay"] +source = "github" +github = "stalwartlabs/vandelay" +use_latest_release = true +prefix = "v" +github_account = "zakkaus" +bundle = [ + { id = "crates", repo = "gentoo-zh-drafts/vandelay", workflow = "crates.yml", tag = "v{PV}" }, +] + ["net-misc/aliyundrive-webdav"] source = "github" github = "messense/aliyundrive-webdav" diff --git a/net-mail/vandelay/Manifest b/net-mail/vandelay/Manifest new file mode 100644 index 0000000000..fd7c161a5f --- /dev/null +++ b/net-mail/vandelay/Manifest @@ -0,0 +1,2 @@ +DIST vandelay-2.0.0-crates.tar.xz 43100876 BLAKE2B f9276ed24c57d35c188a949bdb1345ad72fef7fea2b637d6f16befe53979b689c911045b90d9b82f99f9c2e92f0f8d4f2b8eda4288d887db68c8523442dbb457 SHA512 99059e8d9c29353347f2e1fda902b97647d65c4ea86bb67ffba1a4c618f7a93e9d88dd996dd84b89e58d7973c54a5ebdc7980b9626680b79fb89d9dca80a719d +DIST vandelay-2.0.0.tar.gz 1668062 BLAKE2B f91a7d3bd375192775c52155b28bebd22ee3b5f67268050ede6096f535b426a5a996a8cff547ad53b2002d5e595d9c248a6036590eaf497de08dba06e62eaee0 SHA512 0e880e89a62d7b31d8946e479438574d768af91ca8bf3cd8c90b4f0d96e2baed3cf7dcc2ca82cd6b71cb1ed2ccbbcc6e4726ca78696da5a46a0353988a9e7fe6 diff --git a/net-mail/vandelay/metadata.xml b/net-mail/vandelay/metadata.xml new file mode 100644 index 0000000000..0c086f8878 --- /dev/null +++ b/net-mail/vandelay/metadata.xml @@ -0,0 +1,11 @@ + + + + + zakk@gentoozh.org + Zakk + + + stalwartlabs/vandelay + + diff --git a/net-mail/vandelay/vandelay-2.0.0.ebuild b/net-mail/vandelay/vandelay-2.0.0.ebuild new file mode 100644 index 0000000000..3f44bf2c70 --- /dev/null +++ b/net-mail/vandelay/vandelay-2.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUST_MIN_VER="1.99.0" + +inherit cargo + +DESCRIPTION="JMAP account migration utility" +HOMEPAGE="https://github.com/stalwartlabs/vandelay" +SRC_URI=" + https://github.com/stalwartlabs/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/gentoo-zh-drafts/${PN}/releases/download/v${PV}/${P}-crates.tar.xz +" + +# Upstream also offers the proprietary Stalwart Enterprise License. +LICENSE="AGPL-3" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CDLA-Permissive-2.0 + ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB +" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +# The tests live in an unpublished vandelay-tests repository +RESTRICT="test" + +DEPEND="dev-db/sqlite:3" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + # link the system sqlite; the binary has no feature to turn this off + sed -i 's/^default = \["bundled-sqlite"\]$/default = []/' \ + crates/engine/Cargo.toml || die +} + +src_install() { + cargo_src_install --path crates/vandelay + dodoc README.md CHANGELOG.md +}