summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2018-01-24 13:30:04 +0000
committerleot <leot@pkgsrc.org>2018-01-24 13:30:04 +0000
commite00c5e9e8898e29c9dca495aa532e911c64c9a82 (patch)
tree317fd3ef5a4cda4489ea73f3b8138d26641fcbe9 /mk
parent3b7ddc7779dd95440e4eae7ebe87efcaef1fc3a4 (diff)
downloadpkgsrc-e00c5e9e8898e29c9dca495aa532e911c64c9a82.tar.gz
mk/tools/replace.mk: Add support for `:test' to add tools to TEST_DEPENDS
With this change is now possible to mark tools only needed for testing via: USE_TOOLS+= <tool>:test Discussed with <joerg>
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 4e978726e57..dbcdd6e12de 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.281 2018/01/07 11:23:37 rillig Exp $
+# $NetBSD: replace.mk,v 1.282 2018/01/24 13:30:04 leot Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -131,6 +131,7 @@ PKG_FAIL_REASON+= "\`\`bison'' and \`\`byacc'' conflict in USE_TOOLS."
# BOOTSTRAP_DEPENDS: :bootstrap
# TOOL_DEPENDS: :build (default), :pkgsrc
# DEPENDS: :run
+# TEST_DEPENDS: :test
#
.for _t_ in ${USE_TOOLS:N*\:*} ${USE_TOOLS:M*\:bootstrap}
_TOOLS_DEPMETHOD.${_t_:C/:.*//}= BOOTSTRAP_DEPENDS
@@ -141,6 +142,9 @@ _TOOLS_DEPMETHOD.${_t_:C/:.*//}= TOOL_DEPENDS
.for _t_ in ${USE_TOOLS:M*\:run}
_TOOLS_DEPMETHOD.${_t_:C/:.*//}= DEPENDS
.endfor
+.for _t_ in ${USE_TOOLS:M*\:test}
+_TOOLS_DEPMETHOD.${_t_:C/:.*//}= TEST_DEPENDS
+.endfor
.if !empty(_USE_TOOLS:Mbison-yacc) # bison-yacc > yacc
. if defined(_TOOLS_DEPMETHOD.bison-yacc) && \