pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust lang/rust/cargo.mk: Set default values for c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e00b4801015a
branches:  trunk
changeset: 345085:e00b4801015a
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Dec 03 02:09:06 2019 +0000

description:
lang/rust/cargo.mk: Set default values for cargo package variables

With these values, a Rust package downloads its own distfile from
crates.io by default, and shares dependancy crate distfiles with other
Rust packages to avoid multiple downloads.

diffstat:

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

diffs (19 lines):

diff -r c9d4385b559c -r e00b4801015a lang/rust/cargo.mk
--- a/lang/rust/cargo.mk        Mon Dec 02 23:32:25 2019 +0000
+++ b/lang/rust/cargo.mk        Tue Dec 03 02:09:06 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cargo.mk,v 1.8 2019/11/03 19:04:07 rillig Exp $
+# $NetBSD: cargo.mk,v 1.9 2019/12/03 02:09:06 minskim 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
@@ -20,6 +20,9 @@
 #
 # See also www/geckodriver for a full example.
 
+MASTER_SITES?= -${MASTER_SITE_CRATESIO}${PKGBASE}/${PKGVERSION_NOREV}/download
+DIST_SUBDIR?=  crates.io
+
 BUILD_DEPENDS+=        rust-[0-9]*:../../lang/rust
 
 USE_TOOLS+=            bsdtar digest



Home | Main Index | Thread Index | Old Index