pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust Replace, not append to WRKSRC/.cargo/config.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f187cf6db2a0
branches:  trunk
changeset: 325844:f187cf6db2a0
user:      maya <maya%pkgsrc.org@localhost>
date:      Tue Nov 27 14:02:11 2018 +0000

description:
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:

 lang/rust/cargo.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e57babb2e9bf -r f187cf6db2a0 lang/rust/cargo.mk
--- a/lang/rust/cargo.mk        Tue Nov 27 13:59:54 2018 +0000
+++ b/lang/rust/cargo.mk        Tue Nov 27 14:02:11 2018 +0000
@@ -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 @@
 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":{}}'   \



Home | Main Index | Thread Index | Old Index