Received: by mail.netbsd.org (Postfix, from userid 605) id 22F7684D7D; Wed, 24 Jan 2018 13:30:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A087384D62 for ; Wed, 24 Jan 2018 13:30:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id bEycsuM7g60L for ; Wed, 24 Jan 2018 13:30:33 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 06E4384CE2 for ; Wed, 24 Jan 2018 13:30:33 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 13EE6FBDE; Wed, 24 Jan 2018 13:30:05 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_151680060536720" MIME-Version: 1.0 Date: Wed, 24 Jan 2018 13:30:05 +0000 From: "Leonardo Taccari" Subject: CVS commit: pkgsrc/mk/tools To: pkgsrc-changes@NetBSD.org Reply-To: leot@netbsd.org X-Mailer: log_accum Message-Id: <20180124133005.13EE6FBDE@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_151680060536720 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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+= :test Discussed with 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. --_----------=_151680060536720 Content-Disposition: inline Content-Length: 1111 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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) && \ --_----------=_151680060536720--