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 <zakk@gentoozh.org>
This commit is contained in:
1 parent
ae35a22fe8
commit
a2d27719a0
4 files changed
+66
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zakk@gentoozh.org</email>
|
||||
<name>Zakk</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">stalwartlabs/vandelay</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user