pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust Only try to fetch stage2 if it's available f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/667fbbace6b0
branches:  trunk
changeset: 352279:667fbbace6b0
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Sun Sep 11 18:19:54 2016 +0000

description:
Only try to fetch stage2 if it's available for the target.

diffstat:

 lang/rust/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 45ea69d95742 -r 667fbbace6b0 lang/rust/Makefile
--- a/lang/rust/Makefile        Sun Sep 11 17:41:48 2016 +0000
+++ b/lang/rust/Makefile        Sun Sep 11 18:19:54 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/09/06 10:36:49 jperkin Exp $
+# $NetBSD: Makefile,v 1.2 2016/09/11 18:19:54 jperkin Exp $
 
 DISTNAME=      rustc-1.11.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -93,10 +93,12 @@
 NOT_FOR_PLATFORM+=     ${MACHINE_PLATFORM}
 .endif
 
+.if defined(RUST_ARCH)
 RUST_STAGE2_VER=       1.10.0
 RUST_STAGE2?=          rust-${RUST_STAGE2_VER}-${RUST_ARCH}.tar.gz
 SITES.${RUST_STAGE2}?= https://static.rust-lang.org/dist/
 DISTFILES=             ${DEFAULT_DISTFILES} ${RUST_STAGE2}
+.endif
 
 PLIST_SRC=             PLIST
 .if ${OPSYS} == "Darwin"



Home | Main Index | Thread Index | Old Index