summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-06-14 19:40:52 +0000
committernia <nia@pkgsrc.org>2020-06-14 19:40:52 +0000
commit3eedab61593c502fdf3507298b68dd0c879aca14 (patch)
treedda2e93a89bfc5b493037649d2e24f8e14fc7688 /lang/rust
parentcb62f551312675fc395321801a001e52d9214d48 (diff)
downloadpkgsrc-3eedab61593c502fdf3507298b68dd0c879aca14.tar.gz
rust: correct sense of test. pointed out by gdt
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/rust.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/rust/rust.mk b/lang/rust/rust.mk
index 61aba3c8f34..08ea686e80b 100644
--- a/lang/rust/rust.mk
+++ b/lang/rust/rust.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rust.mk,v 1.3 2020/06/14 15:43:22 nia Exp $
+# $NetBSD: rust.mk,v 1.4 2020/06/14 19:40:52 nia Exp $
#
# This file determines the type of rust package to use.
#
@@ -43,7 +43,7 @@ RUST_TYPE?= src
.endif
.if ${RUST_TYPE} == "bin"
-. if ${RUST_RUNTIME} != "no"
+. if ${RUST_RUNTIME} == "no"
BUILDLINK_DEPMETHOD.rust-bin?= build
. endif
BUILDLINK_API_DEPENDS.rust-bin+= rust-bin>=${RUST_REQ}
@@ -51,7 +51,7 @@ BUILDLINK_API_DEPENDS.rust-bin+= rust-bin>=${RUST_REQ}
.endif
.if ${RUST_TYPE} == "src"
-. if ${RUST_RUNTIME} != "no"
+. if ${RUST_RUNTIME} == "no"
BUILDLINK_DEPMETHOD.rust?= build
. endif
BUILDLINK_API_DEPENDS.rust+= rust>=${RUST_REQ}