summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-11-27 14:02:11 +0000
committermaya <maya@pkgsrc.org>2018-11-27 14:02:11 +0000
commit62283ce8fcda48869a31761dfe6abcfa89217263 (patch)
tree9ea02a84d3e81f55ada43218f25e80dc9c0df29d /lang/rust
parenta96ad4ab2166938d970b8e6f9570f887cf24a8ce (diff)
downloadpkgsrc-62283ce8fcda48869a31761dfe6abcfa89217263.tar.gz
Replace, not append to WRKSRC/.cargo/config.
This may cause problems if there's already one. Needed by rust librsvg. Tested all cargo.mk users in pkgsrc.
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/cargo.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/rust/cargo.mk b/lang/rust/cargo.mk
index dc22be0fa82..2e76b020180 100644
--- a/lang/rust/cargo.mk
+++ b/lang/rust/cargo.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cargo.mk,v 1.4 2018/10/23 16:39:29 minskim Exp $
+# $NetBSD: cargo.mk,v 1.5 2018/11/27 14:02:11 maya Exp $
#
# Common logic that can be used by packages that depend on cargo crates
# from crates.io. This lets existing pkgsrc infrastructure fetch and verify
@@ -37,7 +37,7 @@ post-extract: cargo-vendor-crates
cargo-vendor-crates:
@${STEP_MSG} "Extracting local cargo crates"
${RUN}${MKDIR} ${WRKSRC}/.cargo
- ${RUN}${PRINTF} "[source.crates-io]\nreplace-with = \"vendored-sources\"\n[source.vendored-sources]\ndirectory = \"${CARGO_VENDOR_DIR}\"\n" >> ${WRKSRC}/.cargo/config
+ ${RUN}${PRINTF} "[source.crates-io]\nreplace-with = \"vendored-sources\"\n[source.vendored-sources]\ndirectory = \"${CARGO_VENDOR_DIR}\"\n" > ${WRKSRC}/.cargo/config
${RUN}${MKDIR} ${CARGO_VENDOR_DIR}
.for _crate in ${CARGO_CRATE_DEPENDS}
${RUN}${PRINTF} '{"package":"%s","files":{}}' \