|
| 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 | + |
| 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" |
0 commit comments