-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust-sccache: update to 0.2.15, enable distributed builds
- Loading branch information
1 parent
bb1428a
commit 828926e
Showing
1 changed file
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
# Template file for 'rust-sccache' | ||
pkgname=rust-sccache | ||
version=0.2.13 | ||
revision=3 | ||
version=0.2.15 | ||
revision=1 | ||
wrksrc="${pkgname/rust-/}-${version}" | ||
build_style=cargo | ||
# test_rust_cargo: tests/test-crate directory exists in v0.2.15 tag on github, | ||
# but is strangely missing from v0.2.15 on crates.io | ||
make_check_args="-- --skip test_rust_cargo" | ||
hostmakedepends="pkg-config" | ||
makedepends="openssl-devel" | ||
short_desc="Sccache is a ccache-like tool" | ||
checkdepends="cargo" | ||
short_desc="Ccache-like tool for Rust, C/C++ & more" | ||
maintainer="Enno Boland <gottox@voidlinux.org>" | ||
license="Apache-2.0" | ||
homepage="https://crates.io/crates/sccache" | ||
distfiles="https://static.crates.io/crates/sccache/sccache-${version}.crate" | ||
checksum=34b8eaab25eb467e9796c2f3ad7524c8548bf3afed962a922dd0b40ed2472ef7 | ||
checksum=cd1b19d56224beccdbf3fcc1fac1b21d58ddad64eed7fc1288db84d227bcebf7 | ||
|
||
case "$XBPS_TARGET_MACHINE" in | ||
x86_64*|i686*|arm*|aarch64*) ;; | ||
x86_64*) configure_args+=" --features dist-server" ;; | ||
i686*|arm*|aarch64*) ;; | ||
*) broken="ftbfs in ring" ;; | ||
esac | ||
|
||
pre_build() { | ||
cargo update --package openssl-sys --precise 0.9.58 | ||
} | ||
# test_sccache_command will fail if gcc/clang is actually a ccache wrapper | ||
# requires fixing in upstream | ||
if [ -n "$XBPS_CCACHE" ]; then | ||
make_check_args+=" --skip test_sccache_command" | ||
fi |