Fri Mar 13 17:33:02 2020 UTC ()
mk/tools: in show-all-tools, sort tool variables by relevance

Before, these variables were sorted alphabetically, which made the output
more difficult to read.


(rillig)
diff -r1.59 -r1.60 pkgsrc/mk/tools/bsd.tools.mk

cvs diff -r1.59 -r1.60 pkgsrc/mk/tools/bsd.tools.mk (expand / switch to unified diff)

--- pkgsrc/mk/tools/bsd.tools.mk 2019/05/07 19:36:44 1.59
+++ pkgsrc/mk/tools/bsd.tools.mk 2020/03/13 17:33:02 1.60
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.tools.mk,v 1.59 2019/05/07 19:36:44 rillig Exp $ 1# $NetBSD: bsd.tools.mk,v 1.60 2020/03/13 17:33:02 rillig Exp $
2# 2#
3# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. 3# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# This code is derived from software contributed to The NetBSD Foundation 6# This code is derived from software contributed to The NetBSD Foundation
7# by Johnny C. Lam. 7# by Johnny C. Lam.
8# 8#
9# Redistribution and use in source and binary forms, with or without 9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions 10# modification, are permitted provided that the following conditions
11# are met: 11# are met:
12# 1. Redistributions of source code must retain the above copyright 12# 1. Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer. 13# notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright 14# 2. Redistributions in binary form must reproduce the above copyright
@@ -157,28 +157,28 @@ post-tools: @@ -157,28 +157,28 @@ post-tools:
157.include "replace.mk" 157.include "replace.mk"
158.include "perl.mk" 158.include "perl.mk"
159.include "pkg-config.mk" 159.include "pkg-config.mk"
160.include "make.mk" 160.include "make.mk"
161 161
162.include "create.mk" 162.include "create.mk"
163 163
164_VARGROUPS+= tools 164_VARGROUPS+= tools
165_USER_VARS.tools= TOOLS_SHELL 165_USER_VARS.tools= TOOLS_SHELL
166_PKG_VARS.tools= USE_TOOLS TOOLS_BROKEN TOOLS_CREATE \ 166_PKG_VARS.tools= USE_TOOLS TOOLS_BROKEN TOOLS_CREATE \
167 TOOLS_FAIL TOOLS_GNU_MISSING TOOLS_NOOP 167 TOOLS_FAIL TOOLS_GNU_MISSING TOOLS_NOOP
168.for t in ${USE_TOOLS:C/:.*//:O:u} 168.for t in ${USE_TOOLS:C/:.*//:O:u}
169. for pv in \ 169. for pv in \
170 TOOLS_ALIASES \ 
171 TOOLS_ARGS \ 
172 TOOLS_CMD \ 
173 TOOLS_DEPENDS \ 
174 TOOLS_IGNORE \ 
175 TOOLS_PATH \ 
176 TOOLS_PLATFORM \ 170 TOOLS_PLATFORM \
 171 TOOLS_PATH \
 172 TOOLS_CMD \
 173 TOOLS_ARGS \
177 TOOLS_SCRIPT \ 174 TOOLS_SCRIPT \
178 TOOLS_SCRIPT_DFLT \ 175 TOOLS_SCRIPT_DFLT \
 176 TOOLS_ALIASES \
 177 TOOLS_DEPENDS \
 178 TOOLS_IGNORE \
179 TOOLS_VALUE_GNU \ 179 TOOLS_VALUE_GNU \
180 # nil 180 # nil
181_SYS_VARS.tools+= ${pv}.${t} 181_SYS_VARS.tools+= ${pv}.${t}
182. endfor 182. endfor
183.endfor 183.endfor
184_SORTED_VARS.tools= USE_TOOLS TOOLS_CREATE TOOLS_GNU_MISSING 184_SORTED_VARS.tools= USE_TOOLS TOOLS_CREATE TOOLS_GNU_MISSING