Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang rust*: Add PKG_SKIP_REASON depending on the value...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b523ee4ef1b5
branches:  trunk
changeset: 433506:b523ee4ef1b5
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jun 03 10:45:04 2020 +0000

description:
rust*: Add PKG_SKIP_REASON depending on the value of RUST_TYPE

diffstat:

 lang/rust-bin/Makefile |  8 +++++++-
 lang/rust/Makefile     |  8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 348167c1a836 -r b523ee4ef1b5 lang/rust-bin/Makefile
--- a/lang/rust-bin/Makefile    Wed Jun 03 09:29:49 2020 +0000
+++ b/lang/rust-bin/Makefile    Wed Jun 03 10:45:04 2020 +0000
@@ -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 @@
 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
diff -r 348167c1a836 -r b523ee4ef1b5 lang/rust/Makefile
--- a/lang/rust/Makefile        Wed Jun 03 09:29:49 2020 +0000
+++ b/lang/rust/Makefile        Wed Jun 03 10:45:04 2020 +0000
@@ -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 @@
 # 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}



Home | Main Index | Thread Index | Old Index