pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools mk/tools/replace.mk: Add support for `:test' ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ef8ceb671d7
branches: trunk
changeset: 374501:3ef8ceb671d7
user: leot <leot%pkgsrc.org@localhost>
date: Wed Jan 24 13:30:04 2018 +0000
description:
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:
mk/tools/replace.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 5f267d01c214 -r 3ef8ceb671d7 mk/tools/replace.mk
--- a/mk/tools/replace.mk Wed Jan 24 12:40:48 2018 +0000
+++ b/mk/tools/replace.mk Wed Jan 24 13:30:04 2018 +0000
@@ -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 @@
# 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 @@
.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) && \
Home |
Main Index |
Thread Index |
Old Index