pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/tools



Module Name:    pkgsrc
Committed By:   leot
Date:           Wed Jan 24 13:30:05 UTC 2018

Modified Files:
        pkgsrc/mk/tools: replace.mk

Log Message:
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>


To generate a diff of this commit:
cvs rdiff -u -r1.281 -r1.282 pkgsrc/mk/tools/replace.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/tools/replace.mk
diff -u pkgsrc/mk/tools/replace.mk:1.281 pkgsrc/mk/tools/replace.mk:1.282
--- pkgsrc/mk/tools/replace.mk:1.281    Sun Jan  7 11:23:37 2018
+++ pkgsrc/mk/tools/replace.mk  Wed Jan 24 13:30:04 2018
@@ -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 \`\`b
 #    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_DE
 .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