Skip to content

Commit 93e6a6d

Browse files
committed
Add cargo-nextest
1 parent ea9bffe commit 93e6a6d

File tree

7 files changed

+1888
-0
lines changed

7 files changed

+1888
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ SUBDIR+= carburetta
434434
SUBDIR+= cardpeek
435435
SUBDIR+= cargo-about
436436
SUBDIR+= cargo-deb
437+
SUBDIR+= cargo-nextest
437438
SUBDIR+= carla
438439
SUBDIR+= cartago
439440
SUBDIR+= casady-fonts

cargo-nextest/COMMIT_MSG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Required by https://vector.dev/

cargo-nextest/DESCR

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Nextest is a next-generation test runner for Rust.
2+
For more information, check https://nexte.st/.

cargo-nextest/Makefile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# $NetBSD$
2+
3+
DISTNAME= cargo-nextest-0.9.104
4+
CATEGORIES= devel
5+
MASTER_SITES= ${MASTER_SITE_GITHUB:=nextest-rs/}
6+
GITHUB_PROJECT= nextest
7+
GITHUB_TAG= cargo-nextest-0.9.104
8+
9+
MAINTAINER= [email protected]
10+
HOMEPAGE= https://nexte.st/
11+
COMMENT= Next-generation test runner for Rust
12+
LICENSE= mit OR apache-2.0
13+
14+
.include "cargo-depends.mk"
15+
16+
USE_TOOLS+= pkg-config
17+
18+
INSTALLATION_DIRS= bin
19+
20+
MAKE_ENV+= OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
21+
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
22+
23+
# Alpine and Arch Linux use '--no-default-features --features default-no-update'
24+
# See, https://gitlab.alpinelinux.org/alpine/aports/-/raw/master/main/cargo-nextest/APKBUILD
25+
# or, https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-nextest/-/raw/main/PKGBUILD?ref_type=heads
26+
# But, upstream writes:
27+
# We specify default-no-update here because if users just run:
28+
# cargo build --no-default-features --features default-no-update
29+
# then cargo will unify features for cargo-nextest, and it will be built with self-update enabled.
30+
# We could ask distributors to always include `--package cargo-nextest` instead, but they're likely
31+
# to forget. None of our current tests depend on self-update, so just don't include it by default.
32+
# Reference, https://raw.githubusercontent.com/nextest-rs/nextest/refs/heads/main/Cargo.toml
33+
# So, lets stick to what upstream recommends.
34+
#CARGO_NO_DEFAULT_FEATURES= YES
35+
#CARGO_FEATURES+= default-no-update
36+
37+
do-install:
38+
${INSTALL_PROGRAM} ${WRKSRC}/target/release/cargo-nextest \
39+
${DESTDIR}${PREFIX}/bin
40+
41+
.include "../../lang/rust/cargo.mk"
42+
.include "../../security/openssl/buildlink3.mk"
43+
.include "../../mk/bsd.pkg.mk"

cargo-nextest/PLIST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@comment $NetBSD$
2+
bin/cargo-nextest

0 commit comments

Comments
 (0)