pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jun  3 10:45:04 UTC 2020

Modified Files:
        pkgsrc/lang/rust: Makefile
        pkgsrc/lang/rust-bin: Makefile

Log Message:
rust*: Add PKG_SKIP_REASON depending on the value of RUST_TYPE


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 pkgsrc/lang/rust/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/rust-bin/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/rust/Makefile
diff -u pkgsrc/lang/rust/Makefile:1.170 pkgsrc/lang/rust/Makefile:1.171
--- pkgsrc/lang/rust/Makefile:1.170     Sun May 24 16:58:43 2020
+++ pkgsrc/lang/rust/Makefile   Wed Jun  3 10:45:04 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.170 2020/05/24 16:58:43 triaxx Exp $
+# $NetBSD: Makefile,v 1.171 2020/06/03 10:45:04 nia Exp $
 
 DISTNAME=      rustc-1.43.1-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -20,6 +20,12 @@ USE_TOOLS+=          bash ggrep gmake perl:build
 # build on 7).  Mark earlier versions as broken.
 BROKEN_ON_PLATFORM+=   NetBSD-[1-7].*-*
 
+.include "type.mk"
+
+.if ${RUST_TYPE} != "src"
+PKG_SKIP_REASON+=      "Rust source package, RUST_TYPE is bin"
+.endif
+
 HAS_CONFIGURE=                 yes
 PYTHON_FOR_BUILD_ONLY=         yes
 CONFIG_SHELL=                  ${PYTHONBIN}

Index: pkgsrc/lang/rust-bin/Makefile
diff -u pkgsrc/lang/rust-bin/Makefile:1.6 pkgsrc/lang/rust-bin/Makefile:1.7
--- pkgsrc/lang/rust-bin/Makefile:1.6   Mon May 25 17:53:21 2020
+++ pkgsrc/lang/rust-bin/Makefile       Wed Jun  3 10:45:04 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2020/05/25 17:53:21 he Exp $
+# $NetBSD: Makefile,v 1.7 2020/06/03 10:45:04 nia Exp $
 
 DISTNAME=      rust-1.42.0
 CATEGORIES=    lang
@@ -10,6 +10,12 @@ HOMEPAGE=    https://rust-lang.org/
 COMMENT=       Safe, concurrent, practical language (official binaries)
 LICENSE=       mit OR apache-2.0
 
+.include "../../lang/rust/type.mk"
+
+.if ${RUST_TYPE} != "bin"
+PKG_SKIP_REASON+=      "Rust binary package, RUST_TYPE is src"
+.endif
+
 ONLY_FOR_PLATFORM+=    Darwin-*-x86_64
 ONLY_FOR_PLATFORM+=    FreeBSD-*-i386
 ONLY_FOR_PLATFORM+=    FreeBSD-*-x86_64



Home | Main Index | Thread Index | Old Index