summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-06-03 10:45:04 +0000
committernia <nia@pkgsrc.org>2020-06-03 10:45:04 +0000
commitb3ee9e8bcafd31f582a01f25c75850b79eb14403 (patch)
treef2836a885dd8eb3ce5c942647777f8fcbacc7ebe /lang
parent65b9b7406b5a718c679aa72761b412444c3dfb80 (diff)
downloadpkgsrc-b3ee9e8bcafd31f582a01f25c75850b79eb14403.tar.gz
rust*: Add PKG_SKIP_REASON depending on the value of RUST_TYPE
Diffstat (limited to 'lang')
-rw-r--r--lang/rust-bin/Makefile8
-rw-r--r--lang/rust/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/lang/rust-bin/Makefile b/lang/rust-bin/Makefile
index 471ae617287..818d9bf3e96 100644
--- a/lang/rust-bin/Makefile
+++ b/lang/rust-bin/Makefile
@@ -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
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 4ae7bb570c1..676409b91c9 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -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 pkg-config
# 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}