summaryrefslogtreecommitdiff
path: root/mk/fetch
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2018-11-30 18:38:19 +0000
committerrillig <rillig@pkgsrc.org>2018-11-30 18:38:19 +0000
commit218a3d5f646d57643a4a2acd82a9ab89ed6ac203 (patch)
tree56b607d224d0bd3b3ed271a39e7fe1e723ac5d5d /mk/fetch
parentf729a38ee3ed2297d167ece70820f68a700435a7 (diff)
downloadpkgsrc-218a3d5f646d57643a4a2acd82a9ab89ed6ac203.tar.gz
mk/misc: make configuration for show-all targets more configurable
Up to now, there was a central list of variable name patterns that defined whether a variable was printed as a sorted list, as a list or as a single value. Now each variable group decides on its own which of the variables are printed in which way, using the usual glob patterns. This is more flexible since different files sometimes differ in their naming conventions. Two variable groups are added: license (for everything related to LICENSE) and go (for lang/go).
Diffstat (limited to 'mk/fetch')
-rw-r--r--mk/fetch/bsd.fetch-vars.mk3
-rw-r--r--mk/fetch/github.mk3
2 files changed, 4 insertions, 2 deletions
diff --git a/mk/fetch/bsd.fetch-vars.mk b/mk/fetch/bsd.fetch-vars.mk
index 533ecc17d4b..87ba1740707 100644
--- a/mk/fetch/bsd.fetch-vars.mk
+++ b/mk/fetch/bsd.fetch-vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.fetch-vars.mk,v 1.22 2015/09/13 15:03:57 joerg Exp $
+# $NetBSD: bsd.fetch-vars.mk,v 1.23 2018/11/30 18:38:20 rillig Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -41,6 +41,7 @@ _VARGROUPS+= fetch
_USER_VARS.fetch= DISTDIR DIST_PATH
_PKG_VARS.fetch= MASTER_SITES DIST_SUBDIR DISTFILES
_SYS_VARS.fetch= DEFAULT_DISTFILES
+_LISTED_VARS.fetch= *S
# The default DISTDIR is currently set in bsd.prefs.mk.
#DISTDIR?= ${PKGSRCDIR}/distfiles
diff --git a/mk/fetch/github.mk b/mk/fetch/github.mk
index 61667f3fb80..da15fe0748e 100644
--- a/mk/fetch/github.mk
+++ b/mk/fetch/github.mk
@@ -1,4 +1,4 @@
-# $NetBSD: github.mk,v 1.11 2018/08/01 18:01:32 rillig Exp $
+# $NetBSD: github.mk,v 1.12 2018/11/30 18:38:20 rillig Exp $
#
# github.com master site handling
#
@@ -76,3 +76,4 @@ _VARGROUPS+= github
_PKG_VARS.github= GITHUB_PROJECT GITHUB_TAG GITHUB_TYPE
_DEF_VARS.github= _USE_GITHUB _GITHUB_DEFAULT_DISTFILES SITES.${_GITHUB_DEFAULT_DISTFILES}
_USE_VARS.github= PKGBASE PKGVERSION_NOREV
+_LISTED_VARS.github= SITES.*